-
Notifications
You must be signed in to change notification settings - Fork 41
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
Q: Hide command in *rg* buffer #25
Comments
Thanks for the report. The command line comes from (add-hook 'rg-mode-hook 'wgrep-ag-setup) |
You need to install |
Thanks for your response. As you point out that this is a wgrep issue I dig in their docs and found that when you enter wgrep mode there is a keybinding C-c C-p that toggles read-only mode that fixes this problem: wgrep.el#L545 Closing the issue Cheers |
This solution is essentially copied from emacs grep.el The possibility to hide command line is always on but the default behavior is controlled by rg-hide-command defcustom. Related to #25
Hello I have a question
Is there a way to hide the command that is run with ripgrep. I mean this:
rg --color always --colors match:fg:red -n --type js --fixed-strings --no-heading --type-add gn:*.gn --type-add gn:*.gni --type-add gyp:*.gyp --type-add gyp:*.gypi -e someTestString .
The problem is that if you search with rg.el then if you want to replace the searched string with wgrep the replace will match the someTestString from the command and it will prevent the replacing with Text is read-only.
Before replacing:
After replacing - Text is read-only
The text was updated successfully, but these errors were encountered: