Using OSC 133 sequences to select last block of command output, in Zsh? #4128
AndydeCleyre
started this conversation in
General
Replies: 1 comment
-
You can't search for escape sequences, you'll need to make the prompt contain something visible, or use next-prompt and previous-prompt if your tmux is new enough. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I'd like to bind a key to enter copy mode and select the last command's output, in Zsh. I feel close but am not yet successful.
I'm thinking the binding can be done either within Zsh or the tmux conf, and I'm happy with either, but my current attempt is within Zsh.
What I'm trying:
Within the tmux conf, I
set -g allow-passthrough on
.To ensure the escape sequences exist to be found, in Zsh:
To bind the key, in Zsh:
The problem may just be improper formatting of the escape sequences to find, or it may be more than that. I've been trying some variants of the escape sequence formatting, including e.g.
$'\033]133;D'
and'\033]133;D'
.Any pointers toward this goal would be much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions