hiasr / vim-zellij-navigator

76 stars 4 forks source link

"move_focus_or_tab" not working if Neovim is running alone #12

Closed steakhutzeee closed 1 month ago

steakhutzeee commented 5 months ago

Hi,

noted that move_focus_or_tab does not work if Neovim is the only thing running in a pane, so it does not switch to other tabs. This only works outstide of Neovim.

Could be possible to extend this functionality to let it work in this scenario?

Thanks!

hiasr commented 4 months ago

Which companion plugin are you using in Neovim? Under the hood we forward all keystrokes to neovim if that's the focused application. This means it is up to the Neovim plugin to execute that command.

steakhutzeee commented 4 months ago

Using zellij-nav.nvim with this config https://gist.github.com/steakhutzeee/bd3c24917580ba864fcefbf3d2c625d5

Peeeaje commented 4 months ago

@steakhutzeee I guess it's caused because the plugin is not using move_focus_or_tab in its implementation.

I forked that and enable move_focus_or_tab for left/right move so try it if you want. https://github.com/Peeeaje/zellij-nav.nvim

@hiasr If you don't mind could you replace the plugin in the readme?

steakhutzeee commented 4 months ago

Unfortunately I’m unable to reproduce as I moved to https://github.com/fresh2dev/zellij-autolock and its Nvim plugin.

allpan3 commented 2 months ago

Unfortunately I’m unable to reproduce as I moved to https://github.com/fresh2dev/zellij-autolock and its Nvim plugin. @steakhutzeee Were you able to get MoveFocusOrTab to work with autolock though? I'm still facing the same issue.

steakhutzeee commented 2 months ago

Unfortunately I’m unable to reproduce as I moved to https://github.com/fresh2dev/zellij-autolock and its Nvim plugin. @steakhutzeee Were you able to get MoveFocusOrTab to work with autolock though? I'm still facing the same issue.

Hi, unfortunately no, it looks that the feature is not present. Above you can see a feature request I issued for it.

hiasr commented 1 month ago

Hi, I will be closing this since this is a feature that must be implemented in a corresponding Neovim plugin.

It seems zellij-nav.nvim currently has a PR open for exactly this. Let me know if it still doesn't work!