From cffb9c2a8358f5cd69fbb7136e2d45a9fe8a920d Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:14 +0100 Subject: feat(ghostty): bind Ctrl-Alt-Up/Down to jump_to_prompt Requires OSC 133 markers from ghostty's zsh shell integration. Ctrl+Alt+arrow avoids conflicts with letter chords in zsh/nvim and the already-used Ctrl+Shift+Up/Down scroll binds. Only works outside zellij since zellij consumes the PTY and never forwards OSC 133. --- dot_config/ghostty/config | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dot_config/ghostty') diff --git a/dot_config/ghostty/config b/dot_config/ghostty/config index 18bb644..b9ca9ad 100644 --- a/dot_config/ghostty/config +++ b/dot_config/ghostty/config @@ -35,3 +35,7 @@ keybind = alt+u=scroll_page_up keybind = alt+d=scroll_page_down keybind = alt+g=scroll_to_top keybind = alt+shift+g=scroll_to_bottom + +# Jump between shell prompts (requires OSC 133, emitted by ghostty's zsh integration) +keybind = ctrl+alt+up=jump_to_prompt:-1 +keybind = ctrl+alt+down=jump_to_prompt:1 -- cgit v1.3.1