Live data from Hacker News

Ask HN: The most useful Mac keyboard shortcuts?

news.ycombinator.com

31–40 of 140 posts

Re: Ask HN: The most useful Mac keyboard shortcuts?

#32
post #8

Shift+Cmd+4 for screenshot(s)

Wish this was easier to remember. I don’t do many screenshots yet I have ctrl/alt print screen burned in my brain and have to google this one every damn time

(joke ..) It's easy, just remember to add +1 from "Cmd Shift 3" .. the whole-screen screenshots shortcut.

(seriously) Cmd Shift 4 also has AFTERTOUCH - so do the command, draw out the grey capture window, and keep holding the mouse button WHILE trying using different combinations of Ctrl, Option, and Shift. Allows you to resize your capture window.

Without the initial SHIFT dumps the file to the Desktop. With the SHIFT adds the screenshot to your clipboard.

Re: Ask HN: The most useful Mac keyboard shortcuts?

#33
post #5

Not a shortcut exactly, but remap caps lock to ctrl. So much easier in terminal and for using shortcuts like ctrl-A & ctrl-E for beginning and end of line, etc.

It also makes it easy to use Ctrl-[ instead of reaching for ESC, which as a heavy Spacemacs and iTerm user is a lifesaver for me.

Re: Ask HN: The most useful Mac keyboard shortcuts?

#34

The one I remember best is Control-OpenApple-Reset.

Which is all very well, but Macs have never had an OpenApple or Reset key (the Command key used to have an Apple symbol on it, but now just has the cloverleaf symbol).

Suggests your experience with Apple computers dates back at least to the '80s! :-D

Re: Ask HN: The most useful Mac keyboard shortcuts?

#35

cntrl+a: go to start of a line cntrl+p: go up one line cntrl+n: go down one line cntrl+k: cut line proceeding cursor cntrl+f: forward one char cntrl+b: back one char These work everywhere you can type text on Mac: including in this HN text box, in the url bar, etc. I absolutely love these shortcuts...

and cntrl+e: end of line

aka Emacs keybinds.

Re: Ask HN: The most useful Mac keyboard shortcuts?

#37

cntrl+a: go to start of a line cntrl+p: go up one line cntrl+n: go down one line cntrl+k: cut line proceeding cursor cntrl+f: forward one char cntrl+b: back one char These work everywhere you can type text on Mac: including in this HN text box, in the url bar, etc. I absolutely love these shortcuts...

IIRC, these are enabled by default if the text view is a standard NS* text view (don't recall the actual class). It's always a bit of a surprise when I find a window where these don't work, and that's a good indication that someone has implemented their own class for the text view. Little nugget holdover from those Unix-loving NeXT devs.

Re: Ask HN: The most useful Mac keyboard shortcuts?

#38

cntrl+a: go to start of a line cntrl+p: go up one line cntrl+n: go down one line cntrl+k: cut line proceeding cursor cntrl+f: forward one char cntrl+b: back one char These work everywhere you can type text on Mac: including in this HN text box, in the url bar, etc. I absolutely love these shortcuts...

I was wondering why these worked everywhere. I had no idea it was a mac feature.

Re: Ask HN: The most useful Mac keyboard shortcuts?

#39
post #10
post #5

Not a shortcut exactly, but remap caps lock to ctrl. So much easier in terminal and for using shortcuts like ctrl-A & ctrl-E for beginning and end of line, etc.

Or to esc. Saves my vim pinky a lot of grief.

> Or to esc. Saves my vim pinky a lot of grief.

FWIW, Ctrl-[ emits the ASCII code for ESC. So you can save that 'vim pinky' and have the remainder of control codes available to you as well :-).

Post reply on HN