You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m curious if it’s possible to add support for navigating to the next or previous tmux window using Ctrl + h or Ctrl + l , when there’s no tmux pane available to the left or right, respectively. I find this behavior much more comfortable and intuitive for seamless navigation.
For reference, this feature is available in another plugin for Zellij: zellij-nav.nvim.
I’d love to know if this functionality is also possible to implement in tmux. Thanks in advance for your help!
The text was updated successfully, but these errors were encountered:
I actually just added this to my own copy. I don't know yet how to submit a pull request but below are the changes I made. It's all just additions, nothing removed, so you could either clone my repo or make the changes yourself. This is for the vim side.
That changes panes like normal, but if you're at the left or right of the window it will move to the previous or next window, respectively. It doesn't wrap top to bottom from a vim pane, but that would be trivial to add.
Note that you have to define let g:tmux_navigator_no_wrap = 0 and let g:tmux_navigator_window_switch = 1. If you try to enable both it will disable the window switch in favor of wrapping.
I hope that helps, and I'm going to try to do a pull request, maybe get it added as an official option.
Hi everyone,
I’m curious if it’s possible to add support for navigating to the next or previous tmux window using Ctrl + h or Ctrl + l , when there’s no tmux pane available to the left or right, respectively. I find this behavior much more comfortable and intuitive for seamless navigation.
For reference, this feature is available in another plugin for Zellij: zellij-nav.nvim.
I’d love to know if this functionality is also possible to implement in tmux. Thanks in advance for your help!
The text was updated successfully, but these errors were encountered: