Yes, I realize now that I, as they say, misunderstood my question. The obvious solution is of course to do the filtering within my completer function. I was thinking on the wrong level when it comes to how the zsh completion should be configured. Thanks for the tips.