joshmedeski / sesh

Smart session manager for the terminal
MIT License
417 stars 17 forks source link

Connecting twice to existing and opened session gives error #46

Closed TomDeneire closed 5 months ago

TomDeneire commented 5 months ago

When you have an existing tmux session to a directory and this session is your currently selected session, and you then try to connect to it again (okay, I know, this sounds stupid, but it just happened to me by accident), you get this screen with exit 1 status:

image

Expected behaviour would be that sesh does nothing.

joshmedeski commented 5 months ago

Thanks for flagging this, should be a quick fix.

joebonneau commented 5 months ago

I also saw this yesterday when working on my PR, can confirm the behavior as well.

joshmedeski commented 5 months ago

This is fixed, however we're going to figure out how to hide the attached session from the list as it's a feature some people like.

So watch out for future changes. I'll make sure this bug isn't reintroduced.

TomDeneire commented 5 months ago

I've just pulled the latest version of sesh and now I can't change to any open sessions anymore. I'm always getting the error as in the above screenshot...

joshmedeski commented 5 months ago

Sorry about that, I really need to get #36 setup and running. I fix one thing and another breaks!

I appreciate your quick feedback on these issues.

joshmedeski commented 5 months ago

0.7.2 fixes the issue