Sublime Forum

.sublime-mousemap

#1

Hi,

When you write a new mousemap, the old one is overwritten.

This lead to loss of functionality. For example SublimeCodeIntel adds the following map

{ 
"button": "button1",
 "modifiers": "alt"],
 "command": "goto_python_definition",
 "press_command": "drag_select" 
}]

And now I can’t deselect text using ALT, because overwrite this one:

{ "button": "button1", "count": 1, "modifiers": "alt"], "press_command": "drag_select", "press_args": {"subtractive": true} },

Is there some workaround to prevent this? Such adding some argument or something, then both commands are executed.

Regards,

0 Likes

#2

Did you ever figure out how to solve this problem?

0 Likes

#3

I’d say you have to choose what functionnality you want, and change (or disable) the other one

0 Likes

#4

This represents some progress w.r.t the issue at hand:

0 Likes

#5

I managed to achieve this by writing a small plugin, dealing with drag-selecting and clicking differently: https://github.com/zetavg/dotfiles/commit/125b2beb8bfcb7f42fdafa40b0172e4287ea04e5

0 Likes