-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Highlighting doesn't work with ripgrep 0.5.1 #20
Comments
Same issue with ripgrep 0.5.1. The workaround works for me. |
Sure, I'll create a PR if @nlamirault provides a feedback. |
Any update for the PR? |
@vlevit sure create a PR i will merge it. i'm on holiday :) |
Thanks! I think the issue can be closed if someone can confirm the change is working. |
This fix does not work for me. I still have this issue. Emacs version: GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.28) of 2018-03-09 (use-package ripgrep
:ensure t
:ensure-system-package (rg . "cargo install ripgrep")
:defer t
:bind (:map ripgrep-prefix ("r" . ripgrep-regexp))
:init
(add-to-list 'ripgrep-arguments "--color=auto")
(add-to-list 'display-buffer-alist
'("^\\*ripgrep-search\\*" (display-buffer-below-selected)))
) |
It works for me. My config is below (use-package rg
:init
(add-hook 'after-init-hook #'rg-enable-default-bindings)
(if (fboundp 'wgrep-ag-setup)
(add-hook 'rg-mode-hook #'wgrep-ag-setup))
:config
(setq rg-custom-type-aliases nil)
(setq rg-group-result t)
(setq rg-show-columns t)) |
@seagle0128 They are two different packages, |
After testing |
@stardiviner Sorry. It's different. |
For me highlighting in ripgrep.el is not working with ripgrep 0.5.1 (I haven't tried significantly older versions) but I'm not sure what is the actual reason: if it's environment or ripgrep, but it might be the latter as it seems upstream ripgrep was introducing incompatible changes related to color handling.
I made ripgrep.el work with colors on my machine with the following changes:
configuration:
ripgrep-filter in ripgrep.el
I wonder if anyone has a similar issue?
Relying on colors escape sequences seems very fragile. There is a discussion on providing machine-parseable matching results in ripgrep: BurntSushi/ripgrep/issues/244
The text was updated successfully, but these errors were encountered: