From b31d516a1798d3c04984bda06edde948cd7b7df3 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 15 Mar 2026 12:25:32 -0400 Subject: Add more ghostty keybindings --- .config/ghostty/config | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.config/ghostty/config b/.config/ghostty/config index ad1b754..e480b9d 100644 --- a/.config/ghostty/config +++ b/.config/ghostty/config @@ -19,3 +19,38 @@ window-save-state = always copy-on-select = true link-previews = osc8 notify-on-command-finish = unfocused + +################ +# KEY BINDINGS +################ + +# All keybindings use 'ctrl-a' as a 'prefix key'. This is similar +# to tmux and ensures that the keybindings here don't conflict +# with neovim. + +# New splits +keybind = ctrl+a>v=new_split:right +keybind = ctrl+a>s=new_split:down + +# Navigate splits +keybind = ctrl+a>h=goto_split:left +keybind = ctrl+a>l=goto_split:right +keybind = ctrl+a>k=goto_split:up +keybind = ctrl+a>j=goto_split:down + +# Resize splits +keybind = ctrl+a>shift+h=resize_split:left,10 +keybind = ctrl+a>shift+l=resize_split:right,10 +keybind = ctrl+a>shift+k=resize_split:up,10 +keybind = ctrl+a>shift+j=resize_split:down,10 + +# Close split / zoom +keybind = ctrl+a>q=close_surface +keybind = ctrl+a>z=toggle_split_zoom + +# Tabs +keybind = ctrl+a>c=new_tab +keybind = ctrl+a>n=next_tab +keybind = ctrl+a>p=previous_tab +keybind = ctrl+a>w=close_tab + -- cgit v1.2.3