diff options
author | Yigit Sever | 2021-11-04 12:25:04 +0300 |
---|---|---|
committer | Yigit Sever | 2021-11-04 12:25:04 +0300 |
commit | a0bb023d782dd2d8703670d560b5ccd8d25d640e (patch) | |
tree | 1c11a649e2201e1458c4011894086f49da5ded15 /.local/bin/rfv | |
parent | 93cdb13eada4e803fb4db71fb581d9e4a03d2119 (diff) | |
download | dotfiles-a0bb023d782dd2d8703670d560b5ccd8d25d640e.tar.gz dotfiles-a0bb023d782dd2d8703670d560b5ccd8d25d640e.tar.bz2 dotfiles-a0bb023d782dd2d8703670d560b5ccd8d25d640e.zip |
bins: shfmt, weasel suite, spark
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]}" |