~gpanders/dotfiles

11c671c41c389291739f341ef0b0f8cd3961669e — Gregory Anders a month ago 1e3d13c
fish: use fzy instead of fzf for fuzzy finding
2 files changed, 5 insertions(+), 5 deletions(-)

R .config/fish/conf.d/{fzf.fish => fuzzy_find.fish}
M .config/fish/functions/fish_user_key_bindings.fish
R .config/fish/conf.d/fzf.fish => .config/fish/conf.d/fuzzy_find.fish +1 -5
@@ 1,4 1,4 @@
if status is-interactive; and command -sq fzf
if status is-interactive
    if command -sq fd
        set fuzzy_find_file_command 'fd --type f --follow'
        set fuzzy_find_dir_command 'fd -t d'


@@ 12,8 12,4 @@ if status is-interactive; and command -sq fzf

    set -gx FZF_DEFAULT_COMMAND $fuzzy_find_file_command
    set -gx FZF_DEFAULT_OPTS "--height=10 --reverse --no-info --no-color --cycle"

    bind \ct '__fuzzy_find fzf'
    bind \cr '__fuzzy_history fzf'
    bind \ec '__fuzzy_cd fzf'
end

M .config/fish/functions/fish_user_key_bindings.fish => .config/fish/functions/fish_user_key_bindings.fish +4 -0
@@ 1,4 1,8 @@
function fish_user_key_bindings
    bind \ef nextd-or-forward-word
    bind \eb prevd-or-backward-word

    bind \ct '__fuzzy_find fzy'
    bind \cr '__fuzzy_history fzy'
    bind \ec '__fuzzy_cd fzy'
end