Home Download Buy Blog Forum Support

Creating buffer with links

Creating buffer with links

Postby aparajita on Tue Jul 26, 2011 9:55 pm

I want to create a buffer with links to a file:line with a project, the way find results works. Can this be done through a plugin?
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: Creating buffer with links

Postby jps on Wed Jul 27, 2011 10:49 am

You can do this via the the result_file_regex and (optionall) result_line_regex settings. If they're present in a view, then double clicking will work, irrespective of it a view is in an output panel, or is a regular file.

IIRC they're only checked for when the view is switched to, that may be something to watch out for.

Take a look at exec.py for an example of assigning these settings.
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: Creating buffer with links

Postby jps on Wed Jul 27, 2011 1:23 pm

F4 etc should just work - the most recently activated view with the required regexes is nominated as the result buffer, and that's where F4 will look
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm


Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 8 guests