Git Product home page Git Product logo

sublime-sesame's People

Contributors

gerardroche avatar tijn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

tijn unchartedsky

sublime-sesame's Issues

Feature request / idea - Go to folder

Hi, thanks for Sublime-Sesame, I use it daily. I'm using Sesame to switch to different projects. I think it would be nice to then use Sesame to jump to a folder inside a project. E.g.: Open command palette, choose "Sesame Go To", type wp-content/themes/my-theme/resources/js/components

I guess what I want is basically the "Go to anywhere" (Command + P) Sublime functionality, except with folders.

Is it doable? Would it be worth a pull request?

open starts working like switch

Hi,
this week open command started working the same way as switch. It doesn't open new window, but changes current one. Happened on multiple macs, restart didn't help.

Git repository

Good to have an option to show only git repositories. ๐Ÿ˜‰

[Question] ValueError: * must be a valid directory

1. Summary

I can not set path to my projects.

2. Settings

  • I have Sublime Text 3 Portable for Windows.
  • Absolute path to my Sublime Text working directory โ€” D:\Sublime Text 3 x64
  • Absolute path to my sublime-project and sublime-workspace files โ€” D:\Sublime Text 3 x64\Data\Packages\User\Projects.
  • I set user environment variable and restart Windows: PROJECTS_PATH = D:\Sublime Text 3 x64\Data\Packages\User\Projects
  • Example part of my User/Preferences.sublime-settings
"open-sesame.projects_path": "PROJECTS_PATH",
"open-sesame.projects_depth": 1,

3. Steps to reproduce

I reproduce the problem in a version of Sublime Text without plugins and user settings.

I install Open Sesame โ†’ I restart Sublime Text โ†’ I open any file in Sublime Text โ†’ Ctrl+Shift+P (โŒ˜โ‡งp for Mac) โ†’ Open Sesame: Add Project Folder.

4. Expected behavior

Successful add a project to the active window.

5. Actual behavior

command: open_sesame_add_folder
Traceback (most recent call last):
  File "D:\Sublime Text 3 x64\sublime_plugin.py", line 797, in run_
    return self.run()
  File "plugin in D:\Sublime Text 3 x64\Data\Installed Packages\open-sesame.sublime-package", line 45, in run
  File "plugin in D:\Sublime Text 3 x64\Data\Installed Packages\open-sesame.sublime-package", line 78, in find_folders
ValueError: PROJECTS_PATH must be a valid directory

If

"open-sesame.projects_path": "./Projects",

I get similar stack trace:

command: open_sesame_add_folder
Traceback (most recent call last):
  File "D:\Sublime Text 3 x64\sublime_plugin.py", line 797, in run_
    return self.run()
  File "plugin in D:\Sublime Text 3 x64\Data\Installed Packages\open-sesame.sublime-package", line 45, in run
  File "plugin in D:\Sublime Text 3 x64\Data\Installed Packages\open-sesame.sublime-package", line 78, in find_folders
ValueError: ./Projects must be a valid directory

I try set path to my Projects directory use Sublime Text Build System variables โ†’ I get similar behavior.

6. Environment

Operating system and version:
Windows 10 Enterprise LTSB 64-bit EN
Sublime Text:
Build 3126
Package:
I use the latest stable version of this package for Sublime Text 3

Thanks.

Raises RuntimeError if a project directory has invalid characters in path names

Directories containing characters like $ cause a RuntimeError.

Given setting "open-sesame.projects_path": "~/code" and:

<code>
    vendor_a/project_a/
    vendor_b/project_b/
    vendor_$_c/project_c/
    vendor_d/project_$_d/

ACTUAL

RuntimeError

Traceback (most recent call last):
  File "/home/user/sublime_text_3/sublime_plugin.py", line 535, in run_
    return self.run()
  File "/home/user/.config/sublime-text-3/Packages/open-sesame/plugin.py", line 36, in run
    self.open(path)
  File "/home/user/.config/sublime-text-3/Packages/open-sesame/plugin.py", line 39, in open
    self.quick_panel_list = self.get_quick_panel_list(path)
  File "/home/user/.config/sublime-text-3/Packages/open-sesame/plugin.py", line 95, in get_quick_panel_list
    raise RuntimeError('Invalid path name in path')
RuntimeError: Invalid path name in path

EXPECTS

At least to prompted to open:

vendor_a/project_a
vendor_b/project_b

Skip paths that don't exist instead of raising exception

Re: #5 (comment)

When sesame.path contains one non-existent directory, the other valid paths are ignored altogether.

It would be nice if Sesame would be more tolerant and still process the remaining valid paths, like FuzzyFileNav does.

I use the same .sublime-settings file on two computers, where not every machine has the same folders.

sesame_open does nothing

Preface: I've configured my Menu > Preferences > Settings correctly with "sesame.path": "~/projects" confirming the path is correct.

When I select Sesame: Open from the command palette, I get this message ("Sesame: No projects found") in the status bar at the bottom of Sublime.
(The same thing happens when executing the keyboarding binding I've set up for sesame_open.)

Screen Shot 2021-03-04 at 1 47 33 PM

Screen Shot 2021-03-04 at 1 47 35 PM

I'm not sure if I understand its functionality correctly, but I'm trying to open a new window with the current project like Project > New Workspace for Project does.

Screen Shot 2021-03-04 at 1 51 34 PM

Regardless, I presume something should be happening. Am I missing something?

Custom match patterns

Great plugin, but is there any way to turn off recursive indexing? I have all my projects nested under ~/Projects/ but the autocomplete is finding things I don't really want, deep in the project folder hierarchy. It also won't let me open an empty folder.

TypeError when using ctrl+alt+o

I just installed sesame on sublime text 3176. Trying to open a new project, nothing happens and I instead see the following error in my sublime text console:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 1036, in run_
    return self.run()
  File "/Users/<me>/Library/Application Support/Sublime Text 3/Installed Packages/Sesame.sublime-package/plugin.py", line 59, in run
  File "/Users/<me>/Library/Application Support/Sublime Text 3/Installed Packages/Sesame.sublime-package/plugin.py", line 160, in _find_folders
TypeError: int() argument must be a string or a number, not 'NoneType'

Can not open folders that have a pipe in the name

First of: Thanks for Open Sesame, it's a great idea and a nice plugin! :)

One thing, though: Most of my project folders have a | pipe symbol in the name, for example EN | 2017 | Project (I know, it's terrible, but my employer chose this ยฏ_(ใƒ„)_/ยฏ), and these Folders do not show up in the Open Sesame overview.

Can this be fixed? <3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.