summaryrefslogtreecommitdiff
path: root/plugin/fzf.vim
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-10-05 19:34:38 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-10-05 19:34:38 +0900
commiteee45a9578042c70353d83267e67b442afa13b4c (patch)
tree21bac559400c7282320d5650b292013c1ac70b09 /plugin/fzf.vim
parent659f49a09a0e77efb60f4adcb092575c8aa58d87 (diff)
downloadfzf-eee45a9578042c70353d83267e67b442afa13b4c.tar.gz
[completion] Revamp completion API
* _fzf_complete is the helper function for custom completion * _fzf_complete FZF_OPTS ARGS * Reads the output of the source command instead of the command string * In zsh, you can use pipe to feed the data into the function, but it's not possible in bash as by doing so COMPREPLY is set from the subshell and thus nullified * Change the naming convention for consistency: * _fzf_complete_COMMAND e.g. # pass completion suggested by @d4ndo (#362) _fzf_complete_pass() { _fzf_complete '+m' "$@" < <( local pwdir=${PASSWORD_STORE_DIR-~/.password-store/} local stringsize="${#pwdir}" find "$pwdir" -name "*.gpg" -print | cut -c "$((stringsize + 1))"- | sed -e 's/\(.*\)\.gpg/\1/' ) } # Only in bash complete -F _fzf_complete_pass -o default -o bashdefault pass
Diffstat (limited to 'plugin/fzf.vim')
0 files changed, 0 insertions, 0 deletions