Goto With Common Suffix
Find the common suffix path with the project folder
Details
Installs
- Total 174
- Win 98
- Mac 53
- Linux 23
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 | Nov 11 | Nov 10 | Nov 9 | Nov 8 | Nov 7 | Nov 6 | Nov 5 | Nov 4 | Nov 3 | Nov 2 | Nov 1 | Oct 31 | Oct 30 | Oct 29 | Oct 28 | Oct 27 | Oct 26 | Oct 25 | Oct 24 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 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 |
Mac | 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 | 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
Goto With Common Suffix plugin
This plugin extends the usage of Sublime's File navigation by allowing you to use common suffix paths.
For example, I have opened up a Sublime window at /Users/ivan/projects
and I have a file located at /Users/ivan/projects/example/readme.txt
. I can use any arrangement of prefixes and input paths like /var/www/example/readme.txt
and the plugin will correctly determine the common suffix (example/readme.txt
) and opens the Goto Anything with it.
The use case is that I sometimes get GitHub urls that point to a file. I would like to simply copy that address and use this plugin to determine the file I want. It removes the step of me manually figuring out the common suffix to put in the quick finder. Other times, stack traces from other machines include file location but those locations are specific to that machine's file system. This plugin can help you get to the file you want.
Installation
Install via Package Control or you can manually install the package.
Usage
There is now a method named goto_with_common_suffix
and command name Goto With common suffix
that invokes it. You can use this plugin by opening the Command Palette and selecting this command.
You can also set your custom key binding to invoke the command. Here's my user sublime key map file:
[
{ "keys": ["ctrl+p"], "command": "goto_with_common_suffix"}
]
Here is a gif showing how I have this project opened in sublime and that by invoking this plugin (with ctrl+p), I can paste https://github.com/ivantsepp/goto-with-common-suffix/blob/master/goto_with_common_suffix.py
and it will correctly find the common suffix.