3 ms·
I prefer to copy text from outside tmux using capture-pane and load-buffer. Outside tmux, to send buffers to stdout, I use save-buffer. I usually paste inside
by 1vuio0pswjnm7 6y ago
I prefer to copy text from outside tmux using capture-pane and load-buffer.
Outside tmux, to send buffers to stdout, I use save-buffer.
I usually paste inside tmux. I re-attach then paste with the keyboard sortcut "Ctrl-B ]"
I put tmux commands like capture, load-buffer, save-buffer and list-buffers in one line shell scripts with short names for use outside tmux.
Otherwise typing the commands is too verbose, e.g.,
tmux capture -t0 -p|grep -o PATTERN|tmux loadb -;tmux lsb