-
Notifications
You must be signed in to change notification settings - Fork 104
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
select_pane not working correctly with multiple sessions #487
Comments
Hi! Can you restate some of the above? It isn't clear to me. On a side note: PRs, especially ones with good tests, are also welcome |
Hey tony. Sure. As an example, I have the following
I use only one client attached to one session, which I make sure is true. The session is always correct (the one I am active in). The
( This ends up in the server function
( Which then ends up here: https://github.com/tmux-python/libtmux/blob/master/src/libtmux/server.py#L177
which will probably end up in calling => This does not switch the pane in the active session window, but in another one. I just tested a bit. When I run the shell command Could it be that, because the python program (doing the switching) is running in another session, it always switches panes in that session? => I think it would be wise to always pass the |
The code of
select_pane
is:If calling it with a pane index (e.g.
window.select_pane(3)
) the resulting command will beselect-pane -t3
. This will result inself.server.cmd('select-pane -t3')
.=> It will always change the pane in the session number 1.
Shouldn't there be some kind of further target description like
select-pane -t $3:@9.3
(change to pane 3 in session 3, window9)?
The text was updated successfully, but these errors were encountered: