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

Re: [PATCH 1/1] Squashed commit of the following:

Doron Behar wrote:
> O.K, I used `ret` instead yet currently I don't see any use in this
> variable since I didn't structured the completion file with `return ret`
> at the end of any of the functions as I've seen in other completion
> functions I read.

You need something like it in the final function. You're calling
_arguments and ignoring the return status from it. This can break things
- approximate completion mostly.

It's only really that function where you need it.

> Jesus, using `zstyle` is complicated, I hope I'll master this skill one
> day..  Where can I find in the documentation more explanations about the
> relation between zstyle and completion functions?

It looks worse than it is. You can see the styles and contexts for a
particular completion by pressing Ctrl-X h instead of Tab. With a
numeric argument (Escape 1 for emacs mode) it provides more detail.


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