Mac keyboard shortcuts
mattgemmell.com
mattgemmell.com
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.
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].
Additionally, I think the need for maximization and edge-snapping in Windows is something that OSX handles very elegantly with Spaces.
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...
Does anybody know how to maximize a window with OS X?
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).
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.
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.)
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.
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.
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.
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.
Of course more often then not I'll use Alfred, which does open minimized windows by default.
With Safari, you can do Command+Shift+[ and ]
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.
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).
Could you provide an example of what you use services and Automator for? I've seen the services menu and I think I read somewhere that it works with the clipboard, but I have no idea what I can use it for.
Here's another example. I recently wrote an Automator Service to copy selected file/folder paths to my clipboard. Super useful for programming and it only took me half an hour without knowing any AppleScript. http://cl.ly/1a3s3g1u2Q2w
By the way, the contents of the Services menu changes depending on the type of data you've selected. If you want to see a full list, go to System Preferences — Keyboard — Shortcuts — Services. Lots of stuff to choose from!
For example, while I do have a desire occasionally to full-screen a window (for which I currently use Divvy), I usually don't see a need to, because I picked up on the multi-window paradigm where it's quite convenient to be able to see parts of other windows (for drag and drop, for example).
When I first switched to OSX though, I hated the inability to full-screen.
Not the best example perhaps, as I do find it a bit lacking to not natively be able to do so, but my point is that rage is often a result of trying to cram one paradigm into another.
I think Mac shortcuts take longer to memorise as they are often a combination of command, shift, option, etc. (although they are helpfully spelled out in each menu) but once you have learned them there is little that can't be done directly from the keyboard with a single invocation.
Pressing "f" instantly tags each link on the page with one or two letters that I can type on the keyboard to go to that link (if I type them as capital letters, the link gets open in a new background tab, otherwise just a new tab).
Even if you're not a fan of the vim editor, if you enjoy keeping your hands on the keyboard it's worth learning the few keyboard shortcuts that Vimium provides for navigating the web.
https://chrome.google.com/webstore/detail/vimium/dbepggeogba...
I recently discovered this gem that accomplishes the feat using keyboard shortcut. Use Cmd+c to place the file(s)/directorie(s) on clipboard. Now move to destination directory and use "Cmd+v" to do copy-paste and use "Cmd+Option+v" to move the selected files and folders.
Pop up that shows available keyboard shorcuts (activated by a keyboard shortcut of course :)
They seem to have fixed it since then.
⌘ command; cmd
⇧ shift
⇪ caps lock
⌥ option; alt
⌃ control; ctrl
↩ return
⌅ enter
⌫ delete
⌦ forward-delete
⇥ tab
␣ space
⏏ eject
↑ up arrow
→ right arrow
↓ down arrow
← left arrow
⇞ page up
⇟ page down
↖︎ home
↘︎ end
⎋ escape
⌧ clear
Also, 9 of the 22 symbols above are conveniently available in the Technical Symbols category in Character Viewer. You have to enable the Technical Symbols category first by choosing “Customize List…” from the gear menu at the top left. Character Viewer supported categories starting in OS X 10.7.
Doing power-scripting may not require a ton of keyboard-skill...but for novices trying to leapfrog into web-app development (let's not debate whether that's even wise)...it's excruciating to tell them "OK, now look in config.rb and see if that matches what you see in the main_controller.rb. Then switch to Chrome, refresh, and see the output"...and watch them take 5-10 seconds to poke through each open tab in Sublime Text (or just as bad, explore each branch of the project tree)...by which time, they've forgotten what they were supposed to be looking for in the first place.
In other words, if aspiring developers want to take the quick shortcut, past basic computer science and operating system theory, right into web app development, then they must make up for it in other areas of efficiency. Learning keyboard shortcuts isn't the only vital skill, but it's the easiest to master...and the easiest to pooh-pooh.
While it isn't strictly a keyboard app, it also gives you a lot of flexibility and does support the keyboard. My latest addition is a script that pulls up the Lastpass extension from a global hot key and puts the mouse over "Copy Password." It is very useful for getting passwords into the command line.
1. Save mouse position 2. Mouse mouse to 0,0 3. Click left button. 4. Restore mouse position.
It's a hack but it works.
I also wish there was a consistent keystroke for focusing to the top-level element of a page in Safari: when browsing using Chrome I frequently use the excellent Vimium extension (Vim shortcuts in Chrome; plus great highlighting of links to pretty much navigate quickly with keyboard only). In Safari I use the similar, but not quite as good Vimari. However I find that after navigating to a page from the URL bar, the shortcut to trigger Vimari doesn't ALWAYS work until I click on the document somewhere...
Cmd+Shift+3 = Capture the entire screen
Cmd+Shift+4 = Capture a selection with the mouse
Cmd+Shift+4 -> Space Bar -> Move cursor and click on window = Capture the selected window
By default it will save these to an image on the desktop. By holding down the Control key it will copy it to the clipboard.
Still there are still other quirks that can be irritating, as others have mentioned window controls and my favorite, accidentally finding a three key combo that puts things off the main window or worse changes the zoom and you have to figure it out the hard way (yeah, have had Macs for over ten years now and there are key combos that elude me still)
Plays relatively nicely with Exchange too.
Since I use the terminal ALOT, this key combo is the same behavior as delete on a full keyboard. It will delete text in front of the cursor.
Another helpful one I found out through trial and error is Fn + Shift + <- OR ->
The above moves the cursors placement to the beginning or end of a terminal prompt. Hope this helps someone else :)
While we're here:
^A - Home (beginning of line, A is the first letter of the alphabet)
^D - Delete (the character to the right of the cursor, or the one underneath the block cursor)
^E - End (end of line, E for End)
^T - Transpose (switch the characters left and right of the cursor, for example "acbd" with the cursor between "c" and "b" would become "abcd")Someone told me an investment firm took AWAY computer mice from all employees because using just keyboard makes you 20% more productive (I think they were all Windows shop). And I believe the 20% figure.
For me the main problem was that Macs had a completely different shortcut layout than Windows and Linux. With 'KeyRemap4MacBook' I was able to get consistency across the different platforms (not perfect but ~ok).
(There are many pictures in the article and it is written with much detail, granted. But KeyRemap4MacBook should have been mentioned imho and the problem if you switch platforms and use platform-specific shortcuts is real, imho of course)
With KeyRemap4MacBook I could 'linux-standardize' the Mac shortcuts. It's not perfect but good enough and vim, terminal, most ui behave ~equal.
Or you just need to double the amount of shortcuts you know ;)
As an aside, these posts remind me of macosxhints.com of years past.
C-a C-e C-b C-f C-p C-n C-d
probably more...
option-n then n or N : ñ or Ñ
option-e then a, e, i o or u : á é í ó ú or Á É Í Ó Ú
option-u then a, e, i o or u : ä ë ï ö ü or Ä Ë Ï Ö Ü
option-` then a, e, i o or u : à è ì ò ù or À È Ì Ò Ù
option-c : ç or Ç
there are probably others but I'm more familiar with French, Spanish and German than say Czech.
option-a then a, e, i, o, or u: ā ē ī ō ū or Ā Ē Ī Ō Ū
option-v then a, e, i, o, or u: ă ě ǐ ǒ ǔ or Ǎ Ě Ǐ Ǒ Ǔ
ctrl-shift-eject
to start the screen saver and lock the screen if screen locking is enabled.