From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 71321408 for ; Fri, 3 Jan 2020 22:27:33 +0000 (UTC) Received: (qmail 8570 invoked by alias); 3 Jan 2020 22:27:28 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45220 Received: (qmail 16288 invoked by uid 1010); 3 Jan 2020 22:27:28 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f170.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25677. spamassassin: 3.4.2. Clear:RC:0(209.85.208.170):SA:0(-1.9/5.0):. Processed in 4.013766 secs); 03 Jan 2020 22:27:28 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.208.170 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=QL7fNCCdjo5h/l8yUjAGrlHZbt488/4bfX74KLunrWM=; b=m1I5UXjNK29g54ogvzXTOAUVvkPaJF4bgz6cT+ow9B8TEzRl7909TQTM8Az2Ga+yT+ yObp1G4sz8zVfdKqPkFiDdMJ5lezp4Pm0kMfxs1nkX0upKovHUCXX5oGqSRzE2/IDBeG ORuCWOQ0+Hi3xZtJ51IQWSZB8yp/GE9CAqqSN8lXoGnRXbNMQPXnESvj8GYOmoreXcur P28T78OMHOfLLp/K7WBHJY41+JURrxzcB7M/qBJ/B4YurVo9mMAk9CaC/R7aGPd+QaWK bynqKtSorepVGlJfMi/bSC8ZQQhspaPWR89dbrkobTwDtp1hfkQGBFxd4MXybWTIPQIZ Pnhg== X-Gm-Message-State: APjAAAUisnNMG3nj0jG4xqkHUCmpUP6kzudx96Q8myakivlI9TX3tLFm e46NX+qujRMbCHNcWpdXlxqKLJZPtt4ZR/RlV3BLm4xV8Fu+CA== X-Google-Smtp-Source: APXvYqyNe3xllFjzE6QKhwjScunoZV32N4e/18Qfc3ZZEQzsNYsjnyxE7dGHX9bCnLn/HceDfic4wHNWIWXFjSJbE6U= X-Received: by 2002:a2e:86c8:: with SMTP id n8mr51170670ljj.205.1578090408351; Fri, 03 Jan 2020 14:26:48 -0800 (PST) MIME-Version: 1.0 References: <63663202-4b1d-428a-b16b-5be1425e84ef@www.fastmail.com> <0C0C9775-59EE-4FBB-AB84-3E7FEF6E5024@dana.is> <186D63AE-2F2A-41C3-9E09-CEE0714E2B7F@dana.is> <12F64C78-BFA2-460C-80D4-921F22C72F78@dana.is> <1578063609.4581.6.camel@samsung.com> <20200103204856.bv6f3dkqhtrjm6vm@tarpaulin.shahaf.local2> <54205248-124e-4e9a-942f-7ff0626791a6@www.fastmail.com> In-Reply-To: <54205248-124e-4e9a-942f-7ff0626791a6@www.fastmail.com> From: Bart Schaefer Date: Fri, 3 Jan 2020 14:26:36 -0800 Message-ID: Subject: Re: Official plugin manager? To: "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" On Fri, Jan 3, 2020 at 2:07 PM Daniel Shahaf wrote: > > Roman Perepelitsa wrote on Fri, 03 Jan 2020 21:51 +00:00: > > This is just my personal opinion that I don't hold very strongly and > > my voice obviously carries little weight here. I think zshrc > > recommended by zsh should be very conservative. My approach with the completion defaults I've been playing with, is to define a function that installs a zstyle only if there is not already another competing zstyle, so that the default definitions may safely be "source"d at any point. However, these could easily be defined directly instead. Descriptions of some of the styles then defined via that function: # Insert all expansions for expand completer # Allow one error for every three characters typed for _approximate # Allow two errors elsewhere, e.g. for _correct # Offer indexes before parameters in subscripts # Ignore completion functions (until the _ignored completer) # Matching: # 1. Try completion with no alterations (i.e., literal match is best) # 2. Match substrings separated by dashes, dots, underscores, commas # 3. As (2) but case-insensitively # 4. As (2) but allow arbitrary stuff at the beginning of the result