From a0bb023d782dd2d8703670d560b5ccd8d25d640e Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 4 Nov 2021 12:25:04 +0300 Subject: bins: shfmt, weasel suite, spark --- .local/bin/rfv | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.local/bin/rfv') diff --git a/.local/bin/rfv b/.local/bin/rfv index 4c9a632..a178e67 100755 --- a/.local/bin/rfv +++ b/.local/bin/rfv @@ -4,11 +4,11 @@ # 2. Interactively narrow down the list using fzf # 3. Open the file in Vim IFS=: read -ra selected < <( - rg --color=always --line-number --no-heading --smart-case "${*:-}" | - fzf --ansi \ - --color "hl:-1:underline,hl+:-1:underline:reverse" \ - --delimiter : \ - --preview 'bat --color=always {1} --highlight-line {2}' \ - --preview-window='up:60%:+{2}+3/3:~3' + rg --color=always --line-number --no-heading --smart-case "${*:-}" \ + | fzf --ansi \ + --color "hl:-1:underline,hl+:-1:underline:reverse" \ + --delimiter : \ + --preview 'bat --color=always {1} --highlight-line {2}' \ + --preview-window='up:60%:+{2}+3/3:~3' ) [ -n "${selected[0]}" ] && nvim "${selected[0]}" "+${selected[1]}" -- cgit v1.2.3-70-g09d2