[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62639: RFE: Option to print file paths as hyperlinks

From: Nelson Benítez León
Subject: bug#62639: RFE: Option to print file paths as hyperlinks
Date: Sun, 2 Apr 2023 22:38:49 -0400

Most terminals have landed support for hyperlinks:

It would be nice if GNU Grep added an option for that so it could
print file paths as hyperlinks, that way the user could eg. configure
it such that clicking on a match would open text editor for such file
and at the giving line number.

For example, VS Code now provides an URL handler[1] for that, so if
GNU grep provided a '--hyperlink-format' option, it could be used as
easy as:
--hyperlink-format 'vscode://file/{file}:{line}'

and that way we could launch our GNU grep matches directly in VS Code
(or any other editor by configuring the file:// handler in our



reply via email to

[Prev in Thread] Current Thread [Next in Thread]