Home Download Buy Blog Forum Support

Jump To Function - and back

Jump To Function - and back

Postby thereza on Thu Aug 01, 2013 1:22 am

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
thereza
 
Posts: 2
Joined: Thu Aug 01, 2013 1:19 am

Re: Jump To Function - and back

Postby iamntz on Thu Aug 01, 2013 4:40 am

If the definition is in another file, just press ctrl+tab
If it's in the same file, press ctrl+u (for soft undo)
iamntz
 
Posts: 911
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Jump To Function - and back

Postby thereza on Fri Aug 02, 2013 2:05 am

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?
thereza
 
Posts: 2
Joined: Thu Aug 01, 2013 1:19 am

Re: Jump To Function - and back

Postby iamntz on Fri Aug 02, 2013 11:15 am

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

Code: Select all
[
    { "command": "jump_back", "caption": "Jump Back" }
    { "command": "jump_forward", "caption": "Jump Forward" },
]


Done.
iamntz
 
Posts: 911
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Google [Bot] and 7 guests