Home Download Buy Blog Forum Support

Goto Anything

Goto Anything

Postby aaronelliotross on Thu Oct 27, 2011 2:17 pm

Hi,

What does GoTo Anything do?

It seems like it searches then paths of currently open files. Is that right?

Thanks,
aaronelliotross
 
Posts: 1
Joined: Thu Oct 27, 2011 2:14 pm

Re: Goto Anything

Postby elishnevsky on Thu Oct 27, 2011 3:08 pm

From the blog http://www.sublimetext.com/blog/

Goto Anything

Sublime Text 2 has Goto Anything (Ctrl+P on Windows and Linux, Command+P on OS X) to quickly navigate between and within files:

  • Type part of a file name to open it. Files can be open files, recently closed files, or files in the project. The fuzzy matching is fast and intelligent, providing instant-as-you-type navigation on 50,000+ file projects.
  • Type an ‘@’ character, and start browsing by symbol. Type ‘#’ to search within the file, or ‘:’ to go to a line number.
  • Combining these together, for example, “tp@rf” may take you to a function called “read_file” within a file named “text_parser.py”. Similarly, ‘tp:100′ would take you to line 100 of the same file.

The Goto Anything panel previews where it will take you as you type, loading files asynchronously in the background. You can use this to quickly look up the definition of a function, pressing escape to go back.

The various within-file symbols operate on the current file if typed alone, for example, “:50″ will take you to line 50 of the current file, and “@” will browse the symbols of the current file. There are key bindings to open the Goto Anything panel with these pre-filled, for example, Ctrl+R (Command+R on OS X) will go directly to the list of symbols in the current file.
elishnevsky
 
Posts: 5
Joined: Mon Oct 24, 2011 5:03 pm
Location: Canada


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 24 guests