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
Forgive me if this isn't what you're looking for- but I think determining the window in the "hjkl" direction is already possible using basic arithmetic (but that's not to say a built-in function wouldn't be better.)
I've just done #20 using the new getwininfo API.
Currently it is only required to check if the column is the same as with the current window, i.e. if it is in the same screen column (by iterating through the winnrs with lower numbers).
It uses win_screenpos() (added in 8.0.1364), which I've probably not found, since it is not in Neovim yet. And it's from Dec 2017, while I was investigating before into this issue.
Actually that would have been enough already for me, since I am only interested in the col currently anyway. I will use win_screenpos then for now, which makes the gap of degraded support smaller.
Thanks again.
This might come in useful later anyway - e.g. I still want to check how it behaves with a wide qf list, depending on the cursor position etc.
But enough for now, once this issue is fixed.
Forgive me if this isn't what you're looking for- but I think determining the window in the "hjkl" direction is already possible using basic arithmetic (but that's not to say a built-in function wouldn't be better.)
https://gist.github.com/andymass/fa3934faf0695955ed3815d0ca6475a7
With more time/testing I'd probably make it into a small plugin, but that's moot if a patch to vim gets accepted.
The text was updated successfully, but these errors were encountered: