GuidesKeyboard shortcuts

Keyboard shortcuts ​

Mod is ⌘ Command on macOS and iPadOS and Ctrl on Windows, Linux and Android. Ctrl is the Control key everywhere.

Changing shortcuts ​

Settings → Shortcuts lists every action with its shortcuts. Click + and press a key combination to add one, hover a shortcut and click × to remove it, or reset an action (or all of them) to the defaults. Shortcuts used by two actions are marked. Your shortcuts are stored in the vault and sync with it.

Terminal shortcuts take the key away from the shell. If you need a key in the shell — say Ctrl+R for its own history search, or Ctrl+W to delete a word on Linux — remove that shortcut.

Tabs ​

ActionWindows / LinuxmacOS
New terminal tabCtrl+T⌘+T
Connect to a host…Ctrl+Shift+N⌘+O, ⌘+⇧+N
Close tabCtrl+W, Ctrl+Shift+W⌘+W, ⌘+⇧+W
Reopen closed tabCtrl+Shift+T⌘+⇧+T
Rename tabCtrl+Shift+R, or double-click it⌘+⇧+R, or double-click it
Next tabCtrl+Tab, Ctrl+PgDn⌃+Tab, ⌘+⇧+]
Previous tabCtrl+Shift+Tab, Ctrl+PgUp⌃+⇧+Tab, ⌘+⇧+[
Move tab left / rightCtrl+Shift+PgUp / PgDn⌘+⇧+⌥+← / →
Go to tab 1–8 / lastCtrl+1…8 / 9 (also Alt)⌘+1…8 / 9
New tab with profile 1–9Ctrl+Shift+1…9⌘+⇧+1…9

The pinned Vault and SFTP tabs count as tabs 1 and 2. New terminal tab opens a local shell (in the directory of the current local tab) where the device has one, and the connection picker on phones and tablets. The shell is the terminal profile you used last, or always the default profile if you choose so under Settings → Terminal → Terminal profiles. Mod+Shift+1…9 opens the profiles in the order of that list (hidden ones left out); like Mod+1…9 they cannot be changed. On macOS, ⌘+⇧+3…5 are taken by the system's screenshot shortcuts unless you turn those off.

App ​

ActionShortcut
Command paletteMod+K, Mod+Shift+P
Jump to tab or hostMod+J
Toggle side panelMod+.
SettingsMod+,
Lock vaultMod+Shift+L

Terminal ​

ActionWindows / LinuxmacOS
Search command historyCtrl+R⌃+R
Show suggestionsCtrl+Space⌃+Space
Ask AI for a commandCtrl+`⌃+`
Command editorCtrl+Shift+E⌘+⇧+E
Previous / next commandCtrl+Shift+↑ / ↓⌘+↑ / ↓
Copy last outputCtrl+Shift+O⌘+⇧+O
Search in terminalCtrl+Shift+F⌘+F
Clear terminalCtrl+Shift+K⌘+⇧+K
Larger / smaller / reset textCtrl+= / - / 0⌘+= / - / 0
Copy selectionCtrl+C, Ctrl+Shift+C⌘+C
PasteCtrl+V, Ctrl+Shift+V⌘+V

While typing a command:

KeyAction
TabInsert the selected suggestion
↑ / ↓Choose a suggestion (while the list shows)
→ or EndAccept the grey inline suggestion
Ctrl+→ (⌥+→ on macOS)Accept its next word
# what you want + EnterAsk the local AI for a command

macOS also has the usual line editing keys: ⌘+←/→ (start / end of line), ⌥+←/→ (previous / next word), ⌘+⌫ (delete to the start of the line) and ⌥+⌫ (delete a word).

Outside macOS, Ctrl+C works as in Windows Terminal: with text selected it copies it and clears the selection, so the next Ctrl+C goes to the program again (to interrupt it); without a selection it always goes to the program. On macOS ⌃+C always interrupts. Pasting with Ctrl+V uses bracketed paste when the program supports it, so a pasted multi-line command does not run line by line. You can also enable Copy on select and Right-click to paste in Settings → Terminal. On macOS, Use Option as Meta key (on by default) sends ⌥ Option combinations as Meta/Alt to the shell.

SFTP ​

With a file list focused (click an entry, or Tab to it):

KeyAction
↑ / ↓, Home / EndMove to the previous / next, first / last entry
PgUp / PgDnMove by a page
Shift + any of the aboveExtend the selection
Mod+ASelect all
EscClear the selection (or cancel a drag)
Space / Mod+SpaceSelect the focused entry / add or remove it
EnterOpen the folder, or edit the file locally
Backspace, Alt+↑Go to the parent folder
F2Rename the focused entry
DeleteDelete the selection (asks first)

With the mouse: Mod+click adds or removes an entry, Shift+click selects a range, and dragging moves or copies the selection (see SFTP).

Split panes & workspaces ​

ActionWindows / LinuxmacOS
Split rightCtrl+Shift+D, Alt+Shift+=⌘+D
Split downCtrl+Alt+Shift+D, Alt+Shift+-⌘+⇧+D
Focus the pane left, right, above, belowAlt+← → ↑ ↓⌘+⌥+← → ↑ ↓
Next / previous paneCtrl+Alt+→ / ←⌘+] / [
Move the dividerAlt+Shift+← → ↑ ↓⌘+⌃+← → ↑ ↓
Maximize / restore a paneCtrl+Shift+Enter⌘+⇧+Enter
Close paneCtrl+W (in a split)⌘+W (in a split)
Toggle broadcastCtrl+Shift+B⌘+⇧+B

The pane keys only act in a tab with several panes: elsewhere Alt+arrows still reach the shell (for example for word movement). The divider keys move the nearest divider of the focused pane in the arrow's direction, 5% at a time. On a focused divider (Tab to it), the arrow keys move it too. See Split panes for the mouse.

Duplicate tab has no shortcut by default; it is in the tab menu and the command palette.

Mouse and touch ​

  • Middle-click a tab to close it; drag tabs to reorder them, or onto a terminal to split it; right-click a tab for more.
  • Drag a pane by its header to move it; double-click a divider to make the panes equal.
  • Double-click a tab to rename it, or the title bar to maximize or restore the window.
  • Click a command's exit-status badge for its actions.
  • Double-click a port-forwarding rule to start or stop it.
  • Mod+click a link in the terminal to open it (you are asked first).