I've noticed tmux copy-pipe truncating selection (leaving out the last part of the selection).
bind-key -T copy-mode-vi y send-keys -X copy-pipe "xclip -in -sel clipboard"
Sometimes only copies the first few 100 bytes into the buffer.
I don't think this is an issue with
xclip since this happens with
For some reason piping into a file, sleeping, then passing to xclip works.
bind-key -T copy-mode-vi y \ send-keys -X copy-pipe "cat > /tmp/tmux_clip.txt" \; \ run "sleep 0.1" \; \ run -b "xclip -in -sel clipboard /tmp/tmux_clip.txt > /dev/null" \; \ display "Clipboard Copy"
Is this a known issue? are there ways to resolve this?