-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: enable -F format string option to show custom information for panes in display-panes command #3074
Comments
Considering we've already got other commands to display custom information, and now popup windows, etc., is this really going to be useful? |
@ThomasAdam Yes in the sense that if user has 4 panes open, it will show all the 4 pane's information together. It will be helpful while debugging tmux plugins at the very least. Haven't tried sending stdout to all tmux panes together, maybe that is possible. A problem or intend behavior today with sending stdout to tmux pane is it doesn't respect coloring done with escape sequences (and ends up showing escape sequences instead). Maybe one can write a script that cycles through panes of current window, and sends stdout to print all the info. Though that won't overlay over the pane contents either like display-panes does... For example: |
Added this to todo list, although I don't think I would make it support newlines. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'd like to learn more about your use-case, @poetaman. Could elaborate a bit more how you'd like to use the proposed feature and what additional value it would bring over % tmux list-panes -F 'pane_id: #{pane_id}, pane_pid #{pane_pid}'
pane_id: %107, pane_pid 44545
pane_id: %108, pane_pid 44663 |
It's just an option to control the text shown when you do |
Right, so this is very similar to What are your objects towards supporting newlines, @nicm? I noticed that other format strings in tmux do not support these either… |
It would be much more complicated to make newlines work and it seems unnecessary here. |
You would need to add |
The default |
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:
would print:
The text was updated successfully, but these errors were encountered: