Home Download Buy Blog Forum Support

Plugin with double click on file name opens file?

Plugin with double click on file name opens file?

Postby shadowman131 on Wed Dec 12, 2012 11:56 pm

Hey, I'm working on a better build plugin at: https://github.com/sellerengine/sublime_context_build (sorry, but the built in build support is pretty weak for dynamic languages / testing).

What I'm looking to do is make filenames and line numbers double-clickable (like in "Find Results") to go to the file / line number specified. Any ideas how to go about this?

Thanks!
Walt
shadowman131
 
Posts: 4
Joined: Wed Dec 12, 2012 11:53 pm

Re: Plugin with double click on file name opens file?

Postby skuroda on Fri Dec 14, 2012 1:34 am

You can create a .sublime-mousemap file for your plugin ([url=https://github.com/robcowie/SublimeTODO]SublimeTODO[\url] uses it). I don't know that there is a way to create a context, as with keymaps, so be careful not to override default functionality.
skuroda
 
Posts: 687
Joined: Fri Oct 05, 2012 8:11 am

Re: Plugin with double click on file name opens file?

Postby shadowman131 on Fri Dec 14, 2012 4:37 am

I really do appreciate the response; it's a little sad that that's so restricting though. Better not to use it at all, given its limitations. I guess just a keybinding around the cursor will be the way to go...
shadowman131
 
Posts: 4
Joined: Wed Dec 12, 2012 11:53 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 6 guests