Short answer: yes! See below for details. On Sat, 11 Mar 2017 07:46:11 -0500, Harry Putnam wrote: > In screen one can mark out the wanted part of scroll back buffer with: > > `Ctl-a ESC' [enter copy/paste mode]
To enter copy-mode in tmux, type Ctl-b [
> Then navigate to beginning of part you wish to save and press
>
> `spacebar' [To mark the beginning (one can use vi's Ctr-b `backup
> one page at a time; but held continuously it moves back quite
> rapidly)]
>
> Now navigate to end of buffer,
>
> `press (uppercase G)' <vi command to move to end of buffer>
>
> Then press
>
> `spacebar'
> again to mark the end of saved portion.
All of the above is the same in tmux. :) In addition, vi and EMACS
emulation is also available in copy-mode so that you can use those
editor shortcuts to quickly navigate around the copy-mode scrollback
history and make your text selections more efficiently.
> Now use;
>
> `Ctl-a :writebuf filename ENTER'
>
> to save it... but that sometimes fails to write to `filename' where
> expected, even though screen says it has done so. Later I may find
> the file in what appears to be some odd place. (But really is where
> the root `screen' buffer was located)
Press ENTER to store your selection into a new "buffer" and then either:
1. Run `tmux save-buffer YOUR_FILENAME_HERE` to write it out to a file.
2. Press Ctl-b ] to paste it directly into the currently focused pane.
3. Run `tmux choose-buffer` to interactively select a "buffer" from a
running history of all your previous stored selections and perform #2.
You can repeat these in any order and for any number of times afterward.
> I wondered if tmux does indeed have such a feature if it is totally
> reliable, and not too complex.
tmux is readily scriptable: all internal tmux commands can be run from
the command-line (and thus also from a shell script or program) so you
can reliably automate your customization. For example, see my layouts:
https://sunaku.github.io/tmux-layout-dwindle.html
Cheers.
--
You received this message because you are subscribed to the Google Groups
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
pgpbk7VL61lVe.pgp
Description: OpenPGP digital signature
