Skip to content

Instantly share code, notes, and snippets.

@trashhalo
Created December 29, 2024 00:00

Ghostty Keyboard Shortcuts

Default keyboard shortcuts for Ghostty terminal emulator. Platform-specific differences are noted where applicable.

Window Management

Action Windows/Linux macOS
New window Ctrl+Shift+N Cmd+N
Close window Alt+F4 Cmd+Shift+W
Close all windows - Cmd+Shift+Option+W
Toggle fullscreen Ctrl+Enter Cmd+Enter or Cmd+Ctrl+F
Quit application Ctrl+Shift+Q Cmd+Q

Tab Management

Action Windows/Linux macOS
New tab Ctrl+Shift+T Cmd+T
Close tab/surface Ctrl+Shift+W Cmd+W
Previous tab Ctrl+Shift+Tab, Ctrl+Shift+Left, Ctrl+Page Up Cmd+Shift+[
Next tab Ctrl+Tab, Ctrl+Shift+Right, Ctrl+Page Down Cmd+Shift+]
Go to tab 1-8 Alt+[1-8] Cmd+[1-8]
Go to last tab Alt+9 Cmd+9
Move tab - -

Split Management

Action Windows/Linux macOS
New split (right) Ctrl+Shift+O Cmd+D
New split (down) Ctrl+Shift+E Cmd+Shift+D
Focus previous split Ctrl+Super+[ Cmd+[
Focus next split Ctrl+Super+] Cmd+]
Focus split up Ctrl+Alt+Up Cmd+Option+Up
Focus split down Ctrl+Alt+Down Cmd+Option+Down
Focus split left Ctrl+Alt+Left Cmd+Option+Left
Focus split right Ctrl+Alt+Right Cmd+Option+Right
Toggle split zoom Ctrl+Shift+Enter Cmd+Shift+Enter
Resize split up Ctrl+Super+Shift+Up Cmd+Ctrl+Up
Resize split down Ctrl+Super+Shift+Down Cmd+Ctrl+Down
Resize split left Ctrl+Super+Shift+Left Cmd+Ctrl+Left
Resize split right Ctrl+Super+Shift+Right Cmd+Ctrl+Right
Equalize splits Ctrl+Super+Shift+= Cmd+Ctrl+=

Copy & Paste

Action Windows/Linux macOS
Copy Ctrl+Shift+C Cmd+C
Paste Ctrl+Shift+V Cmd+V
Paste from selection Shift+Insert -

Text Navigation

Action Windows/Linux macOS
Scroll to top Shift+Home Cmd+Home
Scroll to bottom Shift+End Cmd+End
Scroll page up Shift+Page Up Cmd+Page Up
Scroll page down Shift+Page Down Cmd+Page Down
Jump to previous prompt Ctrl+Shift+Page Up Cmd+Up
Jump to next prompt Ctrl+Shift+Page Down Cmd+Down
Clear screen - Cmd+K

Font Size

Action Windows/Linux macOS
Increase font size Ctrl++/Ctrl+= Cmd++/Cmd+=
Decrease font size Ctrl+- Cmd+-
Reset font size Ctrl+0 Cmd+0

Configuration

Action Windows/Linux macOS
Open config Ctrl+, Cmd+,
Reload config Ctrl+Shift+, Cmd+Shift+,

Inspector

Action Windows/Linux macOS
Toggle inspector Ctrl+Shift+I Cmd+Option+I

Scrollback

Action Windows/Linux macOS
Write scrollback to file (paste) Ctrl+Shift+J Cmd+Shift+J
Write scrollback to file (open) Ctrl+Shift+Alt+J Cmd+Shift+Option+J

Note: These are the default keybindings. All keybindings can be customized through the configuration file using the keybind option.

@gitmpr
Copy link

gitmpr commented Dec 30, 2024

ghostty +list-keybinds

@noodlefreeze
Copy link

How to close split?

@noodlefreeze
Copy link

How to close split?

I found it, we need config it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment