I can’t find anything more recent than Mousemap & File-Specific commands that talks about mousemap files and contexts, but can this please be added to Sublime Text 3 if not Sublime Text 2? There are two plugins that I use regularly (CscopeSublime and Git) and I’d really like to be able to to add double-click-to-navigate functionality to both of them. In fact, I’ve already added it to CscopeSublime and I tried adding it to the Git plugin today, but discovered that doing so broke the double-click functionality of CscopeSublime. I ended up having to back out the mousemap addition (github.com/dacap/sublime-text-2-git/pull/1), but this makes me very sad.
jps, can you please comment on this?
If mousemaps aren’t going to have context support, I’m thinking I might try my hand at making a generic SublimeTextDoubleClickHandler plugin that allows users to configure a list of contexts, view names, or something to limit scope and then a corresponding Command to execute, and then have my plugin try to do the right thing based on context or view name, and then if it can’t find the right context, just pass the double-click event back to the default plugin like this thread discusses: Can I make double click do normal behaviour + my own
But it would REALLY be great to be able to just have context support in mousemap files. At this point, it looks like users are only allowed to install a single plugin, other than the Default plugin, that handles double-click events. =:(