Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On my old Dell xps 14 laptop, the function button was close to the arrow keys, making it very convenient to use one-handed. I actually preferred it to a separate home button, because, in a text box, I often want to jump to the start/end of a line and then move a word or two inward -- do-able using control+arrows. It was almost as good as vim, although of course I had to take my hand off the home row.


Imagine vim editing across all text fields in an OS. Would be glorious.


macOS has a lot of baked in emacs keybindings that work almost universally in text fields.

Control-A: Move to the beginning of the line or paragraph.

Control-E: Move to the end of a line or paragraph.

Control-F: Move one character forward.

Control-B: Move one character backward.

Control-L: Center the cursor or selection in the visible area.

Control-P: Move up one line.

Control-N: Move down one line.

Control-O: Insert a new line after the insertion point.

Control-T: Swap the character behind the insertion point with the character in front of the insertion point.


"Almost universally" even includes Electron apps, surprisingly!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: