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

Ctrl-a, ctrl-e for beginning/end of line. Standard emacs keybindings work almost everywhere in OS X. But, you can also rebind the home/end keys - http://www.hcs.harvard.edu/~jrus/site/cocoa-text.html

Edit: On a Macbook Pro, home/end are fn-left/right-arrow and page-up/down are fn-up/down-arrow.



>>> Ctrl-a, ctrl-e for beginning/end of line.

Alternatively: Command+← and Command+→ .


Don't have the iMac anymore, but what made matters worse was that I switched Control and Command to make more of my shortcuts work. Command+C or Command+V isn't a very natural finger movement on the Mac keyboard I had. Ctrl+V fits much better and matched up many more (Windows) keyboard shortcuts.

But it made shortcut listings more confusing, because that would become Ctrl+← and Ctrl+→ (which I'm pretty sure I tried in Terminal but would always skip to the end of the command line, not the end of the screen line). The only keyboard shortcut that hurt after switching command and ctrl was in chrome. Chrome's History is Ctrl+H on windows, but Command-Y on mac, due to Command+H hiding the current window. That got me every time.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: