Does anybody know if it's possible to bind the middle mouse button to an action in Sublime Text 2?
I know that some mouse interaction is possible, because you can use the back and forward buttons.
Basically, I was going to use this button to upload a file with the sFTP plugin so it would decrease the amount of buttons I would need to press from 3 to 1.
Currently, I have:
{ "keys": ["ctrl+shift+u"], "command": "sftp_upload_file" }
Ideally it would be something like this:
{ "keys": ["mouse4"], "command": "sftp_upload_file" }
You can look at the mouse mappings by opening Packages/Default/Default (operating system).sublime-mousemap
. You can then change what you want and save it in Packages/User
.
I figured it out thanks to @MattDMo pointer.
I created a file in
Packages\User\Default (Windows).sublime-mousemap
inside the file I placed
[
{ "button": "button3", "modifiers": [], "command": "sftp_upload_file" }
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With