fish: functions/rgc/rgf: Do not colourise ripgrep output
This allows us to drop having to run AnsiEsc.
This commit is contained in:
parent
9ebbd3640b
commit
77f28cf4ba
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue