Home Download Buy Blog Forum Support

How to "go to" Javascript functions?

How to "go to" Javascript functions?

Postby tux. on Thu Apr 14, 2011 11:06 am

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?
Image
tux.
 
Posts: 118
Joined: Thu Apr 14, 2011 11:04 am

Re: How to "go to" Javascript functions?

Postby jbrooksuk on Thu Apr 14, 2011 11:07 am

tux. wrote: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?

Press Ctrl+P then type, "@field" and you should jump to the function :)
jbrooksuk
 
Posts: 774
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: How to "go to" Javascript functions?

Postby tux. on Thu Apr 14, 2011 11:11 am

Ahhh great, thanks. :)
Are there any docs about that?
Image
tux.
 
Posts: 118
Joined: Thu Apr 14, 2011 11:04 am

Re: How to "go to" Javascript functions?

Postby jbrooksuk on Thu Apr 14, 2011 1:28 pm

tux. wrote:Ahhh great, thanks. :)
Are there any docs about that?

Maybe on sublimetext.info
jbrooksuk
 
Posts: 774
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: How to "go to" Javascript functions?

Postby tux. on Thu Apr 14, 2011 3:14 pm

AFAICS the goto thingy does not have a description there yet. :?
Image
tux.
 
Posts: 118
Joined: Thu Apr 14, 2011 11:04 am

Re: How to "go to" Javascript functions?

Postby jbrooksuk on Thu Apr 14, 2011 3:51 pm

tux. wrote:AFAICS the goto thingy does not have a description there yet. :?

It was introduced in one of the download pages.

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
jbrooksuk
 
Posts: 774
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: How to "go to" Javascript functions?

Postby tux. on Thu Apr 14, 2011 4:01 pm

Whew. URL? Got lost on the website...
Image
tux.
 
Posts: 118
Joined: Thu Apr 14, 2011 11:04 am

Re: How to "go to" Javascript functions?

Postby jbjornson on Fri Apr 15, 2011 7:19 am

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 (#)
jbjornson
 
Posts: 350
Joined: Tue Oct 27, 2009 4:25 pm
Location: Zurich, Switzerland

Re: How to "go to" Javascript functions?

Postby tux. on Fri Apr 15, 2011 11:54 am

Yikes. Thank you very much! :)
Image
tux.
 
Posts: 118
Joined: Thu Apr 14, 2011 11:04 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 38 guests