Select URLs in PuTTY
2007-10-19 12:54 - Tech
The windows SSH program called PuTTY is, no questions asked, the best available. Every once in a while I see someone use another program to do SSH, and I wince.
However, there is one annoyance. PuTTY is nice enough to select a whole word on screen with a double click, but considers a colon punctuation. This means that double-clicking on a URL selects the whole thing, except for the http: on the front. A pain. Luckily, one that can be remedied!
I finally googled it today, to discover that the manual has a section on copy-paste operations, and it even links to the part about caracter classes, which is how you fix this! Long story short:
- Open the "Window -> Selection" section of a PuTTY session configuration.
- Scroll the "Character Classes" box therein down to the colon (comes just after the digits).
- Select it, type "2" in the "set to class" box and click "Set".
Save this new session setting, and wala! Double click gets the whole URL now. If you already have a bunch of saved sessions, find the PuTTY key in the registry, and for each session key in that, set the "Wordness32" value to "0,1,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1". This is the default setting plus the colon in class two.