+7
Open file under cursor
Often a file contains the name of a second file, and you would like to open the second file.
Like "gf" command on Vim
Thanks in advance
Customer support service by UserEcho
Often a file contains the name of a second file, and you would like to open the second file.
Like "gf" command on Vim
Thanks in advance
Customer support service by UserEcho
Here is a plugin that I created for this. You will have add a key mapping for it though.
https://gist.github.com/1186126
Totally awesome, Thank you!
It would be great if it could do the following steps:
1) Select text under the cursor between single or double quotes
2) Resolve the path and open the file
Ex.
| = cursor position
<link href="css/xam|pp.css" rel="stylesheet" type="text/css">
Open the file "xampp.css" inside "css" folder
Thanks Again!
I updated the plugin with the functionality requested by Marco Sordi.
The plugin will look for a file name in the following places (and in the following order):
If no filename can be found, the plugin will try to create a new file from the selected text.
Both relative and absolute paths should work.
https://gist.github.com/1186126
I also posted something on the forum, so any enhancement requests or other discussions should maybe go there:
http://www.sublimetext.com/forum/viewtopic.php?f=5&t=2971
Wonderful plugin. Thank you!