omerxx / tmux-sessionx

A Tmux session manager, with preview, fuzzy finding, and MORE
GNU General Public License v3.0
554 stars 51 forks source link

Fallback to last visited session after deletion #112

Open omerxx opened 1 month ago

omerxx commented 1 month ago

Suggested by @joshmedeski!

Technically, it may be worth exploring only if removing the current attached session to -

  1. switch client to the last visited session
  2. then run kill-session
joshmedeski commented 1 month ago

See https://github.com/tmux/tmux/issues/3343

omerxx commented 1 month ago

@joshmedeski I'm not actually sure what up with Tmux, but it doesn't seem to go back to the last visited session when destroying a currently attached session with detach-on-destroy off regardless of sessionx... I'm still trying to figure out whether I'm missing something or I'm on to an actual bug

joshmedeski commented 1 month ago

I think it's a bug. It seems to randomly pick a session with that feature. I've never found a pattern that makes sense.

Part of me wants to take a stab at C programming and try and fix it!

omerxx commented 1 month ago

I think it's a bug. It seems to randomly pick a session with that feature. I've never found a pattern that makes sense.

Part of me wants to take a stab at C programming and try and fix it!

Happy to hear it's not only me... I think I'd defer to another line of bash in this case and maybe an issue if there isn't one already 😂

Definitely supporting your from the sidelines though 😅👏