Ghostty keyboard shortcuts

Ghostty's defaults are about arranging terminal work. Split the surface, move between tabs, copy and paste, search scrollback, change the view, and reload configuration while keeping the shell session alive.

macOS, Linux · 40 shortcuts

Splits and pane focus

Create splits, move between them by direction, zoom the focused split, and adjust the layout without leaving the terminal.

ActionmacOSLinux
Create a split to the rightCmdDCtrlShiftO
Create a split belowCmdShiftDCtrlShiftE
Focus the previous splitCmd[CtrlSuper[
Focus the next splitCmd]CtrlSuper]
Focus the split in a directionUse the corresponding arrow for down, left, or right.CmdOptionUpCtrlAltUp
Zoom the focused split to fill the tabCmdShiftEnterCtrlShiftEnter
Resize the focused splitUse the corresponding arrow for down, left, or right. Ghostty's Linux source calls Super the Cmd key.CmdCtrlUpCmdCtrlShiftUp
Equalize split sizesCmdCtrl=CtrlShift=
Close the focused surfaceA surface may be a split, tab, or window depending on the current layout.CmdWCtrlShiftW

Tabs and windows

Open, close, switch, and jump among terminal tabs and windows while preserving each running process.

ActionmacOSLinux
Open a new tabCmdTCtrlShiftT
Open a new windowCmdNCtrlShiftN
Switch to the next tabLinux also documents Ctrl+Page Down and Ctrl+Shift+Right.CmdShift]CtrlTab
Switch to the previous tabLinux also documents Ctrl+Page Up and Ctrl+Shift+Left.CmdShift[CtrlShiftTab
Jump to the last tabCmd9Alt9
Jump to a tab by numberUse the corresponding digit for tabs one through eight; 9 is the last tab.Cmd1Alt1
Close the current tab and its splitsOn macOS Cmd+W closes only the focused surface.CmdOptionWCtrlShiftW
Close the current windowCmdShiftWAltF4
Quit GhosttyCmdQCtrlShiftQ

Clipboard, search, and scrollback

Copy terminal output, search the current surface, select text, and move through scrollback or shell-integrated prompts.

ActionmacOSLinux
Copy the selectionCmdCCtrlShiftC
Paste from the clipboardCmdVCtrlShiftV
Paste from the selection clipboardCmdShiftVShiftInsert
Select all visible terminal textCmdACtrlShiftA
Open terminal searchCmd+Shift+F ends search; Cmd+G and Cmd+Shift+G move to the next or previous match on macOS. Cmd+F or Ctrl+F searches the current selection when configured by the platform.CmdFCtrlShiftF
Scroll up one pageCmdPage UpShiftPage Up
Scroll down one pageCmdPage DownShiftPage Down
Scroll to the top of scrollbackCmdHomeShiftHome
Scroll to the bottom of scrollbackCmdEndShiftEnd
Jump to the previous shell promptShell integration is required.CmdUpCtrlShiftPage Up
Jump to the next shell promptShell integration is required.CmdDownCtrlShiftPage Down

View and configuration

Change font size, clear or inspect the terminal, open the action palette, toggle fullscreen, and reload configuration.

ActionmacOSLinux
Increase font sizeThe = form also increases size.Cmd+Ctrl+
Decrease font sizeCmd-Ctrl-
Reset font sizeCmd0Ctrl0
Clear the screen and scrollbackCmdKCtrlL
Toggle fullscreenCmd+Enter is also a macOS default.CmdCtrlFCtrlEnter
Open the Ghostty config fileCmd,Ctrl,
Reload configurationCmdShift,CtrlShift,
Open the command paletteCmdShiftPCtrlShiftP
Toggle the terminal inspectorCmdOptionICtrlShiftI
Write the visible screen to a file or paste itThe action can be configured to copy, open, or paste the exported screen.CmdShiftJCtrlShiftJ

Make a printable Ghostty sheet