dotfiles/fish/.config/fish/functions/rgc.fish
2022-03-28 17:10:31 +05:30

4 lines
345 B
Fish

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