Is it possible to process/transform the output from
grep-like results, finding strings and/or patterns in files,
some other way) such that the search results
can be used as links (i.e., hyperlinks) to open an editor?
I want to click on a
grep result and open my editor at the selected line.
$ grep "mServiceIntent" -R ./src/ ./src/example/PhotoThumbnailFragment.java:67 private Intent mServiceIntent; ./src/example/PhotoThumbnailFragment.java:194 mServiceIntent = ./src/example/PhotoThumbnailFragment.java:203 getActivity().startService(mServiceIntent);
I know how to register protocols in the system to open the editor.
For example, all URLs like
sblm://* in my system open in Sublime Text.
My question is: how to create custom links in guake terminal
(or maybe it doesn't depend on quake and works for default terminal program)?
Note: the related(?) question, Is there a terminal app that allows filenames to be clickable?, is vague on specific implementation/solution details, and doesn't explicitly mention my requirement to jump directly to an identified line in the file.