News for hackers. Stuff that matters.
Re:Ask HN: What feature did you find after years of using ma... by Solstinox on Saturday August 08, 2020 @10:47AM (#24091967)
Double click text to select a word. Triple click text to select the whole paragraph.

For decades I assumed that there’s some weird fluky behavior when trying to select a word and accidentally selecting the paragraph.

Re:Ask HN: What feature did you find after years of using ma... by danthewireman on Saturday August 08, 2020 @11:04AM (#24092129)
You can also double click a word, keep the mouse button down, and drag. This will select whole words. I use this a lot.
Re:Ask HN: What feature did you find after years of using ma... by Solstinox on Saturday August 08, 2020 @11:14AM (#24092249)
I didn’t know that either, thank you! It works with triple-click paragraphs too.
Re:Ask HN: What feature did you find after years of using ma... by tksb on Saturday August 08, 2020 @01:53PM (#24093639)
Along the same lines for text navigation and manipulation:

opt + [arrow keys]: To move through text respecting word boundaries.

cmd + [arrow keys]: To move through text respecting line boundaries.

Add shift to either of those and now instead of navigating, you're selecting the text.

opt + delete: deletes full word behind cursor

cmd + delete: deletes full line behind cursor

Re:Ask HN: What feature did you find after years of using ma... by tonmoy on Saturday August 08, 2020 @10:57AM (#24092067)
This is same in Windows and Linux as well
Re:Ask HN: What feature did you find after years of using ma... by ffpip on Saturday August 08, 2020 @10:59AM (#24092092)
This feature is present everywhere.

Windows, Android, all browsers I use, inside apps, etc