SEPath
Sublime Text 3 plugin to quickly open path from file on the same place or in the file manager
Details
Installs
- Total 113
- Win 64
- Mac 20
- Linux 29
Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | Nov 30 | Nov 29 | Nov 28 | Nov 27 | Nov 26 | Nov 25 | Nov 24 | Nov 23 | Nov 22 | Nov 21 | Nov 20 | Nov 19 | Nov 18 | Nov 17 | Nov 16 | Nov 15 | Nov 14 | Nov 13 | Nov 12 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 1 | 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 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 0 | 1 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
SEPath
This script allows you to quickly open file paths from the sublime text 3
in the same place or in the file manager.
Installation
Install this sublime text 3
package via [Package Control]:
Through Command Palette Ctrl(Cmd) + Shift + P find Package Control: Install Package
and install SEPath
package.
Usage
To open file or folder, click on the path and press F5 key for Linux or Windows or through Command Palette Ctrl(Cmd) + Shift + P find SEPath: Open
To open specific path folder in the file manager, click on it and press Ctrl + F5 keys for Linux or Windows or through Command Palette Ctrl(Cmd) + Shift + P find SEPath: Open sub path folder
For OS X, you can add your own shortcuts in Preferences/Package Settings/SEPath/Key Bindings - User
.
Key bindings template:
[
{
"keys": ["Your shortcut"],
"command": "open"
},
{
"keys": ["Your shortcut"],
"command": "open_in_file_manager"
}
]
Settings
Settings are accessed via the Preferences/Package Settings/SEPath
or through Command Palette Ctrl(Cmd) + Shift + P
. To find them, write Preferences: SEPath Settings - User/Default
and click on it.
By default you can open only full
and relative
path.
For addition base
path, you need to add base_folder_name
or base_directories
or all at once.
0. Settings template
{
"base_directory_key" : ":/",
"base_folder_name" : "data",
"base_directories" : [
]
}
1. base_directory_key ("base_directory_key" : ":/"
)
The base directory key is a string that replaces a part of the full path.
Let the full path of the file look like this: /home/user/downloads/project/data/json/books.json
.
Replace the /home/user/downloads/project/data
sub path with :/
, where :/
is the base directory key. The final path can be written as: : /json/books.json
.
root_replacement_key
by default is :/
.
2. base_folder_name ("base_folder_name" : "base folder name"
)
base_folder_name
is the name of the folder that replaces the root. If the path of the current file does not contain one of the base_directories
, then from the end of the current path, a folder with the base folder name
will be searched.
If a folder with this name is found, then in the path that was clicked, base_directory_key
will be replaced with the full path to this folder.
3. base_directories list
These settings are used to create different 'base_directories' for different projects. “ { "base_directory_key” : “:/” “base_directories”: [ “/home/user/project/data”, “/home/user/project/build/testdata” ] }
### 4. base_directories [dict; not fully implemented] (`"base_directories" : {"path, which sub path will be replaced" : "base directory path"}`)
{ “base_directory_key” : “:/” “base_directories”: { “/home/user/project/data0” : “”, “/home/user/project/data1” : “/home/user/project/data2” } }
# License
This project is licensed under the MIT License - see the [LICENSE](https://github.com/eudorokhov/SEPath/blob/master/LICENSE) file for details.