Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

completion and globbing, part 2



It occurred to me that if the analysis in my last message was true,
the following would work:

zstyle ':completion:*' completer _oldlist _complete _qcomp _ignored
bindkey "^I" complete-word

where _qcomp is defined as follows:

   #autoload

   compstate[pattern_match]='*'
   compstate[insert]=all
   ret=1
   _complete && ret=0
   return ret

This does, in fact, give me exactly the behavior I'm looking for
without using _expand or _match.

(I also added _ignored, but that doesn't have anything to do with
this.)

--
E. Jay Berkenbilt (ejb@xxxxxx)  |  http://www.ql.org/q/



Messages sorted by: Reverse Date, Date, Thread, Author