Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Add some tips in `compadd` docs about groups
- X-seq: zsh-workers 53634
- From: RocketDev <ma2014119@xxxxxxxxxxx>
- To: dana <dana@xxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: Add some tips in `compadd` docs about groups
- Date: Mon, 19 May 2025 14:38:35 +0800
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Isrd/en6sFvNeWOWo12VTSaFpgqVScIZ8kc3PH/4QcU=; b=CFGzCCe0KxBSRyq0qzROTh9ySuKCP3bADezZUz668IufDcuwvEGLV5PKSgfd6WENxzyWbxTWoo04lY7zheTDtRF3MKOEy/VDLc/GtxKw2E53TzNaAygDJTL+4EPhPBeW+LmaJnrDzjZIPzdrQhV6yziOBVuasi7vn+QvpAf0dQkmZ73j43NbmKHXEQIufpUOBwnCUZ/ey32fSTpCqs3lr0HSvTsH3MWOK4sTossw9CVfmqg5Y+zIyNqnPAucVT1sWUTC3vYYkOUmsJDg7hc2Sivb4evj5nW2vt7Cqu1PWMT//S0CHasB8MRMryZWm0lB5IZ3xMO0MpSHS/eArXXfxw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZaB8NNOuyKVo19V5HUCJRKvdzwnF9Cwbe8CIflmO/ZaVeoSjmWrcPmjxzvtaFZBo04G6wQWrLEMXXh4S9EZ2xL6lROzFHIjSY19uhMAm6t8sDoTTT8S8iM6t8BSyVaeg3A3jtFhBOKaO5+A64lGmsL30BnXyA0TNWATbUy3V1ToadE4Ts6P7XgIge2ybOG58y4cD53LzWtI9IOHK8z24IS/jMqbDs1aY6RtcdOnk2GdCLOZLRYaLXZ5eBmp3gLmpPYYckJeqkwfBynL+RoloTvnfvO3tk/B/42PoSV/TYo3Zhd5+rnjjmyY/WyKMoGmeQsUBUs/rA+GutRf9/DctFg==
- Archived-at: <https://zsh.org/workers/53634>
- In-reply-to: <c41817d7-e416-4c1e-b96e-17c0e73c7773@app.fastmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <SY0P300MB091044FD11524D3E15CB04F7EE96A@SY0P300MB0910.AUSP300.PROD.OUTLOOK.COM> <c41817d7-e416-4c1e-b96e-17c0e73c7773@app.fastmail.com>
> 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