-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Option to move between panes "circularly" #10
Comments
Navigating only between neovim splits is not the goal of this plugin but to move b/w nvim and tmux. That being said, I won't promise you that i'll implement this but i can try and see if this feels home to me ;) |
Awesome! Let me know if you figure out how to detect if we're currently in the leftmost/rightmost split inside Neovim, I wanted to figure that out for something else too (an idea I had for "smart" window resizing) |
You can do something like prev_win --> wincmd h | l --> check cur_win == prev_win I used the same logic to move out from neovim to tmux |
Amazing, thanks! that worked perfectly. |
I implemented this in a repo fork if you ever want the feature added :) |
Ended up implementing this functionality in my own smart-splits.nvim plugin, since I don't really use tmux splits often anymore. I mostly use tmux floating windows. |
@declancm I'll be happy to review a PR for it :) |
Not sure if the title makes sense, and actually not even sure this is possible with the Neovim API, but basically what I want is, if my cursor is in the leftmost split, and I call
require('Navigator').left()
, it should go to the rightmost split.This already works this way with the tmux panes, but not with Neovim splits.
Example of how it works in tmux splits:
vs. in Neovim splits
Does that make sense? Not sure if I explained that too well 😅
The text was updated successfully, but these errors were encountered: