Software Engineer's Blog

Using Ghostty Split Panes on Linux

Using Ghostty Split Panes on Linux

Ghostty provides a simple but useful split pane feature that lets you divide one terminal window into multiple working areas.

When working on Linux, I often need to run a server, check logs, use Git, or SSH into another machine at the same time. In that kind of workflow, Ghostty’s split feature is very handy. It lets me organize multiple terminal sessions in one window without always relying on tmux.

1. Basic Split Shortcuts

Here are the basic split shortcuts on Linux.

ActionShortcut
Split to the rightCtrl + Shift + O
Split downwardCtrl + Shift + E
Close the current splitCtrl + Shift + W

You can also close the current split by typing:

exit

2. Moving Between Split Panes

Once you have multiple panes open, you can move the focus between them using the following shortcuts.

ActionShortcut
Move to the pane aboveCtrl + Alt + ↑
Move to the pane belowCtrl + Alt + ↓
Move to the pane on the leftCtrl + Alt + ←
Move to the pane on the rightCtrl + Alt + →

This is useful when you have one pane running a server and another pane showing logs or Git commands.

3. Resizing Split Panes

Ghostty also allows you to resize the currently focused pane.

ActionShortcut
Resize upwardCtrl + Super(Win) + Shift + ↑
Resize downwardCtrl + Super(Win) + Shift + ↓
Resize to the leftCtrl + Super(Win) + Shift + ←
Resize to the rightCtrl + Super(Win) + Shift + →

If the pane sizes become uneven and you want to balance them again, use:

Ctrl + Super(Win) + Shift + =

4. Zooming the Current Pane

Sometimes you may want to focus on just one pane without closing the others.

Ghostty supports a Toggle Zoom feature for this.

ActionShortcut
Zoom or restore the current paneCtrl + Shift + Enter

This is especially useful when reading long logs, checking a large error message, or working with a command output that needs more space.

5. Customizing Keybindings

If the default shortcuts do not feel comfortable, you can customize them in the Ghostty config file.

The config file is usually located at:

~/.config/ghostty/config

For example, you can use Alt + \ to split to the right and Alt + - to split downward:

keybind = alt+\=new_split:right
keybind = alt+-=new_split:down

You can also use Alt + arrow keys to move between split panes:

keybind = alt+left=goto_split:left
keybind = alt+right=goto_split:right
keybind = alt+up=goto_split:up
keybind = alt+down=goto_split:down

And if you want to resize panes with Alt + Shift + arrow keys, you can add:

keybind = alt+shift+left=resize_split:left,20
keybind = alt+shift+right=resize_split:right,20
keybind = alt+shift+up=resize_split:up,20
keybind = alt+shift+down=resize_split:down,20

The number 20 means how much the pane size changes each time. You can increase or decrease it depending on your preference.

6. Reloading the Config

After editing the config file, you can reload the Ghostty configuration with:

Ctrl + Shift + ,

Most simple keybinding changes can be tested right away, but some settings may still require restarting Ghostty.

7. Checking Current Keybindings

To check the default Ghostty keybindings, run:

ghostty +list-keybinds --default

To check the current keybindings, including your custom settings, run:

ghostty +list-keybinds

This is helpful when you want to confirm whether your custom shortcuts are applied correctly.

Final Thoughts

Ghostty’s split pane feature is simple, but it can make daily terminal work much more comfortable.

For example, you can keep your layout like this:

  • one pane for running the application
  • one pane for logs
  • one pane for Git commands
  • one pane for SSH or database work

The default shortcuts are already useful, but customizing them to match your own workflow makes Ghostty even better for everyday development.