-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sessions invisible after kill-session from switcher #72
Comments
Yep, what's happening here is you killing the current session "test2", tmux puts you on the next one on the list "test1" and sessionx reverting to its default of filtering out the current session from the list. Note to self: |
mh, in the screenshots my current session is "nix". But if i am in "test2" and kill it, the behavior you described is correct. |
@omerxx, I got what you said. And was thinking about opening an issue regarding this problem. set -g @sessionx-filter-current 'false' Works as configured, and when any one of the session is deleted it removes the session but ignores the above configuration and hides the session that is currently active.
if [[ $(echo "$SESSIONS" | wc -l) -gt 1 ]]; then
echo "$SESSIONS" | grep -v "$CURRENT_SESSION"
else
echo "$SESSIONS"
fi Here the configuration check is missing, I would love to look at it. |
@omerxx Just a gentle reminder. What are your thoughts on this? |
sessions. This should fix #72 so that the current session isn't filtered if set so in the config.
@sarojregmi200 Sorry for the delay, pushed a branch held in a PR (#98), this should solve the issue.
|
I will once I am free. And would like to see your approach, I have already patched my cloned version. |
@sarojregmi200 It's just the same statement used on the main .sh file. |
Yeah! I was also thinking the same looking at the changed files. And am yet to test it but I think there are some more configurations that should be duplicated to ensure user's customization takes effect. |
Deleting a session makes other sessions invisible.

Example:
I have four sessions running.
Now deleting test2 session leads to this:

Reopening the session view is listing all sessions again:
Tmux Version: 3.3a
tmux-sessionx running on e6d0215
nixOS 23.11
The text was updated successfully, but these errors were encountered: