diff options
Diffstat (limited to '.local/bin/rfv')
-rwxr-xr-x | .local/bin/rfv | 12 |
1 files changed, 6 insertions, 6 deletions
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 @@ | |||
4 | # 2. Interactively narrow down the list using fzf | 4 | # 2. Interactively narrow down the list using fzf |
5 | # 3. Open the file in Vim | 5 | # 3. Open the file in Vim |
6 | IFS=: read -ra selected < <( | 6 | IFS=: read -ra selected < <( |
7 | rg --color=always --line-number --no-heading --smart-case "${*:-}" | | 7 | rg --color=always --line-number --no-heading --smart-case "${*:-}" \ |
8 | fzf --ansi \ | 8 | | fzf --ansi \ |
9 | --color "hl:-1:underline,hl+:-1:underline:reverse" \ | 9 | --color "hl:-1:underline,hl+:-1:underline:reverse" \ |
10 | --delimiter : \ | 10 | --delimiter : \ |
11 | --preview 'bat --color=always {1} --highlight-line {2}' \ | 11 | --preview 'bat --color=always {1} --highlight-line {2}' \ |
12 | --preview-window='up:60%:+{2}+3/3:~3' | 12 | --preview-window='up:60%:+{2}+3/3:~3' |
13 | ) | 13 | ) |
14 | [ -n "${selected[0]}" ] && nvim "${selected[0]}" "+${selected[1]}" | 14 | [ -n "${selected[0]}" ] && nvim "${selected[0]}" "+${selected[1]}" |