mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Merge branch 'obsd-master'
This commit is contained in:
18
tmux.1
18
tmux.1
@ -3797,14 +3797,6 @@ each client.
|
||||
.It Ic prompt-history-limit Ar number
|
||||
Set the number of history items to save in the history file for each type of
|
||||
command prompt.
|
||||
.It Xo Ic search-wrapped-lines
|
||||
.Op Ic on | off
|
||||
.Xc
|
||||
Defines how
|
||||
.Nm
|
||||
handles wrapped lines when searching in copy mode.
|
||||
When disabled, lines are truncated and searching is faster, but matches may be
|
||||
missed.
|
||||
.It Xo Ic set-clipboard
|
||||
.Op Ic on | external | off
|
||||
.Xc
|
||||
@ -4891,6 +4883,14 @@ layout after every
|
||||
set-hook -g after-split-window "selectl even-vertical"
|
||||
.Ed
|
||||
.Pp
|
||||
If a command fails, the
|
||||
.Ql command-error
|
||||
hook will be fired.
|
||||
For example, this could be used to write to a log file:
|
||||
.Bd -literal -offset indent
|
||||
set-hook -g command-error "run-shell \\"echo 'a tmux command failed' >>/tmp/log\\""
|
||||
.Ed
|
||||
.Pp
|
||||
All the notifications listed in the
|
||||
.Sx CONTROL MODE
|
||||
section are hooks (without any arguments), except
|
||||
@ -4923,6 +4923,8 @@ Run when focus exits a client
|
||||
Run when a client is resized.
|
||||
.It client-session-changed
|
||||
Run when a client's attached session is changed.
|
||||
.It command-error
|
||||
Run when a command fails.
|
||||
.It pane-died
|
||||
Run when the program running in a pane exits, but
|
||||
.Ic remain-on-exit
|
||||
|
Reference in New Issue
Block a user