Skip to content

Feature: enable -F format string option to show custom information for panes in display-panes command #3074

@poetaman

Description

@poetaman

Issue description

Currently display-pane shows the pane size on the top right corner of the panes. It would be nice to have a way to specify a format string just like for many other commands that would print custom information for each pane. As a corollary bonus, tmux would figure out the size of longest line in the format string, and pad every line of format string to be right aligned, as shown in example below.

Example:

tmux display-panes -F "pane_id: #{pane_id}\n pane_pid: #{pane_pid}\n ..."

would print:

_______________________________________________
                              pane_id: 1      |
                              pane_pid: 23434 |
                              ...             |
                                              |
                                              |
                                              |
_______________________________________________

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions