joshmedeski / t-smart-tmux-session-manager

t - the smart tmux session manager
326 stars 51 forks source link

Command to switch to last session #91

Closed jakkan closed 10 months ago

jakkan commented 10 months ago

I really like your plugin, thanks for maintaining it! This issue is a feature request/idea. I often switch between two thux sessions. Then my workflow looks kind of like this

work in a session prefix+T, arrow up, enter work in other session prefix+T, arrow up, enter work in first session

It would be great if there was another command to switch to the last session. Then my workflow would become

work in a session prefix+Tab work in other session prefix+Tab work in first session

joshmedeski commented 10 months ago

I use <prefix>+L to switch between two sessions constantly (almost more than I use my session manager).

You could add a custom tmux binding to <prefix>+tab if you wanted to.

Bonus tip: I've set it up to cmd+l in macOS on my terminal emulator to make it even easier to trigger.