summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-06-21 21:44:09 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-06-21 21:44:09 +0000
commitef7293379f00b85cb96dd0dff128bb503e87612b (patch)
tree10ecce1d0eddb56d6c0beb008ddc87c87d703927 /tmux.1
parent386849edc1d7d322d6a48d334f83298ff7cb5501 (diff)
Add a choose-buffer command for easier use of the paste buffer stack.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.119
1 files changed, 19 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index 30725f6e..f53e65f3 100644
--- a/tmux.1
+++ b/tmux.1
@@ -248,6 +248,8 @@ Select windows 0 to 9.
Enter the
.Nm
command prompt.
+.It =
+Choose which buffer to paste interactively from a list.
.It \&?
List all key bindings.
.It D
@@ -2447,6 +2449,23 @@ command above).
.Pp
The buffer commands are as follows:
.Bl -tag -width Ds
+.It Xo
+.Ic choose-buffer
+.Op Fl t Ar target-window
+.Op Ar template
+.Xc
+Put a window into buffer choice mode, where a buffer may be chosen
+interactively from a list.
+After a buffer is selected,
+.Ql %%
+is replaced by the buffer index in
+.Ar template
+and the result executed as a command.
+If
+.Ar template
+is not given, "paste-buffer -b '%%'" is used.
+This command works only from inside
+.Nm .
.It Ic clear-history Op Fl t Ar target-pane
.D1 (alias: Ic clearhist )
Remove and free the history for the specified pane.