You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
This would have to be something implemented on bat's end, unfortunately.
The main issue is that while batcan parse and re-emit hyperlinks correctly, it can't correctly perform syntax highlighting against source code with embedded escape sequences.
I would also need to update batgrep to read the escape sequences, and that would be both slow and not very practical.
That being said... If you want to open a feature request for adding hyperlinks to line numbers on bat's end, I could try implementing that at some point when I have free time.
I made an attempt:
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.
The text was updated successfully, but these errors were encountered: