21 Sep

Select an IPv6 address with a double-click in PuTTY

This ranks highly on the nerd-alert scale, but anyway, here we are.

Putty has a nice feature where you can select a word with a double click. It’s really handy, especially when you are dealing with IPv4 prefixes. It doesn’t work with IPv6 addresses by default. You can edit what Putty uses as a delimiter, under Settings -> Selection.

putty

Scroll down to ‘:’ (or whatever character you want to change the behaviour of!) and change its class from 1 to 2. If you save this as your default settings, from now on you can get a nice double click selection of IPv6 addresses.

More info on classes here.

One thought on “Select an IPv6 address with a double-click in PuTTY

  1. In addition, Niall D (http://ndonaghy.com/) came up with this quick batch script to automate the process of changing this feature on all PuTTY sessions stored on your machine:

    Create a batch file with the contents:

    @echo off
    reg query HKEY_CURRENT_USERSoftwareSimonTathamPuTTYSessions > sessions.txt
    for /F “tokens=*” %%A in (sessions.txt) do (
    echo “%%A – Updating…”
    reg add %%A /v Wordness32 /t Reg_Sz /d “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,2,1,1,1,1,1” /f
    echo “%%A – Done!”
    )
    echo “Done!”

    Run it:

    C:> runme.bat

    Rejoice!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.