Add support for named buffers. If you don't name a buffer, things work
authornicm <nicm@openbsd.org>
Tue, 13 May 2014 07:34:35 +0000 (07:34 +0000)
committernicm <nicm@openbsd.org>
Tue, 13 May 2014 07:34:35 +0000 (07:34 +0000)
commita41fa27a7a7d81a2718aed810231593ca5d4d42a
tree6f9e54947c41df6d05b7c7b9a6ec979545ee9031
parentfb9a00c4886a50c2cf6d09c761dc72cdc3530214
Add support for named buffers. If you don't name a buffer, things work
much as before - buffers are automatically named "buffer0000",
"buffer0001" and so on and ordered as a stack. Buffers can be named
explicitly when creating ("loadb -b foo" etc) or renamed ("setb -b
buffer0000 -n foo"). If buffers are named explicitly, they are not
deleted when buffer-limit is reached. Diff from J Raynor.
13 files changed:
usr.bin/tmux/cmd-capture-pane.c
usr.bin/tmux/cmd-choose-buffer.c
usr.bin/tmux/cmd-delete-buffer.c
usr.bin/tmux/cmd-list-buffers.c
usr.bin/tmux/cmd-load-buffer.c
usr.bin/tmux/cmd-paste-buffer.c
usr.bin/tmux/cmd-save-buffer.c
usr.bin/tmux/cmd-set-buffer.c
usr.bin/tmux/format.c
usr.bin/tmux/paste.c
usr.bin/tmux/tmux.1
usr.bin/tmux/tmux.h
usr.bin/tmux/window-copy.c