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

Re: Add some tips in `compadd` docs about groups



> normally you shouldn't use compadd by itself like that. it's very
> low-level so if you call it directly you have to manually work out all
> of the useful things completion functions are supposed to do. you almost
> always want to call it via a helper function or pass it options that
> were produced by one

Yes, I know that, and would like to use such a wrapper function. However, soon 
I found that there was no such a function perfectly matches my requirement. 
Looking for similar task, I found `_pids` is what I need, so I refer to it and 
wrote down my version to complete pids with raw `compadd`. As for why I don't 
wrap it up? I just use it once in my script and I think it's not necessary.

If you think it's necessary to add a new wrapper function for zsh itself, pls 
reply to me. (_nonkernel_pids? _custom?)

> the documentation could be clearer but i thought the wording used in the
> pr wasn't as precise as it could be. what about this

The patch looks great! Neat and clear.

Sincerely,
RocketDev

* refer to first mail for pubkey

Attachment: signature.asc
Description: This is a digitally signed message part.



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