I presume Sublime Textâs âGoto Anythingâ thingy is able to jump to specified functions. Now I have some JS function called âFieldpopup()â in the header of my HTML file.
What would I have to enter if I want to jump there within the file?
How to "go to" Javascript functions?
[quote=âtux.â]I presume Sublime Textâs âGoto Anythingâ thingy is able to jump to specified functions. Now I have some JS function called âFieldpopup()â in the header of my HTML file.
What would I have to enter if I want to jump there within the file?[/quote]
Press Ctrl+P then type, â@fieldâ and you should jump to the function
[quote=âtux.â]Ahhh great, thanks.
Are there any docs about that?[/quote]
Maybe on sublimetext.info
It was introduced in one of the download pages.
[quote]Goto Anything: â@â operator will select the current symbol by default
Goto Anything: â:â operator wonât scroll the view until a line number is entered
Goto Anything: â#â operator wonât set the whole word flag on the find panel
Goto Anything: â#â operator can be used to search for punctuation
Goto Anything: Fixed a bug where an unexpected file could be selected[/quote]
You can see it the description in the â20110129 Changelogâ, near the bottom of the page at http://www.sublimetext.com/2.
As a quick note, you can also use ctrl+r, which will pop up the goto anything box with the @ already in there.
The various shortcuts are:
ctrl+p - goto anything
ctrl+r - goto symbol (@)
ctrl+g - goto line(
ctrl+; - goto word (#)