sindrets/winshift.nvim

Question on expected window movement

Closed this issue · 4 comments

First of all I want to thank you for this amazing plugin, I was just looking for something like this yesterday and luky me, this came like a saving grace

I have one question thou, why when there is only vertical windows calling WinShift left or right first moves the window to the top of the adjacent window and you need to input a subsequent WinShift left or right to move it to the "correct position". It feels a little counterintuitive when you need to call left or right twice if you want to move the window left or right. I would understand this behavior when there are multiple windows and positioning gets wonky, but for only vertical windows it seems rather odd.

So I was wondering why we get this behavior and if there is any way to fix it or if there is nothing that can be currently done about it

Thanks

I'm a bit lost in your explanation. If you could provide some images, it would be a lot easier for me to explain.

But I can say this: the window movement is opinionated, and not random. There's a good chance the window is moving that way for a reason. But again, difficult for me to explain without a better picture of the scenario you're describing.

@becarepsol If I understand you correctly here, and you have for example 3 columns, you can use far_left etc. to move your window to the left without stacking into the middle column.

This only works as expected for three columns though... so maybe what's needed in your case if there's more are new direction names that won't stack what you move, and instead skip directly to the next column 🤔

Closing due to inactivity from OP.

@andersevenrud Yes, adding additional motions would certainly be the way forward in my opinion. Right now I'm contented with how it works. It fulfills all my needs for rearranging windows. But I'll see if I can add some more motions when I get some time.