From d254293a6d406db4b1d1d4cac36cd4225fa0d8a7 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 4 Jul 2018 12:25:26 +0000 Subject: Add pane focus hooks. --- tmux.1 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index 329279fd..303a4a30 100644 --- a/tmux.1 +++ b/tmux.1 @@ -3423,6 +3423,14 @@ Run when the program running in a pane exits, but is on so the pane has not closed. .It pane-exited Run when the program running in a pane exits. +.It pane-focus-in +Run when the focus enters a pane, if the +.Ic focus-events +option is on. +.It pane-focus-out +Run when the focus exits a pane, if the +.Ic focus-events +option is on. .It pane-set-clipboard Run when the terminal clipboard is set using the .Xr xterm 1 -- cgit From cc743dc296f9f8b5505ee217f15748f8d7c2b343 Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 4 Jul 2018 12:30:52 +0000 Subject: Add set-hook -R to run a hook immediately (useful to set multiple hooks to the same thing). --- tmux.1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index 303a4a30..3b7bda34 100644 --- a/tmux.1 +++ b/tmux.1 @@ -3452,12 +3452,14 @@ Run when a window is unlinked from a session. Hooks are managed with these commands: .Bl -tag -width Ds .It Xo Ic set-hook -.Op Fl gu +.Op Fl gRu .Op Fl t Ar target-session .Ar hook-name .Ar command .Xc -Sets (or with +Without +.Fl R, +sets (or with .Fl u unsets) hook .Ar hook-name @@ -3473,6 +3475,12 @@ hooks (for with .Fl t ) . Like options, session hooks inherit from the global ones. +.Pp +With +.Fl R , +run +.Ar hook-name +immediately. .It Xo Ic show-hooks .Op Fl g .Op Fl t Ar target-session -- cgit From 98c4291df2201271a0d70fc141cfaf744021ff35 Mon Sep 17 00:00:00 2001 From: jmc Date: Wed, 4 Jul 2018 13:27:32 +0000 Subject: whitespace needed between macro args and punctuation; --- tmux.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tmux.1') diff --git a/tmux.1 b/tmux.1 index 3b7bda34..9dd2065e 100644 --- a/tmux.1 +++ b/tmux.1 @@ -3458,7 +3458,7 @@ Hooks are managed with these commands: .Ar command .Xc Without -.Fl R, +.Fl R , sets (or with .Fl u unsets) hook -- cgit