Home Download Buy Blog Forum Support

Go to line on double click.

Go to line on double click.

Postby Echo on Wed Feb 06, 2013 3:02 am

Hey there,

Currently enjoying Sublime 2. I wrote a little plugin to automate some of the more complex build processes needed by nmake (MS2008 C/C++ compiler).
There's still a few more things to do, but right now I need the ability to process (double) mouse clicks on the text in the build console (at bottom aligned console generated by get_output_panel()).
Now I'm not sure if this is supposed to be handled by file_regex/line_regex or whatever (never could get that working) or if it isn't supported at all, but if someone could please enlighten me.

I tried a couple of things, like mousemaps that pass on information to the a python script, but detecting whether or not the user clicks in the actual build console/panel/pane/whatever is pretty impossible at the moment (weird active view/window return IDS, etc).
Finding documentation is even worse, the build panel itself seems to be relatively undocumented.

-Thanks
Echo
 
Posts: 4
Joined: Wed Feb 06, 2013 2:49 am

Re: Go to line on double click.

Postby adzenith on Wed Feb 06, 2013 9:44 pm

Yeah, you're supposed to use those regexes.
adzenith
 
Posts: 1217
Joined: Mon Oct 19, 2009 9:12 pm

Re: Go to line on double click.

Postby Echo on Wed Feb 06, 2013 10:49 pm

Well that's unfortunate for me, can't really get the regexes working :/
Lame that this functionality isn't exposed to the plugin system.

Thanks though!
Echo
 
Posts: 4
Joined: Wed Feb 06, 2013 2:49 am


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 6 guests