mrjones2014 / smart-splits.nvim

🧠 Smart, seamless, directional navigation and resizing of Neovim + terminal multiplexer splits. Supports tmux, Wezterm, and Kitty. Think about splits in terms of "up/down/left/right".
MIT License
977 stars 43 forks source link

[FEATURE]: kitty directional resize #66

Closed ttytm closed 1 year ago

ttytm commented 1 year ago

Great to see how the plugin has evolved! Thank you for your art!

Based on the idea of triggering kitty's resize_window <wider/narrower/taller/shorter> command depending on window layout and position, I did some research into the possibility of directional resizing with kitty.

The most promising find was based on this issue: https://github.com/kovidgoyal/kitty/issues/4684 It appeared that the issue opener had solved the request, so I took the liberty of looking into his dotfiles, where I found this little gem of a kitten: https://github.com/chancez/dotfiles/blob/master/kitty/.config/kitty/relative_resize.py

His dots are under MIT license and I thought this could serve for extending smart-resize's kitty implementation. If it's not too much trouble, perhaps adding directional resize support could be feasible. What are your thoughts on that?

mrjones2014 commented 1 year ago

Nice find, I think I can make it work with that kitten

mrjones2014 commented 1 year ago

Resolved by #67