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
Emacs seems to be matching a particular ANSI pattern in grep.el to be able to jump directly to the match in a line, using the pattern "\033\\[0?1;31m\\(.*?\\)\033\\[[0-9]*m". This works for GNU grep which styles the match using "\x1b[01;31m", but not for rg which styles the match using "\x1b[31m\x1b[1m".
Note: As a workaround, I wrapped rg with a script:
#!/bin/sh
rg --color ansi -nH --no-heading "$@"| sed 's/\o033\[31m\o033\[1m/\o033[1;31m/g'
The text was updated successfully, but these errors were encountered:
Emacs seems to be matching a particular ANSI pattern in
grep.el
to be able to jump directly to the match in a line, using the pattern"\033\\[0?1;31m\\(.*?\\)\033\\[[0-9]*m"
. This works for GNU grep which styles the match using"\x1b[01;31m"
, but not for rg which styles the match using"\x1b[31m\x1b[1m"
.Note: As a workaround, I wrapped rg with a script:
The text was updated successfully, but these errors were encountered: