Added the ability to save scrollback with <prefix>W

This commit is contained in:
Kevin MacMartin 2014-08-28 09:00:24 -04:00
parent c9acb9d348
commit 0d9d10eaeb
3 changed files with 7 additions and 0 deletions

View file

@ -33,6 +33,7 @@
* `y` and `Ctrl-p`: Enter __copy mode__ and paste from the copy buffer respectively.
* (**copy mode**) `v`, `y` and `Escape`: Begin selection, copy selection and cancel **copy mode** respectively.
* `Alt-[0-9]` (no prefix): Switch directly to the given window.
* `W`: Write scrollback buffer to file.
## Italics Support ##

View file

@ -127,6 +127,9 @@ bind -n M-7 select-window -t 7
bind -n M-8 select-window -t 8
bind -n M-9 select-window -t 9
bind -n M-0 select-window -t 10
#
# save scrollback to file
bind-key W command-prompt -p 'write scrollback to file:' -I '~/tmux-history.txt' 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer'
# STATUS LINE
#

View file

@ -127,6 +127,9 @@ bind -n M-7 select-window -t 7
bind -n M-8 select-window -t 8
bind -n M-9 select-window -t 9
bind -n M-0 select-window -t 10
#
# save scrollback to file
bind-key W command-prompt -p 'write scrollback to file:' -I '~/tmux-history.txt' 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer'
# STATUS LINE
#