Tmux plugin to quickly switch between sessions
6 points by maxvim
6 points by maxvim
I am all for cool tmux tools but this readme doesn’t really explain why I might use this over the built-in tmux choose-session UI. I think that it chooses nicer mnemonic characters than 1-9 and the mnemonic assignment is always visible (at the cost of some status bar real estate). Is that right?
Yeah, that's the tradeoff. I added a "Why" section to the readme to make the benefits clearer.
I use a script that handles swapping/creating sessions: https://codeberg.org/willhbr/dotfiles/src/branch/main/shell/autoload/mx
I have autocomplete for it, so it's usually just prefix+tab to swap session.
As well as the default choose-session UI, which is pretty good.
Sorry for hijacking this topic about something slightly unrelated, but does anyone know whether Ghostty still has in its plans to provide a more Tmux-like experience as well? I remember Mitchell saying something to the effect that if a terminal is done correctly, then Tmux shouldn't be required, but he seemed to be coming around to the idea after a lot of user requests. I truly enjoy using Tmux because of how it can remember sessions, layouts, etc. - something that Ghostty doesn't yet do.
I've been using ghostty with zmx for a while and it works reasonably well, despite having to run reset frequently to fix messed-up terminal state. I use an fzf picker to select from existing zmx sessions or create a new session when I log in via ssh, or I just type ssh <host_name>.<session_name> using a special ssh config for that pattern.
Tmux session persistence plugins have been a game changer for my workflow (I ssh to a server from terminal devices, like it used to be in the 90s), and the only problem I had was that I had too many terminals open. I think that can help reduce that!
That is the workflow I had in mind too. Once session persistence makes it easy to keep lots of sessions around, the next bottleneck is remembering where they are and jumping quickly.