From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26356 invoked by alias); 27 Aug 2018 18:22:22 -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: 43342 Received: (qmail 503 invoked by uid 1010); 27 Aug 2018 18:22:22 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f193.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.208.193):SA:0(-1.9/5.0):. Processed in 0.691577 secs); 27 Aug 2018 18:22:22 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_PASS,T_DKIMWL_WL_MED,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ECYlyBzabUn5e0bsDb4U4Q0XQbfj1STH/xG15Z4cvsQ=; b=Kqn21ALZRGclmDV/S0/UrOduMNnrI1XP40ohGM/MgolbpHnwSzcPvrWtmo1TlHcpKq 2C/QJoAo5oSIn4Qvug2TW42oK+E7wbVYwRqvUbF4x7O3hE0euOhmm/9pPzCyHWpQ5w+3 u6KctOvts9NtUoUvUR7sZWhcZZ6x/iAw1Di2ZX29IqtMW6uVUCNMB0rTBpmk+2+lAmjl rkU01fF6iLuqnTl8rmmj369BcuzLrPHNVagv10xR7BFOJRdAEpmhy1v4V4VtmE38t0Z2 KhVxIqS/rPFkWIdko8PTKkTtuKsxuTSSzJNBCRxQmKhXSjl3osBMdoXBFRxQdgLtaGLD ydKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ECYlyBzabUn5e0bsDb4U4Q0XQbfj1STH/xG15Z4cvsQ=; b=ECiwUx9WshiURh+KBmR0XX8JPAn91QGIHXIJm1CW0Y65gXCNsmhHg6IRXqtsy8Soex jUiazVV2aTxYbB1Y8N+f6k2ruDZN/yZ3r/sPjbq9LW+XQM5W0QD/lywna4ZGPpPPOa9f 20teK9sYLDcQ1s8K3Y6JOWIlz5NgfgOzbSVOq251wDtY3ViXfXt1PtzkCLhfsKUyaQzY fgVxeRxB10hRPwqFn+9pIm19uSq0j4SFowJtf7ZAoLgkyEBBU3a4WSmLhxbrmYmmHheT y6XKe9HJkxv4zdMmU49gHgatUQ6QiTHzFDrAvdlUvFGQDS19o6mrBhKxI9L/fa9yExfa Q+FQ== X-Gm-Message-State: APzg51BpAk/ufYQ+gLNVythg7TIArzhRGP+wSA3oPM9LD611W3gicvd7 gO8GDQSuu4zl3vP5jCupilM923jUcqO1bQL94Tp4Rog3u9aTSA== X-Google-Smtp-Source: ANB0Vda0SCXESVQ0qd7/fpm5kqdpw00SAeWU3XGrAFraxG8HK0ltlsN5e11XKu6lckBsknSxySFWMkqQvhewZJWGGgc= X-Received: by 2002:a2e:5d9d:: with SMTP id v29-v6mr8981219lje.137.1535394138240; Mon, 27 Aug 2018 11:22:18 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1535364428.1254476.1487264352.6CB6A6E5@webmail.messagingengine.com> References: <20180826105404.31846-1-danielsh@tarpaulin.shahaf.local2> <20180827010937.GA61934@CptOrmolo.darkstar> <1535364428.1254476.1487264352.6CB6A6E5@webmail.messagingengine.com> From: Bart Schaefer Date: Mon, 27 Aug 2018 11:22:17 -0700 Message-ID: Subject: Re: [PATCH] _compdef: Use zsh/param instead of a glob. To: Daniel Shahaf Cc: Matthew Martin , "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Aug 27, 2018 at 3:07 AM, Daniel Shahaf wro= te: > > That said, if there is some way to generate a set of names that is less > complete but has fewer false positives, we could offer that set under > one tag and the ${(k)functions[(I)_*]} set under another tag, to allow > users to get their preferred way by setting the tag-order style. The ${(k)functions[(I)_*]} set will only differ from the ${^fpath:/.}/_(|*[^~])(:t) set in two ways: (1) The fpath search will find functions that have not yet been marked auto= load. (2) After autoload functions have been invoked for the first time ${(k)functions[(I)_*]} will have the additional functions from the base files. Skipping (1) for only (2) might be considered just as much a loss as not including (2). Also, ${(V)_comps} might be a more reasonable source of the extra functions. > (Incidentally, I never understood why completion functions didn't use a > proper namespace, zshfoo_* or some such, like virtually everyone else =E2= =80=94 > but that ship has sailed.) Can't say anybody was really thinking about needing function namespaces back then. Miinimize length of identifiers and maximize similarity to the command for which the completion was being defined were pretty much the only things in mind. Remember, this was pretty close to the era when commands like "ls", "rm", "mv", "ld", etc. were named. Aside: For going horribly overboard the other direction IMO, see: https://github.com/aecolley/client_bash/blob/master/prometheus.bash