From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11010 invoked from network); 5 Sep 2022 09:48:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Sep 2022 09:48:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1662371315; b=Y0JvCqcWH2zRiKlVjPwr9XgExUdhuXMbrxaOBJ98tBnTTHjwvUEzLBdVtElh0BPZv4N8+P/09S r/Mq/hGfHEqKizh5L/ioMjTl2Q8rBlk+zpsGX+KmID+8RLhEZqI1y5DsQfnecdj9YxeyGtH8JW gTOFOHmptIzI4XpslDf/O6q+ztf5suh6Mb/1vCAwuiM2K0ByZTt+jUmNQed6FmfFih8yuIucdN fL0g2+FlajTupMkiLZnGrkPba+zKZcWOz6c1A9Q3twZyktE2f6nfdIdiuT/msgwL+x/Pk5RXCY 4HxiO5gkHUfOKAhCSesLMXRmJOllknY80FnkUOB9/0GROw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1662371315; bh=G3oq9Kv9Z4U3atwMYzxlnzEAtxrT0n3kRPfN9BYeb1E=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=VvlZAOWgW4OspHizxsDFRzuTQal9qdaekHvmeOfkmYR4QYGOW1sjp45qUvZfyjvEmBO0BSI5kW SArYrOsX6Jg4PIjYp55t2a+kIxQy9tranJ5C9BNqJ3b1UsE74zr0ok/dn1YxcVK/5ix9zBqv2S VnKi2HXRTRYYW/kZXg/wUk/aIDa9tjIKAxLmIiXfvxXfzfBN7UguacAiSJ6eJdykQPamAIri6N FrjJFfCdporwDDCurHNSlsCgc7C4MKTTJdoErFWfjsc+c8ErbZP43DNez/J4n5XtREeZOnczh5 XWHQM9eBLkxUmh+OvSFbXG+JUQcbbMJG27+/INgODIrNKQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Wa9TTw6UlNNXWLTbbw1EoHf5ZlXVOL4nD0dMY0bzSmM=; b=TdgXbakWtK7yFJ78pLnswS/2xJ HherBopo37kv8dhIOEsYJsukh2poa+4Kq8wvMooQffDtz/+4a9AaKoa6eQinOMDQ8rCFgm5U95+/E mEkp5HQOjxHRNIFyU0Lv4j8MAJU9k050exicMWuLpS0mmrTYslpukjzO6mBVLGclD1gKc83FeEyC+ JLrUB713r+XXOfXln0SA2liHtvfgx2ir2CEufkO5de4IZR4k80FE5ekt4G+xsG48MvAU0IcRBzQk8 HiLjXVMSbBYgWu6glT6qhW6Iz6LyET5itwx95tZl1fzjekU5sG2UWkTlPAqxdVByh3DZz+SPjCHz+ EEnc7aBw==; Received: from authenticated user by zero.zsh.org with local id 1oV8iY-000EHa-Rf; Mon, 05 Sep 2022 09:48:34 +0000 Authentication-Results: zsh.org; iprev=pass (joooj.vinc17.net) smtp.remote-ip=155.133.131.76; dmarc=none header.from=vinc17.net; arc=none Received: from joooj.vinc17.net ([155.133.131.76]:60910) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oV8hb-000DaX-Sj; Mon, 05 Sep 2022 09:47:36 +0000 Received: from smtp-zira.vinc17.net (128.119.75.86.rev.sfr.net [86.75.119.128]) by joooj.vinc17.net (Postfix) with ESMTPSA id 8345A328; Mon, 5 Sep 2022 11:47:35 +0200 (CEST) Received: by zira.vinc17.org (Postfix, from userid 1000) id BD81D28001DE; Mon, 5 Sep 2022 11:47:34 +0200 (CEST) Date: Mon, 5 Sep 2022 11:47:34 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: Most minimal configuration challenge Message-ID: <20220905094734.GC255763@zira.vinc17.org> Mail-Followup-To: zsh-users@zsh.org References: <5141de6b-dbee-4d4b-3b74-d95a671fa04e@luffy.cx> <33d0bd1a-4da7-416d-a92a-04ceb07d1107@www.fastmail.com> <1c9b6072-26e7-467e-b8cc-7d44f15eaf1b@www.fastmail.com> <9116efd4-7c88-4ea3-9601-9c522236fee7@www.fastmail.com> <20220831092831.GA992100@zira.vinc17.org> <20220902092640.GJ5920@tarpaulin.shahaf.local2> <20220902144434.GG255755@cventin.lip.ens-lyon.fr> <20220904064224.GO5920@tarpaulin.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220904064224.GO5920@tarpaulin.shahaf.local2> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.7+37 (a90f69b9) vl-149028 (2022-09-02) X-Seq: 28046 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On 2022-09-04 06:42:24 +0000, Daniel Shahaf wrote: > Vincent Lefevre wrote on Fri, Sep 02, 2022 at 16:44:34 +0200: > > For instance, "zstyle -L" gives in particular: > > > > zstyle :urlglobber url-local-schema ftp file > > zstyle ':url-quote-magic:*' url-metas '*?[]^(|)~#{}=' > > > > but I can't find any explanation about why it should be ":urlglobber" > > and not something else. The man page looks similar for urlglobber and > > url-quote-magic, though they look different above. > > By convention, context patterns are of the form «:foo:…» where «foo» > identifies a particular library / module / plugin for namespacing > reasons. So, it says ":urlglobber" and not something else because > that's what the author of urlglobber named urlglobber. This is still unclear. The zshcontrib(1) man page says: zstyle :bracketed-paste-magic paste-finish \ quote-paste zstyle :bracketed-paste-magic:finish quote-style \ qqq But I don't see why ":bracketed-paste-magic" is used in the first line instead of ":bracketed-paste-magic:*". Moreover, I don't see where the context "finish" is described in the man pages. > > In the zshmodules(1) man page: > > > > For example, a fictional `weather' plugin might state in its > > documentation that it looks up the preferred-precipitation style > > under the `:weather:continent:day-of-the-week:phase-of-the-moon' > > context. According to this, you might set the following in your > > zshrc: > > > > zstyle ':weather:europe:*' preferred-precipitation rain > > zstyle ':weather:*:Sunday:*' preferred-precipitation snow > > > > So I would expect the translator to mention "continent", > > "day-of-the-week" and "phase-of-the-moon" in its output. > > The zstyle completion actually does this; try completing > «zstyle :vcs_info:» or «zstyle :completion:». zstyle :vcs_info: just gives Completing `context pattern' or `vcs' This is not very informative. This is different from the man page, which says "vcs-string". zstyle :bracketed-paste-magic: is even less informative: Completing `context pattern' With "ls -", I get a list of possible options together with a short explanation. I would expect something like that with "zstyle :completion:" rather than just a list of the possible completions. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)