diff options
| author | 2026-05-13 13:43:14 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:14 +0100 | |
| commit | cffb9c2a8358f5cd69fbb7136e2d45a9fe8a920d (patch) | |
| tree | 4f11d0733e4644ca06b37a26d7ab251cf07a512a | |
| parent | 82e8a5693745ea64b1018c8975f475998f20be17 (diff) | |
| download | dotfiles-cffb9c2a8358f5cd69fbb7136e2d45a9fe8a920d.tar.gz dotfiles-cffb9c2a8358f5cd69fbb7136e2d45a9fe8a920d.tar.bz2 dotfiles-cffb9c2a8358f5cd69fbb7136e2d45a9fe8a920d.zip | |
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.
| -rw-r--r-- | KEYBINDS.md | 1 | ||||
| -rw-r--r-- | dot_config/ghostty/config | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/KEYBINDS.md b/KEYBINDS.md index 99ae335..b269db5 100644 --- a/KEYBINDS.md +++ b/KEYBINDS.md @@ -267,6 +267,7 @@ Emacs mode (`bindkey -e`) is the base. | `Alt-d` | Scroll page down | | `Alt-g` | Scroll to top | | `Alt-Shift-g` | Scroll to bottom | +| `Ctrl-Alt-Up` / `Ctrl-Alt-Down` | Jump to previous / next shell prompt (OSC 133) | ## Yazi 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 |
