dotfiles/fish/.config/fish/functions/rfc.fish
Sanchayan Maity 389845a79e fish: functions/rfc: Enable preview support
RFC files are text files, using anything other than less like bat will
not add much value.
2022-01-10 14:23:49 +05:30

7 lines
205 B
Fish

function rfc --description 'Search for string in RFC documents and open'
if test -e ~/rfc
rg --files-with-matches $argv ~/rfc | fzf --preview='less {}' | read -l result
nvim -R $result
end
end