PathBox
open/rename files with tabcompletion
Details
Installs
- Total 162
- Win 87
- Mac 34
- Linux 41
Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | Feb 4 | Feb 3 | Feb 2 | Feb 1 | Jan 31 | Jan 30 | Jan 29 | Jan 28 | Jan 27 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
this is a modified fork of the iOpener package.
python38/ST4
With newer versions of sublime text One can use the python38 interpreter that includes the typing library. With LSP installed this helps developing quite a bit. So I refactored the code to be more or less statically typed. This however makes the package not compatible with earlier versions of sublime (not even ST3).
And I therefor dropped the different tests for sublime versions.
Restructured the project
iOpener.py
-> pathbox.py
, PathBoxOpen.py
I extracted the tab-completion stuff into a separate module so it is “easy” to use it for other things than opening a file.
PathBoxMove command will rename the path of the currently open file. i.e move it. Using the same UI. If a directory needed doesn't exist it will get created.
PathBoxOpen command is similar to iOpener, it will also create necessary directories when it is used to open a non-existing file. i.e creating a new file. If a directory is opened it gets added to the current project.
Worth noting is that by making the more general
module pathbox.py
, I decided to drop support
for history.
With iOpener when multiple completions is available
when tab
was pressed, an additional tab
press
was needed to show the completions. With PathBox
completions are shown after the first press
instead.
preferences
If the setting "use_project_manager"
is set
to true, new project will get created using
the ProjectManager package if it is installed.
New projects is in that case created when a folder
is opened with path_box_open
in a empty project.
You have to enable keybindings yourself, personally i use:
{ "keys": ["ctrl+o"], "command": "path_box_open" },
{ "keys": ["f2"], "command": "path_box_move" },