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 there any way to give a name to tmux pane? #10

Closed
qiuwei opened this issue Feb 23, 2013 · 4 comments · Fixed by #12
Closed

Is there any way to give a name to tmux pane? #10

qiuwei opened this issue Feb 23, 2013 · 4 comments · Fixed by #12

Comments

@qiuwei
Copy link

qiuwei commented Feb 23, 2013

Slimux works quite well here.
But sometimes I split the panes, then the names of panes get messed up. Slimux gets confused of which pane to send the content.

Is there any way to bound slimux to a fixed pane?

@esamattis
Copy link
Owner

Can you provide steps to reproduce this?
On Feb 23, 2013 11:38 PM, "Wei Qiu" notifications@github.com wrote:

Slimux works quite well here.
But sometimes I split the panes, then the names of panes get messed up.
Slimux gets confused of which pane to send the content.

Is there any way to bound slimux to a fixed pane?


Reply to this email directly or view it on GitHubhttps://github.com//issues/10.

@chlunde
Copy link
Contributor

chlunde commented Feb 24, 2013

I think the problem is using pane_index, which changes when creating a new pane.

How to reproduce:
Start tmux, vim. Split pane C-b ". Start python. Switch to vim - C-b UP . Use slimux. Split pane again (from the vim window) - C-b ". Try using slimux again..

When selecting python the first time it will have pane index 1. After splitting the pane it will be moved to index 2.

Consider something like this instead:

    read !tmux list-panes -F '\#{pane_id}: \#{window_name} \#{pane_title}' -a | cat

@chlunde
Copy link
Contributor

chlunde commented Mar 31, 2013

Can you check if the latest version works for you, qiuwei?

@qiuwei
Copy link
Author

qiuwei commented Mar 31, 2013

@chlunde , yeah! It woks like a charm.

Many thanks!

@qiuwei qiuwei closed this as completed Mar 31, 2013
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 a pull request may close this issue.

3 participants