Configuration for my NixOS based systems and Home Manager
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ADD frv command, from fzf wiki

+20
+20
fish/functions/rfv.fish
··· 1 + # ripgrep->fzf->nvim [QUERY] 2 + # Ripped from: https://junegunn.github.io/fzf/tips/ripgrep-integration/ 3 + function rfv 4 + set -lx RELOAD 'reload:rg --column --color=always --smart-case {q} || :' 5 + set -lx OPENER 'if [[ $FZF_SELECT_COUNT -eq 0 ]]; then 6 + nvim {1} +{2} # No selection. Open the current line in Vim. 7 + else 8 + nvim +cw -q {+f} # Build quickfix list for the selected items. 9 + fi' 10 + fzf < /dev/null \ 11 + --disabled --ansi --multi \ 12 + --bind "start:$RELOAD" --bind "change:$RELOAD" \ 13 + --bind "enter:become:$OPENER" \ 14 + --bind "ctrl-o:execute:$OPENER" \ 15 + --bind 'alt-a:select-all,alt-d:deselect-all,ctrl-/:toggle-preview' \ 16 + --delimiter : \ 17 + --preview 'bat --style=full --color=always --highlight-line {2} {1}' \ 18 + --preview-window '~4,+{2}+4/3,<80(up)' \ 19 + --query "$argv" 20 + end