kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
23.84k stars 961 forks source link

Please allow active window resizing according to directions(left, right, up, down) #7860

Closed syedadeed closed 3 days ago

syedadeed commented 3 days ago

i have binded atl+shift+{left, right, up, down} keys to resize_window {narrower, wider, taller, shorter} this resizes windows in the direction of the arrow only if they are on the right side of the screen for windows on the left side it resizes windows in the opposite direction of the arrow

So its my humble request if possible can you refactor the resize window function to resize windows according left, right, top, bottom directions

I dont know about any possible alternatives maybe a custom kitten or something might be able to help in this case but i cant say for certain because i havent yet read docs for creating custom kittens

You can see the window resizing in hyprland as an example, it resizes windows according to specified directions

kovidgoyal commented 3 days ago

I'm afraid not, I find wider/taller much more useful than directional resizing. But if you like directional resizing you can of course implement it using a custom kitten (by adjusting the biases in the layout to give the windows the sizes you want when the kitten is triggerred). I am also open to a PR for it, but then you would have to implement it for every layout kitty supports not just the one you use.

syedadeed commented 3 days ago

i created a custom kitten for it :) thanks for giving me the heads up on how to create one :)