-
Notifications
You must be signed in to change notification settings - Fork 627
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
Conversation
Set pane title if the pane yml definition is a Hash Tested with tmux version 2.6 on macOS Sierra 10.12.6
Very cool, would also like this. |
Thanks @bedge |
a8a5482
to
664a87e
Compare
@ethagnawl This would be a really useful feature. Can this be merged please? |
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:
|
minor tweaks
@ethagnawl let me check |
That codeclimate failure is annoying. Does anyone have any ideas for a simple solution? (Ideally, something other than just reverting my changes.) |
@mehar Were you ever able to verify that this is working as expected? |
is there some update here? |
@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 |
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 Thank you for the contribution @mehar and I'm sorry that this PR languished for so long. |
windows:
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} "