this post was submitted on 16 Jul 2023
16 points (100.0% liked)
Neovim
2171 readers
3 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
@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.
https://asciinema.org/a/0laV3PGpmCXkkazet0hIRf51W
https://github.com/tshirtman/vim-winny
@tshirtman
Ooh... like a tiling window manager. I will check it out. I like the labelled popups in front of panes.
I see something similar written in Lua.
https://github.com/sindrets/winshift.nvim
@scy @vim @neovim
@ashwinvis @scy @vim @neovim oh the one you found seem more powerful than mine, behaving a lot more like i3wm, nice, sadly only neovim compatible, but it's nice to know it exists, panes management is really a pain point in vim when you open more than a couple of them.