fish: functions/rgc/rgf: Do not colourise ripgrep output

This allows us to drop having to run AnsiEsc.
This commit is contained in:
Sanchayan Maity 2022-03-28 17:10:31 +05:30
parent 9ebbd3640b
commit 77f28cf4ba
2 changed files with 2 additions and 2 deletions

View File

@ -1,3 +1,3 @@
function rgc --description 'Search within a file with ripgrep with context'
rg --color always -C 10 --context-separator="---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" $argv | nvim -R +AnsiEsc
rg --color never -C 10 --context-separator="---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" $argv | nvim -R
end

View File

@ -1,3 +1,3 @@
function rgf --description 'Search within a file with ripgrep'
rg --color always $argv | nvim -R +AnsiEsc
rg --color never $argv | nvim -R
end