Open tmpm697 opened 4 years ago
You might want to take a look at some examples in https://github.com/junegunn/fzf/wiki/Examples-(completion)#examples
@junegunn : thanks for quick reply, does that $cmd
same for @ARGS
, I'm not quite certain.
@junegunn I followed the examples and did some tweaks, I can set j get nodes <tab>
to get completion list but it will not be in a fuzzy
list to search and select.
I want a fuzzy
after _fzf_complete "--reverse -n 1 --height=80%" "$@" < <(
, howto?
man fzf
)Info
Problem / Steps to reproduce
I've notices this line in zsh autocompletion https://github.com/junegunn/fzf/blob/85644aa3fb9da6fbe1807b793f085130932594ce/shell/completion.zsh#L169
What if I have a command that has sub-command follow it, how to pass it to zsh completion, for e.g:
if [ $cmd = j get nodes ${LBUFFER[-1]} = ' ' ]; then
thatj get nodes
is a sub-command ofj
. Completion won't work with this command, it only works if I specifyj
only.How to have it work with sub-commands
j get nodes
?