pablopunk / SwiftShift

Sweet window management for macOS
https://swiftshift.app
MIT License
151 stars 8 forks source link

Resizing from top/left #21

Closed coreORB closed 1 month ago

coreORB commented 6 months ago

Would it be possible to add new shortcut to resize windows from top/left? Now when I want to place window in remaining space on right side of screen I have to move it, resize, check if it fits and repeat moving ad resizing. With new feature one could move window to right edge, resize from left side and done :).

pablopunk commented 6 months ago

@coreORB interesting! would you like to have an option to chose "where to resize from" or both options at the same time? i.e one shortcut for bottom-right resizing and another one for top-left

coreORB commented 6 months ago

@pablopunk Definitely both at the same time. As I see it, we have 3 mod keys (in order): control, option and command. Shortcuts could be following: control+option - resize from left/top (as those keys are on the left side) option+command - resize from right/bottom (as those are on the right side) control+command - move window (as those keys are not used yet)

pablopunk commented 6 months ago

yeah, but the app actually allows you to set any shortcut, not only modifiers (i.e ⌘+M), so the UI should be generic. I might implement a way to extend a shortcut (similar to what I'm doing in https://github.com/pablopunk/SwiftShift/pull/22) so it allows more customization. In this case it would require to allow the user to split a shortcut into 2 (left-top resizing vs right-bottom)

coreORB commented 6 months ago

Sure, more customization is always welcomed ;). I wrote about shortcuts, because I'm currently using two of those and find them intuitive. IMO third one would complete it nicely and those would make great defaults.