aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:14 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:14 +0100
commitcffb9c2a8358f5cd69fbb7136e2d45a9fe8a920d (patch)
tree4f11d0733e4644ca06b37a26d7ab251cf07a512a
parent82e8a5693745ea64b1018c8975f475998f20be17 (diff)
downloaddotfiles-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.md1
-rw-r--r--dot_config/ghostty/config4
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