News for hackers. Stuff that matters.
Re:Mac keyboard shortcuts by yan on Thursday May 15, 2014 @06:38PM (#7752664)
I live by keyboard shortcuts, and one that I use many times a day that I find lists of OS X shortcuts always miss is how to restore a window if it's minimized, or open a new empty document if no windows are active.

Normally, when you cycle open apps with Command+Tab, if you land on an application that has minimized windows, nothing happens. The way to remedy that is as follows: Hold Command and tab to the app you want to un-minimize. Without letting go of Command, press down Option, then while holding down Option, let go of Command.

It's a little awkward to use at first, then you'll do it automatically. I hold Command with my thumb, then tab with ring finger, then just move ring finger back down to Option, and let go of thumb.

Edit: Bonus tip: When landing on an application icon with Tab, continue holding Command and use Tilde (~) to cycle through windows of the same App. I use that one a lot too.

Re:Mac keyboard shortcuts by morganherlocker on Thursday May 15, 2014 @08:59PM (#7753206)
This was one of the things that made OSX horrible for me when switching from Windows and Linux. I have since learned the tricks to get around many of OSX's windowing quirks, but I do wonder how things like this have not been fixed.

I love my OSX setup now, but if I was a "non-power-user", I think it would be completely unusable. Watching a typical Windows user try to maximize a window in OSX is pure pain.

Hit the + button: window gets a bit bigger, but not full screen.

Drag the window to the top: nothing happens.

Try to get to the edge of the window, and drag it out: RSI inducing frustration.

Windows seems to dominate as far as basic user usability goes on the windowing front. I would still find it completely unusable without the help of a windowing app like spectacle[1] or slate[2].

[1] http://spectacleapp.com/

[2] https://github.com/jigish/slate

Re:Mac keyboard shortcuts by archagon on Friday May 16, 2014 @03:44AM (#7754256)
I used to be really frustrated by the inconsistent + button, but recently I realized something interesting: especially for text-heavy applications such as browsers, you often don't want to maximize them to the full width of the screen. This is because the optimal reading width is actually relatively narrow compared to our widescreen monitors, and going past that makes documents frustrating to read. As a result, whenever I hit + and the application expands to the full width of the screen, I very often have to grab an edge and drag it back to the center a little bit. There's definitely some things Apple got right with the design.

Additionally, I think the need for maximization and edge-snapping in Windows is something that OSX handles very elegantly with Spaces.

Re:Mac keyboard shortcuts by WorldWideWayne on Friday May 16, 2014 @09:16AM (#7755265)
> you often don't want to maximize...

No, I always want to maximize when I want to maximize. When I want to make text more readable, I have other options like zooming, snapping to an edge (in Windows or with an add-on to OS X) or using an application specific function such as "reading mode" or "print layout" (in Word).

Apple got window management completely wrong in my opinion. I mean, here's an example of a situation where an open window is orphaned from keyboard access of any kind:

http://apple.stackexchange.com/questions/128720/how-to-switc...

Re:Mac keyboard shortcuts by ghshephard on Thursday May 15, 2014 @10:21PM (#7753403)
10 years later, and what I would consider a "power user", and I still spend time every day trying to maximize windows on OS X. It's usually a game of hitting the "+" button to see what will happen, and usually being disappointed by the results.

Does anybody know how to maximize a window with OS X?

Re:Mac keyboard shortcuts by skierscott on Thursday May 15, 2014 @11:22PM (#7753556)
Check out Optimal Layout[0]. It's a wonderful cross between a tiling window manager and the normal GUI and something I wish every computer had.

You can bind a single keyboard shortcut to cycle through different possible positions for a single window size. For example, let's say you want a window to take up half the screen. In my case I press F2 once or twice depending if it's on the left or right half.

Another tool to script the GUI is Keyboard Maestro[1]. Almost any GUI action is possible such as closing a specific application on open or moving mouse to x,y. In my case, I set up a keyboard shortcut to activate iTerm (a almost terminal.app) and enter %run<up arrow><enter> to run a python script.

Both cost money but I couldn't live without it after the free trial ended.

[0, 1]:(I'm on mobile otherwise I would post a link; use google).

Re:Mac keyboard shortcuts by ciniglio on Thursday May 15, 2014 @11:50PM (#7753644)
[0]: http://most-advantageous.com/optimal-layout/

Agreed. Optimal layout is great, I can't recommend it highly enough. Watching the video on the site gives you a good idea of all the things you can do with it. Also the developer is very responsive to support questions and feature requests.

Re:Mac keyboard shortcuts by ihuman on Friday May 16, 2014 @12:16AM (#7753696)
I use Spectacle. Full screen is Command-Alt-F. you can also make the window take up a half, third, or quarter of a screen with 1 shortcut. It takes some getting used to, but I find it hard to go without it.

http://spectacleapp.com/

Re:Mac keyboard shortcuts by taude on Friday May 16, 2014 @08:32AM (#7755099)
I tried EVERY OS X window management app, spectacle was the one I settled on. I don't remember if I changed my short-cut keys to match Windows arrow snap or not. But OS X window management, especially on multiple monitors was one of the biggest pains when I switched from Win to OS X. At least multi-monitor support by default on OS X is better now days, but they could use some default window management tool improvements.
Re:Mac keyboard shortcuts by stygiansonic on Friday May 16, 2014 @01:16PM (#7756571)
Here's another vote for Spectacle; shortcuts/key bindings are configurable and the ability to segment your available screen into grids is something I can't live without anymore.
Re:Mac keyboard shortcuts by morganherlocker on Friday May 16, 2014 @09:15AM (#7755259)
I use Spectacle with alt+cmd+up mapped to 100% window, which I tend to prefer to actual "fullscreen" (OSX is weird with fullscreen on multiple monitors).
Re:Mac keyboard shortcuts by Smirnoff on Friday May 16, 2014 @01:45AM (#7753949)
Do mention that this is a FREE app, which just works! The most of the other suggested apps here are paid.
Re:Mac keyboard shortcuts by olalonde on Thursday May 15, 2014 @11:24PM (#7753563)
BetterTouchTool lets you snap windows at the top to maximize. http://www.bettertouchtool.net/
Re:Mac keyboard shortcuts by Walkman on Thursday May 15, 2014 @11:42PM (#7753616)
The author mention a great little app in his previous blog post called Moom [1] I just tried and it's awesome! You can resize, full screen, put windows left and right immediately without the mouse.

[1]: http://manytricks.com/moom/

Re:Mac keyboard shortcuts by mh- on Friday May 16, 2014 @11:33AM (#7756015)
+1 for moom;

I have cmd+period set to activate moom, then just period (when moom is activated) set to maximize.

I use that key sequence dozens of times a day (I also have many others, and custom layouts, configured.. but that alone makes it worthwhile.)

Re:Mac keyboard shortcuts by bane on Friday May 16, 2014 @09:28AM (#7755333)
Like most things with OS X, the built-in tools and behaviors are horrible and broken and is fixed by installing any one of a few dozen community built fixes (there seems to be a category of roughly equivalent utilities like this for virtually every single piece of the OS).

Apple simply refuses to fix this basic stuff and I avoid interacting with the GUI bits of OS X as much as possible. At least you can finally resize windows from more than just the bottom right corner, that's a win I guess.

Re:Mac keyboard shortcuts by titaniumdecoy on Friday May 16, 2014 @03:27AM (#7754188)
Yes - Hold shift when clicking the maximize button.
Re:Mac keyboard shortcuts by reviewdbysteve on Thursday May 15, 2014 @10:28PM (#7753428)
https://www.irradiatedsoftware.com/sizeup/ works well, but costs money.
Re:Mac keyboard shortcuts by nielsbot on Friday May 16, 2014 @01:25AM (#7753900)
Well, classically at least, the + button should enlarge the window to the largest size that fits the content... Hence no Windows-style maximize feature.
Re:Mac keyboard shortcuts by donutdan4114 on Friday May 16, 2014 @09:03AM (#7755203)
I use Moom for window stuff: http://manytricks.com/moom/
Re:Mac keyboard shortcuts by snowwrestler on Friday May 16, 2014 @04:20PM (#7757690)
The maximize button is always dragged out in discussions of OS X usability.

But you only need it if you're constantly resizing windows--which is not something most people do. Most people just set the window size they want once, because OS X remembers it per app.

Or, if the user wants the app full screen, they use the "full screen" button.

Re:Mac keyboard shortcuts by mukmuk on Thursday May 15, 2014 @11:28PM (#7753575)
I think Slate has been abandoned. Check out Phoenix: https://github.com/sdegutis/phoenix
Re:Mac keyboard shortcuts by awolf on Thursday May 15, 2014 @06:43PM (#7752688)
This is a good tip but it comes too late. To deal with this exact frustration I decided years back to simply never minimize anything ever. It's working well for me.
Re:Mac keyboard shortcuts by raamdev on Thursday May 15, 2014 @07:17PM (#7752864)
I just use Cmd+H to hide windows instead of minimizing, since hiding effectively does exactly what I want (get the window out of my sight, but leave the app running) and then I can easily Cmd+Tab back to it.

I only recently found a good use for minimizing over hiding: I was working in my IDE (PhpStorm) on several projects (each project opens in its own window) and I wanted to switch back and forth between two project windows. With 4 or 5 windows open, switching between the two windows I was interested in (using Cmd+`) was a game of cat and mouse. I was alway hoping that I'd land on the right window and not mess up the order of windows. Then I realized if I just minimize the windows I don't need right now, I can get them out of the Cmd+` cycle and easily switch between on the two windows I want.

Re:Mac keyboard shortcuts by cliveowen on Friday May 16, 2014 @06:42AM (#7754798)
I hide everything too, but I wonder if there is a quick way to hide everything but the current active windows.
Re:Mac keyboard shortcuts by mercer on Friday May 16, 2014 @07:00AM (#7754846)
CMD-OPTION-H should do that.

I also recall there being an option you can turn on through the Terminal that has the same effect when you click on an application's icon in the Dock.

Re:Mac keyboard shortcuts by girvo on Thursday May 15, 2014 @08:12PM (#7753075)
I solved that same use-case by buying another monitor... I'm not even joking, either.
Re:Mac keyboard shortcuts by r00fus on Friday May 16, 2014 @01:26PM (#7756636)
If you've ever attempted to be productive while at a meeting, traveling or at a customer site these tricks become very useful.
Re:Mac keyboard shortcuts by Fishkins on Thursday May 15, 2014 @06:52PM (#7752732)
I knew about it pretty much from the beginning, but I still never minimize anything since it's a pain to have to remember which windows I minimized and therefor need to also press Option for.

Of course more often then not I'll use Alfred, which does open minimized windows by default.

Re:Mac keyboard shortcuts by emehrkay on Thursday May 15, 2014 @06:41PM (#7752679)
This is a game changer, how did you even discover it?
Re:Mac keyboard shortcuts by yan on Thursday May 15, 2014 @06:49PM (#7752716)
I don't really remember to be honest, I'm always on the prowl for new shortcuts (I rarely touch the mouse. Also, get Vimium for Chrome.) but it changed how I interact with OS X pretty significantly after I found it.
Re:Mac keyboard shortcuts by daviding on Thursday May 15, 2014 @06:52PM (#7752727)
It is nice, but I sometimes wish that Safari or Chrome tabs would cycle with that combination, rather than the control + tab sequence as then it would all be a bit more similar.
Re:Mac keyboard shortcuts by yan on Thursday May 15, 2014 @06:54PM (#7752739)
FYI: You can also cycle tabs with Command+Option+Left and Command+Option+Right and Command+[1, 2, 3, etc, with 9 always selecting the right-most tab] in the case of Chrome.

With Safari, you can do Command+Shift+[ and ]

Re:Mac keyboard shortcuts by dbtc on Thursday May 15, 2014 @07:10PM (#7752831)
Command shift [ ] works with almost everything that has tabs including safari, chrome, terminal, Xcode and sublime. (those are the ones I use it with).
Re:Mac keyboard shortcuts by pluggedin on Thursday May 15, 2014 @10:56PM (#7753491)
Good to know.

What I do is Command+Tab then Down Arrow. This will allow you to use the left and right arrows to cycle through all windows.

Re:Mac keyboard shortcuts by septerr on Thursday May 15, 2014 @07:37PM (#7752938)
Because of this awkwardness, I never minimize windows either (like others who replied here). I simply hide them.
Re:Mac keyboard shortcuts by Walkman on Thursday May 15, 2014 @11:45PM (#7753625)
I do this either. This way, if you CMD+TAB to it, it will get revealed.
Re:Mac keyboard shortcuts by CatMtKing on Thursday May 15, 2014 @07:21PM (#7752879)
It seems to work for me even without letting go of Command, I just need to tap Option while Command is being held down and it will pop the window back out.
Re:Mac keyboard shortcuts by arrrg on Thursday May 15, 2014 @07:02PM (#7752783)
Huh. Cool.

Depending on your keyboard you might also be able to slide (with your thumb) from Command to Option. It’s certainly possible on Apple’s keyboards (I just tried).

Re:Mac keyboard shortcuts by hobbsy on Thursday May 15, 2014 @11:41PM (#7753614)
This is incredibly helpful - thank you.
Re:Mac keyboard shortcuts by rrtwo on Friday May 16, 2014 @02:28AM (#7754031)
but you need to know apriori that it is minimised no?
Re:Mac keyboard shortcuts by nimeshneema on Friday May 16, 2014 @06:46AM (#7754812)
Made my day...