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:
@@ -23,6 +23,8 @@ cursor-style-blink = false
|
|||||||
shell-integration-features = no-cursor,ssh-env
|
shell-integration-features = no-cursor,ssh-env
|
||||||
|
|
||||||
# Keyboard bindings
|
# Keyboard bindings
|
||||||
|
keybind = ctrl+shift+page_up=unbind
|
||||||
|
keybind = ctrl+shift+page_down=unbind
|
||||||
keybind = shift+insert=paste_from_clipboard
|
keybind = shift+insert=paste_from_clipboard
|
||||||
keybind = control+insert=copy_to_clipboard
|
keybind = control+insert=copy_to_clipboard
|
||||||
keybind = super+control+shift+alt+arrow_down=resize_split:down,100
|
keybind = super+control+shift+alt+arrow_down=resize_split:down,100
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user