Re:Ask HN: The most useful Mac keyboard shortcuts?
by grzm on Monday August 05, 2019 @11:01PM
(#20621716)
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?
by tobr on Tuesday August 06, 2019 @06:59PM
(#20630515)
You missed the best one, ctrl+t: swap the left and right characters adjacent to cursor. Fixes about 90% of typos.
> These work everywhere you can type text on Mac
Supposedly they even work on iOS if you plug in a keyboard, which is pretty unexpected if you think about it.
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...