Skip to content

feature request: batgrep support for ripgrep's --hyperlink-format #129

@llimllib

Description

@llimllib

I made an attempt:

diff --git a/src/batgrep.sh b/src/batgrep.sh
index 1f02138..e521abe 100755
--- a/src/batgrep.sh
+++ b/src/batgrep.sh
@@ -247,6 +247,11 @@ while shiftopt; do
 		RG_ARGS+=("$OPT" "$OPT_VAL")
 		;;
 
+	--hyperlink-format*)
+		RG_ARGS+=("$OPT=$OPT_VAL")
+		;;
+
 	# bat options
 
 	# Script options

But the hyperlinks don't come through like I was hoping, and I got pretty stumped trying to figure out why.

clicking on a hyperlink to open the file at the spot where the match is is one of my favorite features of ripgrep, and I'd love to use it with batgrep.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions