From 13044280037e693970683629374d1019b5598ac7 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 6 Mar 2015 10:42:38 +0900 Subject: [PATCH] Update bash completion *for* fzf --- fzf-completion.bash | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/fzf-completion.bash b/fzf-completion.bash index 6643ffe..e609d2b 100644 --- a/fzf-completion.bash +++ b/fzf-completion.bash @@ -14,17 +14,17 @@ _fzf_orig_completion_filter() { } _fzf_opts_completion() { - local cur prev opts + local cur opts COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" - prev="${COMP_WORDS[COMP_CWORD-1]}" opts=" -x --extended -e --extended-exact -i +i -n --nth -d --delimiter - -s --sort +s + +s --no-sort + --tac -m --multi --no-mouse +c --no-color @@ -36,14 +36,8 @@ _fzf_opts_completion() { -1 --select-1 -0 --exit-0 -f --filter - --print-query" - - case "${prev}" in - --sort|-s) - COMPREPLY=( $(compgen -W "$(seq 2000 1000 10000)" -- ${cur}) ) - return 0 - ;; - esac + --print-query + --sync" if [[ ${cur} =~ ^-|\+ ]]; then COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )