fzf improvements

This commit is contained in:
Noah Masur
2022-06-20 15:49:25 -04:00
parent 6a47ffa024
commit 74e53a3cd1
6 changed files with 25 additions and 28 deletions

View File

@ -1,18 +1,20 @@
set vimfile (
set vimfile ( \
rg \
--color=always \
--line-number \
--no-heading \
--smart-case \
--iglob !/Library/** \
--iglob !/System/** \
--iglob "!/Library/**" \
--iglob "!/System/**" \
--iglob "!Users/$HOME/Library/*" \
".*" \
| fzf --ansi \
--height "80%" \
--color "hl:-1:underline,hl+:-1:underline:reverse" \
--delimiter : \
--preview 'bat --color=always {1} --highlight-line {2}' \
--preview-window 'up,60%,border-bottom,+{2}+3/3,~3'
)
and set vimfile (echo $vimfile | tr -d '\r')
and set vimfile (echo $vimfile | tr -d '\r' | cut -d':' -f1)
and commandline -r "vim $vimfile"
and commandline -f execute