Hi,
find in files creates a new view with the results from the search. When I doule-click on a search result, ST opens the file at that location. How can I implement something like that in a plugin? Below is an example using the output panel. It create the panel and inserts the string “click me!”. How can I manage that double clicking on the text opens a different file on a specific location?
Thanks!
window = sublime.active_window()
s = "click me!"
output = window.create_output_panel("test")
output.run_command('erase_view')
output.run_command('append', {'characters': s})
window.run_command("show_panel", {"panel": "output. test"})