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

Double-clicking on text selects the whole word.

Double-clicking and dragging selects text word-by-word.

Triple-clicking selects the whole paragraph.

Middle-clicking a link opens it in a new tab.

Middle-clicking a tab closes it.

Middle-clicking in general often has useful functionality!



Shift+Arrow keys can be used to select text as you navigate through it

Ctrl+Arrow keys navigates through whole words at a time

Ctrl+Shift+Arrow keys can be combined to select whole words

Ctrl+Backspace can be used to delete whole words


Oh, and most code editors I'm aware of will switch out the whole-word functionality of Ctrl/Double-click with whole-syntax-element, if that's more your thing


And X11 on Linux (if you're not using Wayland) supports middle-click emulation, where pressing the left and right mouse buttons simultaneously (debounced to within a couple milliseconds) will be interpreted as a middle-click.

I may or may not use this with my laptop dozens of times a day (it's how I copy/paste out of xterm).

(Fun bit of trivia, my old EliteBook 8470p has a trackpad+trackpoint setup with two independent sets of buttons, and while I don't seem to be able to middle-click with the trackpoint buttons, I can send a middle-click by pressing both trackpad buttons, keep them held down, and then independently send left and right clicks (press-release) using the trackpoint buttons as much as I want. I somehow doubt that was an accident. Engineering archaeology is fun :D)


When holding the last click of the sequence multiple words/paragraphs can be selected. In some editors quad-click selects all.

In code-editors tripple selects a line (hold to select multiple). When moving/deleting lines this is much more semantically clean (and faster) than manually dragging from the previous line's line end to the next lines last character before the line end.


> When holding the last click of the sequence multiple words/paragraphs can be selected.

When I wrote about the double-click-drag thing, I thought triple-click-drag might logically also be a thing, but it doesn't work for me. (Firefox, KDE, Linux)


In Emacs, right click adjusts the closest side of the selection, and double right-click cuts that region. (And it obeys the mode of selection if you started with a double- or triple-left-click.) Double-left click also selects s-expressions.


> Middle-clicking a tab closes it.

Ahh I used a Magic Mouse and trackpad for so long I forgot about this. It makes me a little sad. On the other hand panning and gestures are worth the loss.


Double-clicking the title bar of a window toggles between sized-window and full-size-window mode


Triple-clicking and dragging selects text paragraph-by-paragraph.




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

Search: