tmux choose-buffer
Put a pane into buffer mode, where a buffer may be chosen interactively from a list.
Syntax¶
tmux choose-buffer [-NrZ] [-F format] [-f filter] [-K key-format] [-O sort-order] [-t target-pane] [template]Behavior¶
-Z zooms the pane.
-y disables any confirmation prompts. The
following keys may be used in buffer mode:
| Key | Function |
Enter |
Paste selected buffer |
Up |
Select previous buffer |
Down |
Select next buffer |
C-s |
Search by name or content |
n |
Repeat last search forwards |
N |
Repeat last search backwards |
t |
Toggle if buffer is tagged |
T |
Tag no buffers |
C-t |
Tag all buffers |
p |
Paste selected buffer |
P |
Paste tagged buffers |
d |
Delete selected buffer |
D |
Delete tagged buffers |
e |
Open the buffer in an editor |
f |
Enter a format to filter items |
O |
Change sort order |
r |
Reverse sort order |
v |
Toggle preview |
F1 or
C-h |
Display help |
q |
Exit mode |
After a buffer is chosen,
‘%%’ is replaced by the buffer
name in template and the result executed as a
command. If template is not given,
"paste-buffer -p -b '%%'" is used.
-O specifies the initial sort order:
one of ‘creation’ (time),
‘name’, or
‘size’. -r
reverses the sort order. -f specifies an initial
filter: the filter is a format - if it evaluates to zero, the item in
the list is not shown, otherwise it is shown. If a filter would lead to
an empty list, it is ignored. -F specifies the
format for each item in the list and -K a format
for each shortcut key; both are evaluated once for each line.
-N starts without the preview. This command
works only if at least one client is attached.
C implementation¶
Internal declarations in tmux 3.7c:
Use from a library¶
Each API describes its own defaults, errors and execution model.
tmux sources and license
Syntax comes from tmux 3.7c list-commands. See the global options for sockets and configuration, and command syntax and targets.
Behavior is taken from the tmux 3.7c manual.
Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.