File Navigation

Goto Anything

Using Goto Anything, you can navigate your project’s files swiftly.

../_images/file-management-goto-anything.png

Keyboard shortcuts related to Goto Anything:

Open Goto Anything Ctrl + P
Pin current item and close Goto Anything Enter
Pin current item
Close Goto Anything Esc

As you type into Goto Anything’s input area, names of files in the current project will be searched, and a preview of the best match will be shown. This preview is transient; that is, it won’t become the actual active view until you perform some operation on it. You will find transient views in other situations, for example, after clicking on a file in the sidebar.

Goto Anything lives up to its name –there’s more to it than locating files.

Goto Anything Operators

Goto Anything accepts several operators. All of them can be used on their own or after the search term.

Example:

models:100

This instructs Sublime Text to first search for a file whose path matches models, and then to go to line 100 in said file.

Supported Operators

@symbol

Searches the active file for the symbol named symbol.

Note

Symbols usually include class and function names.

Symbol searches will only yield results if the active file type has symbols defined for it. Symbols are defined in .tmLanguage files. For more information about symbols, see Symbols.

#term
Performs a fuzzy search of the term search term and highlights all matches.
:line_number
Goes to the specified line_number, or to the end of the file if line_number is larger that the file’s line count.

The Goto Anything operators are bound to the following shortcuts:

@ Ctrl + R
# Ctrl + ;
: Ctrl + G

Panes

Panes are groups of views. In Sublime Text, you can have multiple panes open at the same time.

Main keyboard shortcuts related to panes:

Create new pane Ctrl+K, Ctrl+↑
Close active pane Ctrl+K, Ctrl+↓

Further pane management commands can be found under View → Layout and related submenus.