ghostty

default keybinds — a fast terminal emulator

keybinds

super is Cmd on macOS and Super/Win on Linux. run ghostty +list-keybinds --default to see all bindings. this cheatsheet covers the most useful defaults.

clipboard & selection

keydescriptioncommand
super+cCopy selection to clipboardcopy_to_clipboard
super+vPaste from clipboardpaste_from_clipboard
super+shift+vPaste from primary selectionpaste_from_selection
super+aSelect all text in the surfaceselect_all

tabs

keydescriptioncommand
super+tNew tabnew_tab
super+shift+]Next tabnext_tab
super+shift+[Previous tabprevious_tab
ctrl+tabNext tabnext_tab
ctrl+shift+tabPrevious tabprevious_tab
super+1super+8Go to tab 1–8goto_tab:<n>
super+9Go to last tabgoto_tab:last
super+alt+wClose tabclose_tab

windows

keydescriptioncommand
super+nNew windownew_window
super+wClose surfaceclose_surface
super+shift+wClose windowclose_window
super+alt+shift+wClose all windowsclose_all_windows
super+enterToggle fullscreentoggle_fullscreen
super+ctrl+fToggle fullscreentoggle_fullscreen

splits

keydescriptioncommand
super+dNew split (right)new_split:right
super+shift+dNew split (down)new_split:down
super+[Go to previous splitgoto_split:previous
super+]Go to next splitgoto_split:next
super+alt+UpGo to split abovegoto_split:up
super+alt+DownGo to split belowgoto_split:down
super+alt+LeftGo to split leftgoto_split:left
super+alt+RightGo to split rightgoto_split:right
super+ctrl+UpResize split up by 10pxresize_split:up,10
super+ctrl+DownResize split down by 10pxresize_split:down,10
super+ctrl+LeftResize split left by 10pxresize_split:left,10
super+ctrl+RightResize split right by 10pxresize_split:right,10
super+ctrl+=Equalize splitsequalize_splits
super+shift+enterToggle split zoomtoggle_split_zoom

font size

keydescriptioncommand
super+=Increase font sizeincrease_font_size:1
super++Increase font size (from shift)increase_font_size:1
super+-Decrease font sizedecrease_font_size:1
super+0Reset font sizereset_font_size

scrolling

keydescriptioncommand
super+PageUpScroll page upscroll_page_up
super+PageDownScroll page downscroll_page_down
super+HomeScroll to topscroll_to_top
super+EndScroll to bottomscroll_to_bottom

jump to prompt

requires shell integration; jumps between shell prompts (e.g. between command outputs).

keydescriptioncommand
super+UpJump to previous promptjump_to_prompt:-1
super+DownJump to next promptjump_to_prompt:1
super+shift+UpJump to previous promptjump_to_prompt:-1
super+shift+DownJump to next promptjump_to_prompt:1

shell line editing

sends control sequences that emulate common readline shortcuts when a shell is active.

keydescriptioncommand
super+LeftJump to start of line (sends Ctrl-A)text:\x01
super+RightJump to end of line (sends Ctrl-E)text:\x05
super+BackspaceDelete to start of line (sends Ctrl-U)text:\x15
alt+LeftMove back one word (sends Esc+b)esc:b
alt+RightMove forward one word (sends Esc+f)esc:f

adjust selection

extends the current selection in the given direction.

keydescriptioncommand
shift+LeftExtend selection leftadjust_selection:left
shift+RightExtend selection rightadjust_selection:right
shift+UpExtend selection upadjust_selection:up
shift+DownExtend selection downadjust_selection:down
shift+HomeExtend to startadjust_selection:home
shift+EndExtend to endadjust_selection:end
shift+PageUpExtend selection page upadjust_selection:page_up
shift+PageDownExtend selection page downadjust_selection:page_down

rings & inspector

undo/redo rings operate on the terminal buffer (e.g. undone typing).

keydescriptioncommand
super+zUndoundo
super+shift+zRedoredo
super+shift+tUndo (tab-level alias)undo
super+alt+iToggle inspectorinspector:toggle
super+shift+pToggle command palettetoggle_command_palette

config & misc

keydescriptioncommand
super+,Open config fileopen_config
super+shift+,Reload configreload_config
super+kClear screenclear_screen
super+qQuitquit

screen capture

writes the scrollback / screen contents to an action: open, copy, or paste.

keydescriptioncommand
super+alt+shift+jWrite screen and openwrite_screen_file:open
super+ctrl+shift+jWrite screen and copywrite_screen_file:copy
super+shift+jWrite screen and pastewrite_screen_file:paste