3 ms·
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: bac
by koopuluri 7y ago
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...
- hnzix 7y agoand cntrl+e: end of line aka Emacs keybinds.
- grzm 7y agoIIRC, 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.
- chess93 7y agoI was wondering why these worked everywhere. I had no idea it was a mac feature.
- tobr 7y agoYou 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.