rg --line-number --no-heading --color=always --smart-case "$@" | fzf -d ':' -n 2.. --ansi --no-sort --preview-window 'down:20%:+{2}' --preview 'bat --style=numbers --color=always --highlight-line {2} {1}'
I capture the output and then `cut` it up to get filename and line number, which then get used to open the file/line in vim
I capture the output and then `cut` it up to get filename and line number, which then get used to open the file/line in vim