tmux: バッファーの全テキストを選択
viキーバインド前提:
- コピーモードに入る(
:copy-mode) gでバッファーの先頭へ移動Spaceでバッファのコピー開始Gでバッファーの最後へ移動Enterでバッファーのコピー
あとは、:paste-buffer で vi とかに貼り付けする。
Edge
To copy all text in the current tmux screen, you need to enter copy-mode, select the entire scrollback, and yank it into the tmux buffer. Then you can paste it in another tmux pane or window. The exact keys you need to press may vary depending on your mode-keys option (vi or emacs) and your system (Mac or Linux). For example, if you use vi mode-keys on Linux, you can press Ctrl + b followed by [ to enter copy-mode, then press g to go to the top of the scrollback, then press Ctrl + Space to start copying, then press G to go to the bottom of the scrollback, then press Alt + w or Ctrl + w to yank the text into the tmux buffer. To paste the text, you can press Ctrl + b followed by ]. Does this answer your question?
ソース: Bing との会話 2023/4/11(1) Copy and Paste in Tmux | rockyourcode. https://www.rockyourcode.com/copy-and-paste-in-tmux/ アクセス日時 2023/4/11. (2) Copy text from one tmux pane to another (using vim). https://unix.stackexchange.com/questions/58763/copy-text-from-one-tmux-pane-to-another-using-vim アクセス日時 2023/4/11. (3) Write all tmux scrollback to a file - Unix & Linux Stack Exchange. https://unix.stackexchange.com/questions/26548/write-all-tmux-scrollback-to-a-file アクセス日時 2023/4/11.