diff options
| author | 2026-05-13 13:43:13 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:13 +0100 | |
| commit | bcb3792e45de4b880013cc2ed0f4c2bfccb1671c (patch) | |
| tree | d6d82842a5e5cc9e26b5d2fd9f209e4bc692210d /KEYBINDS.md | |
| parent | 38220f5fbb12fd4327e9515a7040d7a7ac0d55c7 (diff) | |
| download | dotfiles-bcb3792e45de4b880013cc2ed0f4c2bfccb1671c.tar.gz dotfiles-bcb3792e45de4b880013cc2ed0f4c2bfccb1671c.tar.bz2 dotfiles-bcb3792e45de4b880013cc2ed0f4c2bfccb1671c.zip | |
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.
Diffstat (limited to 'KEYBINDS.md')
| -rw-r--r-- | KEYBINDS.md | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
