When I press Ctrl+b, W, tmux shows the list of all current windows and their panes. How can I kill a window and its panes from within this list view?
How to kill tmux windows from the window list
tmux
tmux
When I press Ctrl+b, W, tmux shows the list of all current windows and their panes. How can I kill a window and its panes from within this list view?
Best Answer
This is a new capability of the
choose-tree
feature in tmux 2.8. From tmux(1):So after you've navigated to the right window, press
x
, then when you are prompted:Kill window 1?
...press
y
to accept. This also works for killing individual panes, or even whole sessions.