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:

  1. Open the "Window -> Selection" section of a PuTTY session configuration.
  2. Scroll the "Character Classes" box therein down to the colon (comes just after the digits).
  3. 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.


No comments!

Post a comment:

  If you do not have an account to log in to yet, register your own account. You will not enter any personal info and need not supply an email address.

You may use Markdown syntax in the comment, but no HTML. Hints:

If you are attempting to contact me, ask me a question, etc, please send me a message through the contact form rather than posting a comment here. Thank you. (If you post a comment anyway when it should be a message to me, I'll probably just delete your comment. I don't like clutter.)