exists, but it provides only some basic actions. I was wondering if you could map the mouse to allow moving split window panes around - something which is painful to do by keyboard. Do you know of something like this?
@ashwinvis@vim@neovim This _should_ work out of the box…? Does mouse dragging allow you to create a visual selection? If not, your terminal’s mouse reporting is probably not recognized correctly by (Neo)Vim, or it doesn’t report dragging at all.
@scy@ashwinvis@vim@neovim in my experience this works for *resizing* but not moving windows/panels around.
My solution to that is keyboard driven, but it's a plugin i wrote which allows swapping the currently focused window with a different one, by typing its letter.
I only tested it on vim, not neovim, but if it's possible to make it neovim compatible, i do welcome patches.
What I am looking for is a way to:
move left pane to right,
move bottom right pane to top left corner etc.
The method I use to move windows around is similar to what I do with text -- "d" the window, then "p" it elsewhere. Except the mappings are <c-w>d and <c-w>p: https://github.com/andrewradev/yankwin.vim
If you wanted to use the mouse, you could map <LeftMouse>, <MiddleMouse>, and <RightMouse> for it. Possibly with ctrl or some other modifier. There's even <LeftDrag>, but I haven't experimented with it, so I can't say if it would be easy to implement drag & drop for windows. :help mouse-overview.