Unbind ctrl+shift+page_up/down in Ghostty config so it doesn't interfere with tmux keybindings (#4645)

* Unbind ctrl+shift+page_up/down in Ghostty config

* Add guard clause
This commit is contained in:
Pierre Olivier Martel
2026-02-19 07:53:03 +01:00
committed by GitHub
parent 0feb35a436
commit 055d9285b1
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -23,6 +23,8 @@ cursor-style-blink = false
shell-integration-features = no-cursor,ssh-env
# Keyboard bindings
keybind = ctrl+shift+page_up=unbind
keybind = ctrl+shift+page_down=unbind
keybind = shift+insert=paste_from_clipboard
keybind = control+insert=copy_to_clipboard
keybind = super+control+shift+alt+arrow_down=resize_split:down,100
+5
View File
@@ -0,0 +1,5 @@
echo "Unbind ctrl+shift+page_up/page_down in Ghostty so it doesn't interfere with tmux keybindings"
if [[ -f ~/.config/ghostty/config ]] && ! grep -q "keybind = ctrl+shift+page_up=" ~/.config/ghostty/config; then
sed -i '/# Keyboard bindings/a\keybind = ctrl+shift+page_up=unbind\nkeybind = ctrl+shift+page_down=unbind' ~/.config/ghostty/config
fi