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 (#)