Add -f for filter with -a to kill-pane, kill-window, kill-session.

GitHub issue 4782.
This commit is contained in:
nicm
2026-06-09 12:24:59 +00:00
parent a42e425d44
commit 4a3f380fd2
4 changed files with 215 additions and 60 deletions

21
tmux.1
View File

@@ -1203,6 +1203,7 @@ Kill the
server and clients and destroy all sessions.
.It Xo Ic kill\-session
.Op Fl aCg
.Op Fl f Ar filter
.Op Fl t Ar target\-session
.Xc
Destroy the given session, closing any windows linked to it and no other
@@ -1210,6 +1211,12 @@ sessions, and detaching all clients attached to it.
If
.Fl a
is given, all sessions but the specified one is killed.
When
.Fl a
is given,
.Fl f
specifies a filter.
Only sessions for which the filter is true are killed.
If
.Fl g
is given and the session is in a session group, all sessions in the group are
@@ -3115,6 +3122,7 @@ the marked pane is used rather than the current pane.
.Tg killp
.It Xo Ic kill\-pane
.Op Fl a
.Op Fl f Ar filter
.Op Fl t Ar target\-pane
.Xc
.D1 Pq alias: Ic killp
@@ -3124,9 +3132,16 @@ The
.Fl a
option kills all but the pane given with
.Fl t .
When
.Fl a
is given,
.Fl f
specifies a filter.
Only panes for which the filter is true are killed.
.Tg killw
.It Xo Ic kill\-window
.Op Fl a
.Op Fl f Ar filter
.Op Fl t Ar target\-window
.Xc
.D1 Pq alias: Ic killw
@@ -3137,6 +3152,12 @@ The
.Fl a
option kills all but the window given with
.Fl t .
When
.Fl a
is given,
.Fl f
specifies a filter.
Only windows for which the filter is true are killed.
.Tg lastp
.It Xo Ic last\-pane
.Op Fl deZ