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 21662 invoked from network); 2 Sep 2022 14:45:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Sep 2022 14:45:20 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1662129920; b=Sxq1o9LHUE2dx9oUbxf3CTCUyQEFpMxuT7o0vLJ5RJ+gK8GyRVKrvld6acfLoGAsHvXuZ56xpp DUCVpm/ri2/u1K1lfxLrG5WvzOvEv8BLF6APyC71OEKUdbRrFNm8s/H/0B1ku6pSQpsoVNElyv Hf/G+MBEPgHVyUzpw/fF4ufOtCjzKr2Zh01QJIn6zwqF0mdwwucwVSTdJLgBbIwTgjwLwikqiv jruA0sFNTM/UWfJaLn7AEQ9mB8aUksl1RlqVH4NbMfngwMu1XbrvB4ocbJ8PuR9rWyzeXsIGP1 tjGoyIn8Yjt94SIdi84y+Ts2mq6aLzTfZVVsfoiHor5LDA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; 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=1662129920; bh=xaVaDZOFE+1OHHkNfNrEx3eWSy3i8acPH9PZ4P3+9Qw=; 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=ZsLsTBHyIiV7HKnbQsXIJUzt3M7jtZnmyS8XV7xThXRO8UxxUa20g/MJXX6Oltpx0Z0tp5KMk2 Up4JLjYAHjOtEIQmkHSWgznNQ5fwCBU+ACabV3ghA0hnWK8iSeqBvyymQTDf8K7JvFl5tLNnBe k7g0rvoi/T9LVTFvwdDKNqtNJYQZd+cp59DFKd9TgxOgSrQUxrdqf2cXeav+h36zJFbyCXJihn yy0PflVDgp5SLf1U8YoBzqGPoaLVVdH9ZdCg7sV0v3HP6//dJcCovfXfmmCtaKUR61yANFnioV KBlFWFE1Z1CKWob6E5OpVPlBr32cC673vYoXayuJxiP7Ng==; 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=GVRz7aVCW5g8qtfE0XYxYHx84bit0nIsWeiCcigr1iY=; b=bI7NKuvjyg7opWed40p83fbZl/ DOuEJjpiCkMgZyhe76nXOPPlPH98bdyttTMCWAxflH6kojtLfIudTSI60pDMlsM95R1YHlT3ba3cr 7UCFcMm83hNC1dV0OVgBZuL6KAPMJROTT3dJBkjXzLdT/nxp/X8B1LOsQOZdFZ3CqC9LxqD7gvt+G +eBOfGELeX3F+bLvGelAPZVxVSQlV2H0Vl2n7g+50LutxlaFedqXMad8QxcaJFCX/EHkOhD61eTS7 afG2Yo0+riWfkMGWEw4Lpy208TzezCddCBaNptSFBeGg/cMiyc0wWVOv3Oexpfg0HQsf3UkUMvcaK 4HoKqVAg==; Received: from authenticated user by zero.zsh.org with local id 1oU7v5-000MK1-5o; Fri, 02 Sep 2022 14:45:19 +0000 Authentication-Results: zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:45756) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oU7uN-000Lc2-2t; Fri, 02 Sep 2022 14:44:35 +0000 Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.96) (envelope-from ) id 1oU7uM-0018My-2S; Fri, 02 Sep 2022 16:44:34 +0200 Date: Fri, 2 Sep 2022 16:44:34 +0200 From: Vincent Lefevre To: zsh-users@zsh.org Subject: Re: Most minimal configuration challenge Message-ID: <20220902144434.GG255755@cventin.lip.ens-lyon.fr> Mail-Followup-To: zsh-users@zsh.org References: <0e8bc96d-17a7-4be2-afab-7a0fd827866f@www.fastmail.com> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220902092640.GJ5920@tarpaulin.shahaf.local2> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.7+30 (1fccbbf8) vl-149028 (2022-08-07) X-Seq: 28037 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-02 09:26:40 +0000, Daniel Shahaf wrote: > Vincent Lefevre wrote on Wed, Aug 31, 2022 at 11:28:31 +0200: > > On 2022-08-28 18:29:27 +0000, Daniel Shahaf wrote: > > > zstyle has been explained multiple times in the past so you might want > > > to look those up and ask about parts that are unclear to you. > > > > > > In short, «zstyle ':foo:bar:*:baz' key v1 v2» translates as "When > > > library foo asks for the value of key in a situation of the form > > > bar:*:baz, tell it the answer is «v1 v2»". > > > > Perhaps there should be a zsh function that translates a zstyle line > > to plain English. :-) > > What do you have in mind, exactly? It'd be pretty easy to write > something that, say, runs «zstyle -L» and applies the sh-to-English > mechanical transformation I did above. That's just a compiler… The above is not very helpful for the end user. 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. 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. Moreover, for ':completion:*', it is difficult to find the associated documentation, because if one searches for "completion" in the zshall man page, one gets too many matches. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)