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

all panes will exit whenever I type <leader>+z too quick; not experienced in my non-xpanes tmux panes #167

Open
wfeng-fsde opened this issue Apr 15, 2021 · 3 comments

Comments

@wfeng-fsde
Copy link

wfeng-fsde commented Apr 15, 2021

This has caught me many times now. I'd xpanes onto all servers in my cluster (like 6), and then I go to zoom one of them to full screen, all panes exit. I learned to be careful and wait for a couple seconds after I press <leader> before I press z. However, that's not fool-proof since my laptop gets super slow and the gap I put in might not be enough. I think it might be interpreting my <leader>+z as <leader>+ctrl+z.

One thing to note is that I don't experience the same on my normal tmux panes. I do everything inside tmux and start xpanes from within it too.

@greymd
Copy link
Owner

greymd commented Apr 15, 2021

I need to get a more accurate picture of the situation.
After all the panes are closed, does the tmux session remain (Can you check the session via tmux ls and reattach it) ?
What version of tmux do you have?

@wfeng-fsde
Copy link
Author

wfeng-fsde commented Apr 16, 2021

my workflow:

  • start tmux session
  • inside my tmux sesison, I use xpanes to get onto my cluster, something like:
list_servers | xpanes -C 2 -stc "aws ssm start-session --profile $profile --region $region --target {}"
  • tmux-xpanes opens a new window in the same tmux session and gets on all servers in my cluster
  • I type <leader>+z in one pane to zoom that single pane, and the whole tmux window disappears
  • my tmux session remains and I still have my original tmux window from where I launched that xpanes command.

let me know if you need more info.

@wfeng-fsde
Copy link
Author

Also my tmux version:

$ tmux -V
tmux 3.1c

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

2 participants