Live data from Hacker News

Moving a macOS window by clicking anywhere on it

mmazzarolo.com

261–270 of 314 posts

Re: Moving a macOS window by clicking anywhere on it

#262

I use https://rectangleapp.com/pro and really enjoy this app (I paid for it, it gets a lot of updates/fixes). It mostly takes care of snapping and resizing windows with hot keys, but has a less obvious feature in preferences to use mouse. My setup is: CMD+SHIFT will move any window under mouse pointer CMD+SHIFT+CTRL will resize any window under mouse pointer

I'll throw another option: https://magnet.crowdcafe.com/index.html I bought it in '17 for $1 - possibly the best dollar I've spent. Looks like it's $4 now. Coupled with a QMK keyboard, the modifiers are even easier to use.

When moving from Windows to macOS as my daily driver I really missed the window management keyboard shortcuts and ability to easily snap a window to the left/right of the screen or maximize windows. Magnet gave me everything I wanted and the price was right. I highly recommend it. Even at $4 it’s well worth the price given how well it works and it’s regularly updated.

That being said, reading this thread I’m realizing how many great options there are for these kind of scenarios on macOS.

Re: Moving a macOS window by clicking anywhere on it

#263

I use https://rectangleapp.com/pro and really enjoy this app (I paid for it, it gets a lot of updates/fixes). It mostly takes care of snapping and resizing windows with hot keys, but has a less obvious feature in preferences to use mouse. My setup is: CMD+SHIFT will move any window under mouse pointer CMD+SHIFT+CTRL will resize any window under mouse pointer

Formerly named Hookshot for those who had it a while ago. That's why tons of people don't realize there was a "Pro" option- because there wasn't one. The creator (who also made the free open source Spectacle-fork Rectangle app) renamed/rebranded Hookshot into Rectangle Pro sometime about 5 months ago.

Yup I came in through hookshot. I was a paid user there and my license was honored when it was released as rectangle pro. What a stand up guy.

Re: Moving a macOS window by clicking anywhere on it

#264
post #200

Earlier quoted context omitted.

When I do this with for instance a Finder window, it just "zooms" it. You can get the same effect if you go to the Window menu -> Zoom. "zoom"ing tells macos to make the window fit the content that's inside of it, however the app feels like doing that, even if you damn well just want the window to be as big as it can be. BUT, option + double-clicking any window corner will actually make even a Finder window take up t…

> completely undiscoverable, I feel like I'm lost while Maniac Mansion, just trying every possible Verb + Object (+ Indirect Object) combination to try to read the game dev's mind. I just found out that Apple has a pretty neat guide on all of this [1]. That you can find by googling or searching the builtin system help. I never looked at the system help before, but it looks like Apple did a good job documenting these…

No post body was provided.

Re: Moving a macOS window by clicking anywhere on it

#265

Earlier quoted context omitted.

I'll throw another option: https://magnet.crowdcafe.com/index.html I bought it in '17 for $1 - possibly the best dollar I've spent. Looks like it's $4 now. Coupled with a QMK keyboard, the modifiers are even easier to use.

I find it so strange how resistant people (not you!) are to paying trivial sums of money for things that contribute so much value. It was $1. Now it’s $4! Like half a Starbucks coffee! How many people would not even see this app because it’s not free? And how about the one commented below that “looks like it’s no longer maintained?” Sounds like it’s the free choice… I have been guilty of agonizing over spending $5 on…

Yup I gauge everything in drink prices, of which buy about one from the list daily. $1-5 = coffee, $5-10 = beer, $10-15 = cocktail. $20 is a bottle of wine.

I almost never think about spending those amounts on those things, so for anything that gets potentially more than one use it's a no-brainer.

Of course, im not on a student anymore.

Re: Moving a macOS window by clicking anywhere on it

#266

Earlier quoted context omitted.

I'll throw another option: https://magnet.crowdcafe.com/index.html I bought it in '17 for $1 - possibly the best dollar I've spent. Looks like it's $4 now. Coupled with a QMK keyboard, the modifiers are even easier to use.

I find it so strange how resistant people (not you!) are to paying trivial sums of money for things that contribute so much value. It was $1. Now it’s $4! Like half a Starbucks coffee! How many people would not even see this app because it’s not free? And how about the one commented below that “looks like it’s no longer maintained?” Sounds like it’s the free choice… I have been guilty of agonizing over spending $5 on…

For me, I think the inhibitor is cognitive overhead.

I have paid for dozens of utilities & apps that I now longer use. Why? Because there's no more room in my head? Because even the minimal effort to keep stuff running seems like a poor ROI? Because after a while, every thing looks the same?

I dunno. It's too bad though.

Re: Moving a macOS window by clicking anywhere on it

#268

I use https://rectangleapp.com/pro and really enjoy this app (I paid for it, it gets a lot of updates/fixes). It mostly takes care of snapping and resizing windows with hot keys, but has a less obvious feature in preferences to use mouse. My setup is: CMD+SHIFT will move any window under mouse pointer CMD+SHIFT+CTRL will resize any window under mouse pointer

I'll throw another option: https://magnet.crowdcafe.com/index.html I bought it in '17 for $1 - possibly the best dollar I've spent. Looks like it's $4 now. Coupled with a QMK keyboard, the modifiers are even easier to use.

I'd like to put my hand up and suggest Magnet, too.

For ages, I used Amethyst, which is a "tiling window manager" for macOS, but somewhere along the way it got annoying to install/keep working properly due to some of Apples shenanigans.

So I moved to Magnet. I still use it daily, but honestly forget its there because I use it so much! Just feels like native macOS behaviour at this point.

Re: Moving a macOS window by clicking anywhere on it

#269
post #233

I use https://rectangleapp.com/pro and really enjoy this app (I paid for it, it gets a lot of updates/fixes). It mostly takes care of snapping and resizing windows with hot keys, but has a less obvious feature in preferences to use mouse. My setup is: CMD+SHIFT will move any window under mouse pointer CMD+SHIFT+CTRL will resize any window under mouse pointer

I like divvy. Create your own grids. Works with a mouse or keyboard. https://mizage.com/divvy/ I also like Witch for window/app switching. I just wish it was a little less sluggish to activate: https://manytricks.com/witch/

For Windows, PowerToys offers something comparable to Divvy (and IMHO better): https://docs.microsoft.com/en-us/windows/powertoys/fancyzone...

I'm very surprised they don't distribute these tools among Windows, now that they are matured.

PowerToys name also brings a lot of good old memories :)

Re: Moving a macOS window by clicking anywhere on it

#270

Another question - I've looked before for any documentation on building tools for Mac, and can't really figure out anything besides "run this xyz app to trigger an AppleScript and do magic". Does anyone know of any Swift APIs for interacting at the level of the OS itself?

If you want to put together keyboard-shortcut-triggered automations on a Mac without any third party software, I think you have to create an automator service and then assign it a shortcut in System Preferences > Keyboard > Services.

I know you asked about Swift, but...

If you're ok with third party software, I would recommend keyboard maestro. In addition to triggers (keyboard-based and others), it offers a pretty high level API over the macOS automation stuff you'd typically hack together with AppleScript, such as "activate app", "bring window at index i to front", "simulate keystroke", "insert text", "move the mouse to x,y relative to Element", "run JS in frontmost browser tab", etc. And that's only roughly 5% of what it can do.

With keyboard maestro I don't see much point in writing one's own native automation apps. The APIs it exposes are just as powerful as what you could write yourself and a heck of a lot easier to use.

Post reply on HN