Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Keyboard selection, URLs and moving tabs

These Ghostty actions work as they do in Ghostty:

  • adjust_selection:DIRECTION moves the end of the current selection: left, right (to the next cell with text, skipping empty cells and wrapping lines; a space a program wrote counts as text), up, down, page_up, page_down, home, end (the start of the scrollback, the end of the last line with text), beginning_of_line and end_of_line. The view scrolls to keep the end in sight. Without a selection it does nothing. Shift+Left/Right/Up/Down are bound to it with Ghostty's performable: flag: they extend a selection when there is one, and otherwise reach the program as usual. Shift+Home/End/PgUp/PgDn keep scrolling the view, as in Ghostty on Linux and Windows.
  • Block selection: drag with Alt (Windows Terminal, ConEmu) or Ctrl+Alt (Ghostty on Linux) held to select a block of columns, such as one column of ps or git log output. Copying gives one line per row, with trailing spaces trimmed as clipboard-trim-trailing-spaces says; a wide character or emoji on the block's edge is copied whole. With mouse reporting on, hold Shift too. The block is of logical columns: on a row that bidi reorders (Arabic, Hebrew) the highlighted cells are where those columns are drawn, and the copy is exactly the highlighted cells, in logical order.
  • Mark mode (v7_toggle_mark_mode, Ctrl+Shift+M, Toggle Mark Mode in the palette; Windows Terminal's key) selects from the keyboard. It starts with one cell at the cursor (or keeps the selection), drawn with a box. Arrows, Home/End and PgUp/PgDn move the mark; with Shift they extend the selection as adjust_selection does, Ctrl+Left/Right go by word, Ctrl+Home/End to the screen's corners, and Alt with Shift extends a block. Enter copies and leaves mark mode, Esc cancels, and any key that reaches the program leaves it. Other key bindings keep working.
  • copy_to_clipboard takes Ghostty's formats. mixed (the default, on Ctrl+Shift+C, the menus and right-click) puts HTML (CF_HTML) and RTF beside the plain text, with the cell colours, bold, italic, underline and strikethrough in the terminal font, so a paste into Word, Outlook or WordPad keeps them; text in the terminal's default colours takes the document's own, as Ghostty does. plain copies text only, vt text with its escape sequences, and html the HTML markup (as text and as CF_HTML, with the default colours). A selection over 1 MiB is copied as plain text only.
  • copy_url_to_clipboard (Copy URL to Clipboard in the palette) copies the link the mouse is hovering with Ctrl held (see Links below), so as in Ghostty it works from a Ctrl binding, for example keybind = performable:ctrl+u=copy_url_to_clipboard.
  • move_tab_to_new_window (Move Tab to New Window in the palette) moves the active tab into a new window. Its program keeps running and its screen, scrollback, title and font size come along; a tab with splits moves with all of them, its focus and its zoom. With one tab it does nothing, as in Ghostty.
  • Dragging a tab out of the tab bar does the same with the mouse, as in Windows Terminal and Ghostty's GTK tabs. Once the pointer is a little above or below the tab bar, or outside the window, the tab opens in a new window under the pointer, and that window follows the pointer until you let go. Over another Voyager7 window's tabs or title bar, that window's tab bar opens a gap where the tab would go (and appears if it was hidden, as Ghostty's GTK tab bars do); let go there and the tab joins that window. Press Esc while dragging and everything goes back where it was. Dragging a window's only tab moves the window, and drops it into another window the same way; so does dragging a one-tab window by its title bar onto another window's tabs or title bar (as Chrome's windows do). Anywhere else a title-bar drag stays a normal window move, with Aero Snap and drag to maximize. Dragging along the tab bar still reorders tabs; the "+" stays after the tabs meanwhile, as in Windows Terminal and Chrome, and slides when a tab leaves or a gap opens.
  • Hold Ctrl while dragging a tab to copy it instead, as File Pilot's tabs do. The original stays where it is, the pointer shows Windows' copy cursor, and along the tab bar a copy of the tab with a "+" badge follows the pointer to the gap it would take; out of the tab bar nothing tears off while Ctrl is held. Pressing or releasing Ctrl switches between moving and copying at any time. A running program can't be copied, so the copy is a new tab, started as new_tab starts one: the configured command (not a program started inside the tab later, such as nu typed at a cmd prompt), in the dragged tab's working directory when tab-inherit-working-directory allows (dropped outside every window: a new window there, under window-inherit-working-directory).

Links work as in Ghostty. Hold Ctrl over a URL (found as Ghostty's default link pattern finds URLs with a scheme: https://, mailto:, file:, ssh:// and the others, without a trailing . or ,) or an OSC 8 hyperlink: it is underlined (doubly over text that is already underlined; an OSC 8 link everywhere on the screen it appears) and the pointer becomes a hand. Ctrl+click opens it with the program Windows has registered for it; the click selects nothing. Without Ctrl, clicks select as usual, and a double click on a URL selects the whole URL. While a program reads the mouse, Ctrl+Shift does what Ctrl does (unless mouse-shift-capture gives Shift to the program) and a plain Ctrl+click goes to the program. A link opens at once, as in Ghostty on Linux: whatever its scheme, with the program Windows has registered for it, and a file: link or a path in its application. Ghostty on Linux opens files with xdg-open, which never runs a program and never reaches another computer for a file: link; Windows' "open" would do both, so to keep that meaning Voyager7 does not open a target Windows would run (a file type such as .exe, .bat, .cmd, .ps1, .lnk or .msi, or a name without a file type that is not a folder, which Windows would look up as a program) or a file on another computer (file://server/…, \\server\…), and offers to copy it instead. This is the Windows equivalent of xdg-open, not an extra check. A macOS build would follow Ghostty's stricter macOS rules (web and mail links open, other schemes ask first). link-url = false turns URL detection off and link-osc8 = false OSC 8 hyperlinks. Not yet: Ghostty's file-path matches (/tmp/x, src/main.rs), link rules of your own (Ghostty cannot set them either) and link-previews (the URL shown in a corner while hovering).

None of the three is bound by default except the Shift+arrows. The performable: prefix works on any binding: the key reaches the program whenever the action has nothing to do, as in the copy_url_to_clipboard example above. As in Ghostty, the tab keys Ctrl+Shift+Left/Right, Ctrl+PgUp/PgDn, Ctrl+Shift+PgUp/PgDn and Alt+1 to Alt+9 are performable by default, so they reach the program when there is no other tab to go to. Ghostty also makes Ctrl+Shift+C and Ctrl+Shift+V performable; Voyager7 does not, because without a selection Ctrl+Shift+C would reach a Windows console program as Ctrl+C and stop it. The global: prefix works too (see Quick terminal); all: and unconsumed: are not supported yet. goto_tab:N past the last tab goes to the last tab, as in Ghostty.