Search, copy and paste, and keyboard shortcuts
Find text in the scrollback, copy and paste safely, and the keyboard shortcuts Duo22 supports on each platform.
Searching the terminal
- Press ⌘F on a Mac or Ctrl+F on Windows and Linux. You can also click the search button in the terminal’s toolbar (Find (⌘F)), or right-click and choose Find….
- Type in the Find box. Matches are highlighted in your accent colour as you type, and a counter shows where you are, for example “3 of 12”. If nothing matches, it shows No results.
- Press Enter for the next match or Shift+Enter for the previous one. You can also use the up and down arrow buttons.
- Press Esc or click the × button (Close (esc)) to close the find bar.
Search covers the terminal’s scrollback. The number of lines kept is set in Settings → Terminal → Scrollback lines.
Copying and pasting
- Copy: select text, then press ⌘C on a Mac or Ctrl+Shift+C on Windows and Linux. Without a selection, the keys go to the server as normal, so Ctrl+C still interrupts the running command.
- Paste: on a Mac, press ⌘V. On any platform you can right-click in a connected terminal and choose Paste. Pasted text goes through the terminal, so programs that use bracketed paste get it in the form they expect.
The terminal’s right-click menu also has Copy, Select all and Clear.
Opening links
Links shown in the terminal can be clicked. Duo22 asks “Open … in your browser?” before it opens anything.
Keyboard shortcuts
On a Mac, most shortcuts come from the menu bar. Windows and Linux have no menu bar, so they have fewer shortcuts.
macOS
| Shortcut | Action |
|---|---|
| ⌘K or ⌘P | Quick connect to any host |
| ⌘N | New host |
| ⌘1 to ⌘9 | Hosts, Keychain, Port Forwarding, Snippets, SFTP, Docker, Kubernetes, Health, Vaults |
| ⌘, | Settings |
| ⌘W | Close the current tab |
| ⇧⌘W | Close the window |
| ⌥⌘→ / ⌥⌘← | Next / previous tab |
| ⌘F | Search the terminal |
| ⌘S | Save the file you’re editing |
| ⌥⌘S | Sync now |
| ⌘L | Lock the vault |
| ⇧⌘/ or F1 | Help for what’s showing |
Windows and Linux
| Shortcut | Action |
|---|---|
| Ctrl+K or Ctrl+P | Quick connect to any host |
| Ctrl+F | Search the terminal |
| Ctrl+Shift+C | Copy the terminal selection |
| Ctrl+S | Save the file you’re editing |
| F1 | Help for what’s showing |
In a terminal
| Key | Action |
|---|---|
| → or End | Accept the grey command suggestion |
| ⌥→ (Mac) / Alt+→ | Accept just the next word of the suggestion |
| Enter / Shift+Enter | Next / previous match in the find bar |
| Esc | Close the find bar |
If a program running in the terminal handles F1 itself, F1 goes to that program instead of opening Duo22’s help.
For more on suggestions, see Terminal settings, command suggestions and auto-reconnect.
Still stuck? Check the FAQ, or browse thehelp centre.