Sublime Forum

Open file under cursor

#1

I created a plugin from the idea posted by Marco Sordi on UserEcho.

The plugin will look for a file name in the following places (and in the following order):

  • the cursor expanded to enclosing quotes (both single and double quotes should work)

  • the selected text

  • the whole line

  • the clipboard text

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.

gist.github.com/1186126

0 Likes

#2

Finally a better attempt than mine!

0 Likes

#3

A simpler version, just opens file at cursor
gist.github.com/1344471

1 Like

#4

There is plugin github.com/SublimeText/Open-Include
Which does that. If you found more exceptions to add ( cases where included file can be opened )

There are very welcome there.

0 Likes