Hacker News new | ask | show | jobs
by yrro 972 days ago
Double-clicking foo-bar_baz in GNOME Terminal selects the entire string. Anyway, this is something that is user-configurable surely?
3 comments

Very few apps are that user friendly, besides your terminal isn't either since whether you want to select the entire string or not depends on its type
It is in many terminals (I think it is in gnome-terminal) but not in major browsers and a lot of other software.
In XTerm it only selects the entire string with this in `~/.Xdefaults`:

  UXTerm*charClass: 33:48,36-47:48,58-59:48,61:48,63-64:48,95:48,126:48
There is also `UXTerm*on2Clicks` and `UXTerm*on3Clicks`.

FWIW, browser only selects either `foo` or `bar_baz`, but not the whole `foo-bar_baz`.