tmux.nvim icon indicating copy to clipboard operation
tmux.nvim copied to clipboard

Navigation issue with snacks_explorer

Open twils0 opened this issue 10 months ago • 6 comments

I'm using LazyVim with snacks_explorer.

In the past, I used neo-tree. tmux.nvim worked really well with neo-tree. If I pressed "ctrl+l" from neo-tree, it would take me to the Neovim window or tmux window to the right of neo-tree, and vice versa for "ctrl+h".

With snack_explorer, let's say I have snacks_explorer open and a Neovim window open to the right of it. If I press "ctrl+l" or "ctrl+h" I can move back and forth between snacks_explorer and the Neovim window. No problem.

Now, let's say I have snacks_explorer, a Neovim window to the right of snack_explorer, and a tmux window to the right of the Neovim window (3 windows split vertically). If I press "ctrl+l" from snacks_explorer, tmux.nvim will skip over the Neovim window and take me to the tmux window. If I press "ctrl+h" from the tmux window, tmux.nvim will take me back over the Neovim window to snacks_explorer. To get to the Neovim window, I have to close either snacks_explorer or the tmux window.

twils0 avatar Feb 19 '25 21:02 twils0

Heho, tyvm for reporting the issue. Would be awesome if this could get fixed. Can i interest you in a pr? :)

Kind regards Alexander

aserowy avatar Feb 20 '25 04:02 aserowy

I think this is also related to how snacks is handling picker windows. I encountered similar issues and was unable to get any help unfortunately. This is related to snacks windows being floating windows and folke is refusing to do anything about it.

Because of this, I started looking are there better navigation plugins that might have a workaround for this issue, but it seems that this plugin is also victim of the same issue.

putnap avatar Feb 24 '25 09:02 putnap

Ty for the heads up!

aserowy avatar Feb 24 '25 17:02 aserowy

I described a workaround for this issue here – https://github.com/folke/snacks.nvim/discussions/1332#discussioncomment-12666489

fastndead avatar Mar 30 '25 09:03 fastndead

Is there anything we can do on our side?

aserowy avatar Apr 07 '25 04:04 aserowy

Encountered the same issue

@drowning-cat suggested a patch: https://github.com/folke/snacks.nvim/discussions/1802#discussioncomment-12951518

Any change we can merge this directly into tmux.nvim? I understand that other plugin's details may look odd here.

rudenkornk avatar Apr 25 '25 22:04 rudenkornk