Sublime Forum

Where can i find the keymap of "shift+right button"

#1

I want change the key of “shift+right button”(mouse button) to “alt+left button”. who can tell me how to do that?

0 Likes

#2

Take a look at the *.sublime-mousemap file in the Default folder. If you are using ST3, you can use github.com/skuroda/PackageResourceViewer (though it works with ST2 also). You will want to create the same named file in “Packages/User” with the appropriate content.

The following example is based on the windows mousemap file.


    {
        "button": "button1", "modifiers": "alt"],
        "press_command": "drag_select",
        "press_args": {"by": "columns"}
    }
]
0 Likes

#3

[quote=“skuroda”]Take a look at the *.sublime-mousemap file in the Default folder. If you are using ST3, you can use github.com/skuroda/PackageResourceViewer (though it works with ST2 also). You will want to create the same named file in “Packages/User” with the appropriate content.

The following example is based on the windows mousemap file.

[code]

{
    "button": "button1", "modifiers": "alt"],
    "press_command": "drag_select",
    "press_args": {"by": "columns"}
}

]
[/code][/quote]

thanks very much! It worked!

0 Likes