From bcb3792e45de4b880013cc2ed0f4c2bfccb1671c Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:13 +0100 Subject: feat(zsh): add Alt-Shift-Y widget to copy last command output Zellij has no native "copy last command output" feature, and ghostty's jump_to_prompt (Ctrl+Shift+J/K, via OSC 133) can't work inside zellij because zellij sits between the shell and the terminal emulator. Build it ourselves: a zle widget runs 'zellij action dump-screen --full', finds the last two lines matching the prompt prefix (user@host:), and pipes everything between them to wl-copy. Bound to Alt+Shift+Y. Requires running inside zellij and at least two prompts in the scrollback. --- KEYBINDS.md | 1 + 1 file changed, 1 insertion(+) (limited to 'KEYBINDS.md') diff --git a/KEYBINDS.md b/KEYBINDS.md index 18129da..99ae335 100644 --- a/KEYBINDS.md +++ b/KEYBINDS.md @@ -243,6 +243,7 @@ Emacs mode (`bindkey -e`) is the base. | `Ctrl-X Ctrl-R` | fzf history search + execute | | `Ctrl-T` | fzf file picker (built-in) | | `Alt-C` | fzf cd (built-in) | +| `Alt-Shift-Y` | Copy last command's output (zellij only) | ## Ghostty -- cgit v1.3.1