From 389845a79e409a4329694ec6fb90ebf9daf6dc7a Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Mon, 10 Jan 2022 14:23:49 +0530 Subject: [PATCH] fish: functions/rfc: Enable preview support RFC files are text files, using anything other than less like bat will not add much value. --- fish/.config/fish/functions/rfc.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish/.config/fish/functions/rfc.fish b/fish/.config/fish/functions/rfc.fish index fd741b5..3628ab3 100644 --- a/fish/.config/fish/functions/rfc.fish +++ b/fish/.config/fish/functions/rfc.fish @@ -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