dotfiles/fish/.config/fish/functions/rgc.fish

4 lines
347 B
Fish

function rgc --description 'Search within a file with ripgrep with context'
rg --color never -C 10 --context-separator="---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" $argv | nvim -R
end