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 shortcutsSplits and pane focus
Create splits, move between them by direction, zoom the focused split, and adjust the layout without leaving the terminal.
| Action | macOS | Linux |
|---|---|---|
| Create a split to the right | CmdD | CtrlShiftO |
| Create a split below | CmdShiftD | CtrlShiftE |
| Focus the previous split | Cmd[ | CtrlSuper[ |
| Focus the next split | Cmd] | CtrlSuper] |
| Focus the split in a directionUse the corresponding arrow for down, left, or right. | CmdOptionUp | CtrlAltUp |
| Zoom the focused split to fill the tab | CmdShiftEnter | CtrlShiftEnter |
| Resize the focused splitUse the corresponding arrow for down, left, or right. Ghostty's Linux source calls Super the Cmd key. | CmdCtrlUp | CmdCtrlShiftUp |
| Equalize split sizes | CmdCtrl= | CtrlShift= |
| Close the focused surfaceA surface may be a split, tab, or window depending on the current layout. | CmdW | CtrlShiftW |
Tabs and windows
Open, close, switch, and jump among terminal tabs and windows while preserving each running process.
| Action | macOS | Linux |
|---|---|---|
| Open a new tab | CmdT | CtrlShiftT |
| Open a new window | CmdN | CtrlShiftN |
| 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 tab | Cmd9 | Alt9 |
| Jump to a tab by numberUse the corresponding digit for tabs one through eight; 9 is the last tab. | Cmd1 | Alt1 |
| Close the current tab and its splitsOn macOS Cmd+W closes only the focused surface. | CmdOptionW | CtrlShiftW |
| Close the current window | CmdShiftW | AltF4 |
| Quit Ghostty | CmdQ | CtrlShiftQ |
Clipboard, search, and scrollback
Copy terminal output, search the current surface, select text, and move through scrollback or shell-integrated prompts.
| Action | macOS | Linux |
|---|---|---|
| Copy the selection | CmdC | CtrlShiftC |
| Paste from the clipboard | CmdV | CtrlShiftV |
| Paste from the selection clipboard | CmdShiftV | ShiftInsert |
| Select all visible terminal text | CmdA | CtrlShiftA |
| 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. | CmdF | CtrlShiftF |
| Close terminal search | Esc | Esc |
| Scroll up one page | CmdPage Up | ShiftPage Up |
| Scroll down one page | CmdPage Down | ShiftPage Down |
| Scroll to the top of scrollback | CmdHome | ShiftHome |
| Scroll to the bottom of scrollback | CmdEnd | ShiftEnd |
| Jump to the previous shell promptShell integration is required. | CmdUp | CtrlShiftPage Up |
| Jump to the next shell promptShell integration is required. | CmdDown | CtrlShiftPage Down |
View and configuration
Change font size, clear or inspect the terminal, open the action palette, toggle fullscreen, and reload configuration.
| Action | macOS | Linux |
|---|---|---|
| Increase font sizeThe = form also increases size. | Cmd+ | Ctrl+ |
| Decrease font size | Cmd- | Ctrl- |
| Reset font size | Cmd0 | Ctrl0 |
| Clear the screen and scrollback | CmdK | CtrlL |
| Toggle fullscreenCmd+Enter is also a macOS default. | CmdCtrlF | CtrlEnter |
| Open the Ghostty config file | Cmd, | Ctrl, |
| Reload configuration | CmdShift, | CtrlShift, |
| Open the command palette | CmdShiftP | CtrlShiftP |
| Toggle the terminal inspector | CmdOptionI | CtrlShiftI |
| Write the visible screen to a file or paste itThe action can be configured to copy, open, or paste the exported screen. | CmdShiftJ | CtrlShiftJ |