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

4 lines
347 B
Fish
Raw Normal View History

function rgc --description 'Search within a file with ripgrep with context'
2022-04-12 14:11:50 +02:00
rg --color never -C 10 --context-separator="---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------" $argv | nvim -R
end