Skip to main content

Keyboard shortcuts

All shortcuts are bound in one place (crates/app/src/lib.rs), and the menus, buttons and the command palette use the same actions. The Keyboard shortcuts dialog (the keyboard button of the status bar) and the command palette read the live keymap, so what they show is always accurate.

Everywhere​

ShortcutAction
⌘PGo to File
⇧⌘PCommand palette
⇧⌘FSearch in project
⌘SSave the open file
⌘WClose the open editor tab; pressed again, the remaining tabs from the last to the first (never the window). In a terminal it does nothing, so a running terminal is never closed by accident
⌘JShow or hide the terminals
⇧⌘AShow or hide the AI agents
⇧⌘MMention projects (in the AI view and terminals)
⇧⌘GOpen the repository on its hosting service
⌘TNew terminal tab (shows the terminals)
⌘D / ⇧⌘DSplit the terminal pane side by side / one above the other
⌘,Settings
⌘QQuit

Editor​

ShortcutAction
⌘FFind in the file: a widget at the top right of the editor with the selected text as the query, Aa (match case), the match count (3 of 8), previous / next (⇧↵ / ↵) and close (Esc). The matches are highlighted in the text
⌥⌘FFind and replace: the same widget with the replace row open (↵ in the replace field replaces one, ⌥⌘↵ or All replaces every match; both are off while nothing matches). The arrow at its left opens or closes the row
⇧⌘FSearch in project, also while the editor has the focus
⌘K ⌘CAdd line comment to the selected lines
⌘K ⌘URemove line comment
⌘DAdd the next occurrence: selects the word at the cursor, then each press adds the next place the selected text occurs (wraps around the file). In a terminal, ⌘D still splits the pane
⌘/Toggle line comment: off when every line is already a comment, else on

The marker follows the language: // (Rust, JavaScript, TypeScript, Go, Swift, Kotlin), # (Python, shell, YAML, TOML, .env, Dockerfile, .gitignore), <!-- --> (HTML, Markdown) and /* */ (CSS). A language without comments, such as JSON, says so in a notification.

Git lists​

ShortcutAction
↑ / ↓In the Changes list: show the diff of the file above / below the chosen one. In History: the commit above / below. Click a row first so the list has the keyboard; with none chosen ↓ takes the first row and ↑ the last. The list scrolls only when the row is out of view

Search results​

ShortcutAction
⌘↵Open all results as a read-only editor tab

Terminal​

ShortcutAction
⌘C / ⌘VCopy / paste
⌘KClear the scrollback
⇧PageUp / ⇧PageDownScroll the history by a screen
⇧Home / ⇧EndJump to the oldest / latest output
⌥← / ⌥→Move by word
⌘← / ⌘→Move to the start / end of the line
⇧← ⇧→ ⇧↑ ⇧↓Move the end of the selection

Everything without a shortcut is in the command palette.