2021-12-10 11:09:44 +01:00
|
|
|
function rfc --description 'Search for string in RFC documents and open'
|
|
|
|
if test -e ~/rfc
|
2022-01-10 09:53:49 +01:00
|
|
|
rg --files-with-matches $argv ~/rfc | fzf --preview='less {}' | read -l result
|
2021-12-10 11:09:44 +01:00
|
|
|
nvim -R $result
|
|
|
|
end
|
|
|
|
end
|