The man page does not tell the user, that load-buffer and save-buffer are able to read from stdin; only path is mentioned:
$ man 1 tmux
load-buffer [-w] [-b buffer-name] [-t target-client] path
(alias: loadb)
Load the contents of the specified paste buffer from path. If -w
is given, the buffer is also sent to the clipboard for
target-client using the xterm(1) escape sequence, if possible.
[...]
save-buffer [-a] [-b buffer-name] path
(alias: saveb)
Save the contents of the specified paste buffer to path. The -a
option appends to rather than overwriting the file.
It should look like this, so it is obvious to choose between path and stdin:
load-buffer [-w] [-b buffer-name] [-t target-client] [path | -]
[...]
target-client using the xterm(1) escape sequence, if possible.
If - is given, the contents are read from stdin.
[...]
save-buffer [-a] [-b buffer-name] [path | -]
[...]
option appends to rather than overwriting the file.
If - is given, the contents are read from stdin.
I am going to create a pull-request, once I have figured out how to edit the man page file tmux.1 properly.
Required information
tmux version
$ tmux -V
tmux 3.3a
Platform
$ uname --kernel-name --processor
Linux Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz
${TERM} inside and outside of tmux
Inside tmux
$ printenv TERM
tmux-256color
Outside tmux
$ printenv TERM
st-256color
I am actually using alacritty as terminal emulator.
Logs from tmux (tmux kill-server; tmux -vv new).
Not needed.
Side note:
The parameter is mentioned in the file CHANGES at the bottom of CHANGES FROM 1.2 TO 1.3, 18 July 2010.
Issue description
The man page does not tell the user, that
load-buffer
andsave-buffer
are able to read fromstdin
; onlypath
is mentioned:It should look like this, so it is obvious to choose between
path
andstdin
:I am going to create a pull-request, once I have figured out how to edit the man page file
tmux.1
properly.Required information
tmux
versionPlatform
${TERM}
inside and outside oftmux
Inside
tmux
Outside
tmux
I am actually using
alacritty
as terminal emulator.Logs from tmux (
tmux kill-server; tmux -vv new
).Not needed.
Side note: The parameter is mentioned in the file CHANGES at the bottom of
CHANGES FROM 1.2 TO 1.3, 18 July 2010
.