Skip to content
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

Add Support for Pane Title #586

Closed
wants to merge 21 commits into from
Closed

Add Support for Pane Title #586

wants to merge 21 commits into from

Conversation

mehar
Copy link

@mehar mehar commented Dec 16, 2017

windows:

  • w1:
    panes:
    - pane_title:
    - ls
    - pwd
    - git status

If the pane yml is a Hash, then we can set the pane_title variable, which in turn can be used in "pane_border_format"

Ex: setw -g pane-border-format " [#{pane_index}:#{pane_title}#{?pane_synchronized, SYNC,}] #{pane_current_command} "

@bedge
Copy link

bedge commented Jan 18, 2018

Very cool, would also like this.
Allows one to fix all the panes named with unhelpful (from an ID standpoint) wrapper commands like ssh.

@mehar
Copy link
Author

mehar commented Jan 19, 2018

Thanks @bedge

@mehar mehar force-pushed the master branch 3 times, most recently from a8a5482 to 664a87e Compare January 19, 2018 07:50
@sabrehagen
Copy link

@ethagnawl This would be a really useful feature. Can this be merged please?

@ethagnawl
Copy link
Member

Hi, @mehar. Apologies for the delay on this.

I've pulled your changes and done some poking around. Does this actually set the pane title? When trying to do so, I see:

tmux: unknown option -- T
usage: select-pane [-DdegLlMmRU] [-P style] [-t target-pane]

@mehar
Copy link
Author

mehar commented Nov 3, 2018

@ethagnawl let me check

@ethagnawl
Copy link
Member

That codeclimate failure is annoying. Does anyone have any ideas for a simple solution? (Ideally, something other than just reverting my changes.)

@ethagnawl
Copy link
Member

@mehar Were you ever able to verify that this is working as expected?

@woodgear
Copy link

is there some update here?

@ethagnawl
Copy link
Member

@mehar Any updates on this? Also, is the pane title set by the config option likely to be overwritten by tmux when the user does something which causes tmux to change the pane_title value?

@ethagnawl
Copy link
Member

ethagnawl commented May 18, 2020

While this approach does work initially, the pane title is not persistent.

I think a better way forward would be to use a user provided variable and pane-border-format.

Thank you for the contribution @mehar and I'm sorry that this PR languished for so long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants