I have approximately 400k lines of output to scroll in tmux.
How can I speed up the pace of scroll in copy mode?
Alternatively, how can I transfer all the (already generated) output content to a file?
Is it possible to scroll faster than PgUp/PgDown in tmux
scrollingtmux
Best Answer
I'm not entirely sure I understand the first part of the question:
If you want to scroll faster than one page up at a time, you can add a repeat count to page-up: in copy mode do
M-10 PageUp
(with emacs key bindings) or10C-b
(with vi key bindings) to scroll up 10 pages at a time. However, I'd rather use the search functionalityC-s
andC-r
for emacs keys and/
and?
with vi keys.To capture the entire history of the pane I would do (needs tmux 2.0 or later):
In case you have an older version of tmux, give something like
-S -400000
as an argument totmux capture-pane
.You can then paste the history wherever you want with
prefix-]
. To save the history to a file, do:I have the line
in my
$HOME/.tmux.conf
(which I adapted from this answer). This prompts me where I want to save the entire history with a reasonable default.If you wish to save some memory, delete it using
$ tmux delete-buffer
.