I'm sorry I can't understand this, I'm not a programmer..I don't get it though, don't you know if it works for latex files? Does gf accept only specific path formats?Latex references files either like this: "\include{relativepath/to/file}" or this "\input{relativepath/to/file}"What does ST2 expect to see in order for gf to work?

* if the selection is not empty * if selected text is the path to an existing file; open it* else: * extend selection to both sides until an "illegal path character" is found * if the new selection is a path to an existing file; open it

All paths, if not absolute, are combined with the active view's directory name prior to testing them.

I based this implementation on what I understood Vim's command will do, and what seems to make sense for Sublime Text (Sublime Text maintains a virtual current dir which isn't the same as the actual one.)