fish: functions/rfc: Enable preview support

RFC files are text files, using anything other than less like bat will
not add much value.
This commit is contained in:
Sanchayan Maity 2022-01-10 14:23:49 +05:30
parent c2fabd0259
commit 389845a79e
1 changed files with 1 additions and 1 deletions

View File

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