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:
parent
c2fabd0259
commit
389845a79e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue