dotfiles/config/.scripts/rgfs.sh

9 lines
402 B
Bash
Raw Permalink Normal View History

2024-09-06 00:14:30 +01:00
(RELOAD='reload:rg -uu --color=always --line-number --no-heading --smart-case {q} || :'
fzf-tmux --cycle -p 80%,90% < /dev/null \
--disabled --ansi \
--bind "start:$RELOAD" --bind "change:$RELOAD" \
--bind "enter:become(echo '{1}' '{2}')" \
--delimiter : \
--preview-window 'right,55%,+{2}+3/3,~3' \
--preview "bat --theme='base16-256' --color=always {1} --highlight-line {2}")