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

Is that possible to use this for pane-border-format? #5

Open
x1a0 opened this issue Oct 11, 2016 · 5 comments
Open

Is that possible to use this for pane-border-format? #5

x1a0 opened this issue Oct 11, 2016 · 5 comments

Comments

@x1a0
Copy link

x1a0 commented Oct 11, 2016

No description provided.

@soyuka
Copy link
Owner

soyuka commented Oct 11, 2016

Did not understood the question, may you rephrase?

@x1a0
Copy link
Author

x1a0 commented Oct 12, 2016

Sorry :)
I meant right now this plugin only applies to status-left and status-right. Is that possible to also use #U@#H for pane-border-format?
With Tmux 2.3 now it's possible to toggle pane-border-status option and I hope to have remote hostname when a pane is holding a ssh session.

I did try to add pane-border-format along with status-left and status-right in the main script but I only got empty strings back.

@soyuka
Copy link
Owner

soyuka commented Oct 12, 2016

It should be possible by adding it there. I don't really have the time to look into this, but I'd be glad to merge a PR if you can find a way to make it work ;).

@Ramiyoung
Copy link

It works, indeed, when adding it to the main section of current_pane_hostname.tmux like so :

main() {
    update_tmux_option "status-right"
    update_tmux_option "status-left"
    update_tmux_option "pane-border-format"
}

But it syncs the hostname of the active ssh connection, to all the other panes of the active window (e.g : 1 window split into 4 panes, 1 active connection among them --> all the panes receive the hostname of the active ssh connection as pane title). Any clues on how we might toggle it only to the concerned pane ?

@soyuka
Copy link
Owner

soyuka commented Dec 3, 2020

I think that this may totally be related to #14 (comment) any help welcome !

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

No branches or pull requests

3 participants