Navigating

This page shows how to move around a project: files, headings, definitions and issues.

Open Quickly and Go to Line

Navigate › Open Quickly… (⇧⌘O) finds a file, heading, label, function, variable, bibliography entry or Typst function from a few of its letters. To open a file at a line, type name:line.

Navigate › Go to Line… (⌘L) moves the caret to a line. Type 42 for a line, 42:7 for a line and column, or +10 and -10 relative to the current line.

The Open Quickly panel listing a label and a heading that match “write” The Open Quickly panel listing a label and a heading that match “write”
Open Quickly finds files, headings and labels as you type.

The sidebar has six navigators. Switch with Navigate › Show … Navigator or the shortcuts below.

The sidebar with the six navigator tabs and the Outline navigator open The sidebar with the six navigator tabs and the Outline navigator open
The Outline navigator

In the Search navigator, type a query to list the matches in all files, grouped by file. Choose Find or Replace in the pop-up at the top of the navigator. In Replace mode each row shows a preview of the change, and you can use Replace or Replace All. The search options include a regular-expression mode.

Bookmarks

Definitions, references and renaming

Navigate › Go Back (⌃⌘←) and Navigate › Go Forward (⌃⌘→) move through the places you visited.

Quick fixes

Put the caret on an issue and choose Navigate › Show Quick Fixes (⌘.). Typo offers fixes such as a similar label or name, a missing import, a nearby file, an installed font instead of a missing one, or an update for a package import.

Tabs, split editor and focus mode

The command palette, View › Command Palette… (⇧⌘P), finds and runs any menu command.