Skip to content

Feature request: tmux kill-pane -d (dead panes only) and kill-window -d (dead windows only) #4782

@jnd-au

Description

@jnd-au

It would be useful to have an option for kill-pane and kill-window to affect dead panes/windows only. For example: To bulk clean-up all dead panes and windows (those with remain-on-exit on) without affecting live panes, it would be quick and easy to use a -d option:

tmux kill-pane -ad
tmux kill-window -ad

Likewise, if -d is used with -t it would only kill the target pane/window if dead (but if -dt is used with a live target, the exit code should probably be non-zero).

It should also be clarified in the documentation that kill-pane only affects the current window, and kill-window only affects the current session.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions