~gpanders/dotfiles

ref: 2da1dde5ea566f82ebe6532bc6d3b8670fd77ce8 dotfiles/fish/.config/fish/conf.d/fzf.fish -rw-r--r-- 495 bytes
2da1dde5Greg Anders Note 'open' subcommand opens editor in NOTES_DIR when no argument given 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
if command -sq fzf
    if command -sq fd
        set -gx FZF_FIND_FILE_COMMAND "fd --type f --hidden --follow --exclude .git"
        set -gx FZF_CD_COMMAND "fd -t d"
    else if command -sq rg
        set -gx FZF_FIND_FILE_COMMAND "rg --files --hidden --glob '!.git'"
    else if command -sq ag
        set -gx FZF_FIND_FILE_COMMAND "ag -g ''"
    end

    set -gx FZF_DEFAULT_COMMAND $FZF_FIND_FILE_COMMAND
    set -gx FZF_DEFAULT_OPTS "--height=10 --reverse --no-info --color=16 --cycle"
end