Hacker News new | past | comments | ask | show | jobs | submit login

Yep, or CMD + left/right arrow. Option + left/right arrow goes back/forward one word. Hold down Shift doing these to select what you move over.



These shortcuts were my favourite thing about moving to a Mac.


in my experience, Cmd + left/right arrow behaves like a pgup/down. Goes to the very end of the page, not end of a single line


That's weird. Where do you mean? e.g. in a text editor? in HN comment text entry boxes?


OK I'm sorry I just went back to my Mac and found that my previous comment was incorrect, but the main problem (no way to select a line) still exist.

The issue happens on web (and on web based UIs such as Electron apps) outside of text input fields or textareas.

This is how to reproduce:

1. first we doble click on the first word of the line, to create a selection

2. At this point we expect that Cmd-shift-rightarrow will expand the selection to the rest of the line. But it doesn't because this key combination only works inside a text input or textarea. In every other desktop OS I can do shift-End at this point, and select the rest of the line.

3. option-shift arrow does work, but selects one word at a time so it is cumbersome to use

4. I had been told that I could use fn-shift-arrow in this case, but that selects all text until the end of the page (that's the one I was thinking about in my previous comment)

I just tried and reproduced the issue in Chrome and Safari.


> no way to select a line

Hmm yeah I never noticed that. Fastest way to select a line I know is: click at the start of the line, then Shift + down arrow.


Good one! It might select the first word of the next line in some cases, but it's easy to deselect it with the left arrow. Thank you!


It never selects the first word of next line for me.. Hmm anyway, while clicking at the start of the line, may as well just drag down to next line. :-)

Also, TIL that you can hold down CMD and drag over various words/letters on the screen, non-contiguous, then CMD-C copies them all to the clipboard. Must be handy for something!




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: