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

Nested session #277

Open
guhur opened this issue Aug 21, 2019 · 6 comments
Open

Nested session #277

guhur opened this issue Aug 21, 2019 · 6 comments

Comments

@guhur
Copy link

guhur commented Aug 21, 2019

I am looking for a nice way to switch from a local and a remote session (the remote session is typically nested in the local). Prefix + prefix is a bit annoying!

Here are some examples, gist.

Do you plan to add such features?

Thanks

@gpakosz
Copy link
Owner

gpakosz commented Aug 21, 2019

Hey @guhur 👋

No plan for such features but I'll think about it.
I have many other devs in flight that I want to merge first though.

I'll keep this issue open in the meantime.

@guhur
Copy link
Author

guhur commented Aug 22, 2019

Ok great! I am working usually on three different remote servers, so being able to jump easily from one session to the other one would be a real time saver for me!

@gpakosz
Copy link
Owner

gpakosz commented Aug 27, 2019

Well in the meantime you can still define your own bindings in your ~/.tmux.conf.local copy

@ajing
Copy link

ajing commented Jan 6, 2021

Do you recommend using a different prefix for the nested tmux session?

@gpakosz
Copy link
Owner

gpakosz commented Jan 6, 2021

Hello @ajing 👋

I personally hit the prefix key twice when I want the nested session to receive the prefix. So C-a+C-a+... or C-b+C-b+...

@tuxruffian
Copy link

I just use different prefix keys, but if you don't like that approach you could try using the tmux-suspend plugin.

If you use the same prefix, load the plugin locally (not on the remote instance) then simply press F8 and suspend actions on the local instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants