Closed kohnish closed 2 years ago
What are you trying to do exactly? OSC 52 populates the clipboard already
I'm trying to trigger these two commands on osc 52 event.
echo -n "$stdin" | wl-copy
echo -n "$stdin" | wl-copy -p
But nothing happens. This is the example command which works on tmux.
printf $'\e]52;c;%s\a' "$(base64 <<<'test_str')" >> /dev/tty
Sorry, I was assuming that shift-insert works by default. This solved the issue.
{key = "Insert", mods = "SHIFT", action=wezterm.action{PasteFrom = "Clipboard"}},
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Tmux supports clipboard hook something like this. Which set action when clipboard copy event happens.
It is especially useful for osc52 yank on vim where it's not compiled with clipboard support with something like this. (if wezterm supports osc52 like tmux does)