Sublime Forum

Creating buffer with links

#1

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?

0 Likes

#2

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.

0 Likes

#3

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

0 Likes