joshmedeski / t-smart-tmux-session-manager

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

Make the previously active session selected by default #81

Closed joebonneau closed 10 months ago

joebonneau commented 11 months ago

Hey Josh,

Following up on our chat on Discord 😄

As a user, I'd like to be able to mindlessly switch to the previously active session by bringing up the t prompt and hitting enter. In order to do this, it would probably make sense to remove the current session from the prompt.

The reason I think this would be nice is that I've been finding it hard to keep track of all of my keybindings, and one that I've been finding particularly problematic is "switch to the previously active session" (cmd + l) vs. t (cmd + k). By condensing this into one keybinding, I can either quickly switch to the previous session or opt for doing something else, whether it's creating a new session or switching to another session.

I don't know that everyone would love this, so perhaps it could be an opt-in sort of feature.

Joe

joshmedeski commented 11 months ago

Thanks Joe,

I could add a "hide current sessions" optional feature flag. Should be pretty easy to implement.

joebonneau commented 11 months ago

Sounds great! Would that flag also make the previously active session selected by default?

joshmedeski commented 11 months ago

Yes, the sessions are already sorted by most recent use.