If you can’t visually highlight with plain Space (Termius sends Ctrl+Space), and want to save tmux copy-mode selection to a file, do this:
- Press
Ctrl+b
then:
- Paste these lines one by one, pressing Enter after each:
set -g mode-keys vi
bind -T copy-mode-vi C-Space send -X begin-selection
bind -T copy-mode-vi y send -X copy-pipe-and-cancel "tee /tmp/tmux-out.txt >/dev/null"
Ctrl+b
then[
- Move to start of text to copy
- Press
Ctrl+Space
to begin selection - Move cursor to end of text
- Press
y
(no Enter) and wait till cursor returns to normal (time varies based on selection size), copy-mode will exit automatically - The copied text is saved to
/tmp/tmux-out.txt