Skip to content
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

Stuck when trigger open popup #169

Open
khoinguyen opened this issue Jan 7, 2025 · 6 comments
Open

Stuck when trigger open popup #169

khoinguyen opened this issue Jan 7, 2025 · 6 comments

Comments

@khoinguyen
Copy link

khoinguyen commented Jan 7, 2025

Versions:

  • MacOS ARM Sequoia
  • fzf 0.57.0

my tmux.conf

...
set -g @plugin 'omerxx/tmux-sessionx'
set -g @sessionx-bind C-o
set -g @sessionx-prefix off
set -g @sessionx-fzf-builtin-tmux 'on'
set -g @sessionx-window-mode 'on'
...

I tried the binding with

unbind o
set -g @sessionx-bind 'o'
set -g @sessionx-prefix on

Both configs allow me to trigger open the popup, but I can't do anything after. After a few tries, I open the new Ghostty window,tmux a to my frozen session, then I can type in the fzf popup, and ESC to close the popup, of course, then the popup in my first Ghostty window closed, I can switch back to it and everything is fine.

If I keep both of Ghostty in the same tmux session, then trigger open sessionx, again it stuck there, then I close one of the Ghostty windows, and then the popup works.

All the keystrokes that I typed when the popup "freeze" appeared in the previous location, I just didn't see it when the popup opened.

I tried bash -x ~/.tmux/plugins/tmux-sessionx/scripts/sessionx.sh, then the fzf windows open perfectly, I can type things, use keybindings, however, everytime the fzf tmux popup add another layer, please refer to the screenshot
Screenshot 2025-01-07 at 18 28 43
After Ctrl-w a few times
Screenshot 2025-01-07 at 18 28 57

Below screen shot show the fzf freeze my terminal, and I pressed a few keystrokes, but nothing appears

Screenshot 2025-01-07 at 18 36 51

Then I tmux a in another terminal window and ESC to close the popup, my keystrokes appeared
Screenshot 2025-01-07 at 18 37 25

@pablobfonseca
Copy link

I am having the same issue, but I noticed it only happens if you have the option:

set -g @sessionx-fzf-builtin-tmux 'on'

if you set it to off it works fine

@khoinguyen
Copy link
Author

khoinguyen commented Jan 8, 2025

@pablobfonseca thanks a lot! It works! So that option seem not working atm.

However, now I found another issue, it not recognize my session name, when start, tmux set my session by default as 0, or even after I rename by using tmux cmd to dotfiles or anything else, when trigger to open the popup, it shows Current session: ""

The arrow point to a blank, please see my screenshot
Screenshot 2025-01-08 at 14 06 10

If I create another session, then it only show one session name, if I use Ctrl-w, then it shows another session. This tell me seem like set window-mode to on will help. I was disabled the window-mode when trying various option to see if it work

I changed the window mode on, then everything works fine (Current session still "")
Screenshot 2025-01-08 at 14 19 40

@pablobfonseca
Copy link

@khoinguyen are you using tmuxinator? it works fine for me and the only options I have enabled are:

set -g @sessionx-bind 'o'
set -g @sessionx-fzf-builtin-tmux 'off'
set -g @sessionx-tmuxinator-mode 'on'

@khoinguyen
Copy link
Author

@pablobfonseca I didn't use tmuxinator, just plain old tmux. I tried set the tmuxinator mode on, no improvement though.

@TC72
Copy link

TC72 commented Jan 29, 2025

I had the same problem on mac in both Ghostty and iTerm, confirm using this fixes the issue:

set -g @sessionx-fzf-builtin-tmux 'off'

@paul-ohl
Copy link

I had the same issue on Fedora using alacritty. Same fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants