Sublime Forum

Jump To Function - and back

#1

Hi,

Is there some way to add this functionality (which is what would justify the purchase of the software). I have a number of files in a folder. I want to right click on a function and select goto - and have it find the function in the set of files and jump to that location.

The other thing that would be key is if the back/forward buttons on my mouse would let me jump to the previous file I was editing before a jump and to redo a jump.

Thanks,
Reza

0 Likes

#2

If the definition is in another file, just press ctrl+tab
If it’s in the same file, press ctrl+u (for soft undo)

0 Likes

#3

I really would like to add it as a right click menu option than having to type in the name of the function. How hard would that be to do?

0 Likes

#4

Create a new file called Context.sublime-menu file into your user directory. Add this to the file:

    { "command": "jump_back", "caption": "Jump Back" }
    { "command": "jump_forward", "caption": "Jump Forward" },
]

Done.

0 Likes