Sublime Forum

Plugin for costum go to definition

#1

I need to create a plugin to define a pattern to make easy going to specific file

for example if hover on code like this: file('dir1/dir2/fil.xyz')
shows a box to click on file and go there

box like this:

thanks

0 Likes

#2

Unzip the default.sublime-package (in your install directory\Package) and open the symbol.py file.
Check the function ShowDefinition, it is the code corresponding to the popup in your screenshot.

3 Likes

#3

You can also do this directly within Sublime by using View Package File from the command line and selecting Default/symbol.py from the list of package files (e.g. by entering symbol as filter text).

2 Likes