From unknown Sat Jun 14 18:51:31 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#62639 <62639@debbugs.gnu.org> To: bug#62639 <62639@debbugs.gnu.org> Subject: Status: RFE: Option to print file paths as hyperlinks Reply-To: bug#62639 <62639@debbugs.gnu.org> Date: Sun, 15 Jun 2025 01:51:31 +0000 retitle 62639 RFE: Option to print file paths as hyperlinks reassign 62639 grep submitter 62639 Nelson Ben=C3=ADtez Le=C3=B3n severity 62639 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 03 01:36:42 2023 Received: (at submit) by debbugs.gnu.org; 3 Apr 2023 05:36:43 +0000 Received: from localhost ([127.0.0.1]:43125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjCry-000124-H3 for submit@debbugs.gnu.org; Mon, 03 Apr 2023 01:36:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:49858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pjA6b-00047q-HH for submit@debbugs.gnu.org; Sun, 02 Apr 2023 22:39:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pjA6b-0004ih-8E for bug-grep@gnu.org; Sun, 02 Apr 2023 22:39:37 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pjA6Z-00075q-D0 for bug-grep@gnu.org; Sun, 02 Apr 2023 22:39:36 -0400 Received: by mail-pf1-x434.google.com with SMTP id l14so18083373pfc.11 for ; Sun, 02 Apr 2023 19:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680489573; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=QLNRihzBybGdDkXr6ww7BQ+HXy3gczDbX9i9yfgs84U=; b=asRZTa2eKAXHSYD1YNjSq1QOOev4nLNWhlzr8Bo6H0u3P0gCEgHbOtLXGbr438g19e 2SZl0LHIsrCLW9btGL3+NsqZXSGl7NLsj0J0H34PZUDQ17/zIDSE7o3mOkrg1YvjrXbC Vtztw14dmTUYb8vXZ/UUg3MVB4KoiJh+12WxzuaOAvp39qOU91FhQuR/eeh7+7oDb3LH zoR1nuVkZb0bwQ1V0bI/5GTqlOP0A0bZ6Hi0TZ6VI6r3KFI660Gr1DAa79MPNqJAEyX1 R+iCzn3y7pgC/qsmt4yKxM/r8nsm+3w3GYzLytDwYKCwj+3TjZDiAMKe+A8ErUbKF6oD QeqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680489573; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=QLNRihzBybGdDkXr6ww7BQ+HXy3gczDbX9i9yfgs84U=; b=LEsj/Eb5Vk3fEwxdhnhjXb0Pd94gMONHiAXgWBEwX9b4VnY0HItiCArwlzyI3CJxZt jMlX0goabWMZLp0tkmJ858f2sI+XF1rq1mSWaofHhptI4sN4xcU0f4WgtGeOZgn/OY0W fEzjfAwItUsNxEONaIoIawgKP9Q/foA1gxthxkfKo5QGvh0mODp7jpfesBITSMcwKB99 h8A/+c5TayHCeJ8OEf5WuycftxKILfcudd0DcrciQRpYaXYSGEjvrj9tLLcPQJOZ8gfr yMosO+eCzrixz6Q7EeTDYP0uSSIkGyPkzDxHbq/YSfvHYSrjNKuYRMtADRRYb5oaeozg ygfQ== X-Gm-Message-State: AAQBX9ceDKPojD62yrEg7DnuWS7VhjrDXvQJVKVvn+79JHgMfk94Qvs6 WBzyNgTwDyYaQk7or7YixzsKNy6mvLSAM2nbrVy4OAJBjWkHMA== X-Google-Smtp-Source: AKy350ZlYg+6NMY1bxrHkRZ5bPd6WdQSKHrZG1i9/NZwdBr28VJrue9wH/+TFLX9+wMh4s7YBfDyfHFzJlZTu2HEaXk= X-Received: by 2002:a05:6a00:986:b0:627:2973:b118 with SMTP id u6-20020a056a00098600b006272973b118mr17558576pfg.1.1680489572920; Sun, 02 Apr 2023 19:39:32 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?TmVsc29uIEJlbsOtdGV6IExlw7Nu?= Date: Sun, 2 Apr 2023 22:38:49 -0400 Message-ID: Subject: RFE: Option to print file paths as hyperlinks To: bug-grep@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=nbenitezl@gmail.com; helo=mail-pf1-x434.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 03 Apr 2023 01:36:36 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Most terminals have landed support for hyperlinks: https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda 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 system). [1] https://code.visualstudio.com/docs/editor/command-line#_opening-vs-code-with-urls Regards,