I’ve seen that there’s no scope selector option for mousemap commands, however is it possible to add commands just for a particular file type?
Essentially what I’m trying to do is something similar to how the output from Find In Files is able to open a file by double-clicking on the output. Obviously, I don’t want to change the double-click behaviour for all files.
Or, am I going about this the wrong way? The only place where I need these special commands would be in a scratch view which I’m already setting up in a different command. Is it possible to add event listeners there to achieve what I’m after?