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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16237 invoked from network); 3 Mar 2021 23:44:10 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 Mar 2021 23:44:10 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1614815050; b=yaOqhtjN1s8Tnt/y2u9qjUIquh1lL1yz+jKiWikjfniIyqXje18BIuEfL2Wh5HxHrYgYnbknUK PZJvGPVo3i+Ps+qeyIx8bRNsgbIvf6zlMDv0IpoIc8feQblbJbZL2YWPU4dwZ5L2685b7wOK8y cJfCd+5ufye+Xt43aLIrBBQNskI8KzkqxsIo3JeJuLSMfNgsCw14xgFkC7WhNpAVL732KTHpms VJ5hnWQUlYdognZ80uPDEL7OBJZvIAPOcoKWcIyUWhU6r69HshirSsSGt6BalBvryDfhUM6XIa LClTtYw1p9fqMLh0dJLq/nLgGB/h6v3tp3rWmWz+0ExPDQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1614815050; bh=4XIKQCgIMwjRifiAyKWviFWG09ubuTwe+k5R3V4xmMA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:Cc:To:From: Date:References:In-Reply-To:Message-ID:MIME-Version:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=ygeTu+z50dSrrrdWiYeIcujv7z7GOP8yWVecuXMl1iFJU+i1j7DzS5WUzKqMdmoF4eh8Ul0tZm ZgldoHeVTPv9rwhrJwz/DmV5BL5L1SRJx32AG5DLZRkOWhe5XfgCZa/1heblZ+ybihQrh6VRHF sAtfRRuzlDRANeRFtDM2EXSGFlQSCgliTDXoHo8wVzvAdcjikOZY8ffE/GlNlBdUtYlwcXMmS6 44lAFOPHP0wMhybLH6oR0/eQhfP4hHhdJqq3rXYl1+fN8XvQ1OLWWHnNsWTcdenVQOA6+IuBYy SoXnyVWoxKybekJX5hJ9tOqWN/lJ6jIL2mDfTNMNM5mrLQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=i83I4ZtzCRPT1/WCCVDzuFr8QB2MgfkjhtJXhbDUP3I=; b=pE686qcaP2axiYI5tcz1eUpUb9 yZWhN9Ihrcogmv3YP177W89VWBhXYUY4O3hoG/Ji1O2faSdVkbXsesHwEmS8QkXuiP+nHD4AuBZx4 zvqVikKyoB65IU7iMKlEcSbQRzLmsi07zfEA3bapsNyZ6sTPYwoco8zPyF6Ji7vTuHFOOMYYHAGDx 0Hz+YtPcHQnJypClXL7/CMkAjuibbElDDHGLYM05ia49Z1JvkbbOtJR3srJ51HwiF0CV5RKYLrbAv mG1HzOvV2cksHExOFIYjdn/pe4Tv/1hz55I6FKpfQ3UCDs/xhRzXKGrpD5Io+Kxyp7veqhRE+XkMZ xWlLtASw==; Received: from authenticated user by zero.zsh.org with local id 1lHbA1-000Ezt-Qb; Wed, 03 Mar 2021 23:44:09 +0000 Authentication-Results: zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out5-smtp.messagingengine.com ([66.111.4.29]:46103) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lHb9p-000EqK-OQ; Wed, 03 Mar 2021 23:43:58 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id DC64B5C00BA; Wed, 3 Mar 2021 18:43:56 -0500 (EST) Received: from imap37 ([10.202.2.87]) by compute3.internal (MEProxy); Wed, 03 Mar 2021 18:43:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:cc:subject:content-type :content-transfer-encoding; s=fm2; bh=i83I4ZtzCRPT1/WCCVDzuFr8QB 2MgfkjhtJXhbDUP3I=; b=Za8m9sxYiQo2PJvpvHG8oUVgcKq6HVxTNWw/o3NFPt dHu/ctnd+yWhYzAeJ9YOwvPTKsVSF92Pb+D56CNOZ4kP6R24RCwH/qjd3aWuYaRV u4lattzCXz6bhTzTZWlkVZV7pvpB8xfQTlqsLpJJHxUF2oUkJrubB7Qd0rReWXc6 tdVb7Oj9mVU7IY1m9zpmt8iTCbSSh9FVoEz6r2ixNsPydd3xvjN8V3v/smOHkkgC KXimAtVVXTmYrwno3mPdl3UrLKDu8xJy/bwmjWUmmUvNUenLIcf8I/sl0Xjpk+38 OcsKrHukDbxWsBQhPeC4uDSKGep0Htl9CfIgAkuxLaZg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=i83I4ZtzCRPT1/WCCVDzuFr8QB2MgfkjhtJXhbDUP 3I=; b=QIUsYqixWgJlZHatsnuzrbrgHgHlRQtAl/tBFW4BHOJoVBhOhvA1/2GgN KUoKgL0BI5He3YrlTUWEis1rUSgDxTgjDi/ehmJz/M0HapVPDpftPnqVrFxBz4Ra zwRmEaa3qclPHbKzhYm7cwvkkdxjOJeWka1SFnRhih9Rxt15WcJTMIP5wf1qlgnW ztlTPrLJtr9yjxZz0FkbmYZZQXxJjLXtEwGLe5kZ5qonbMsGGHI8586I2Hw0lJl6 XjJXSvtwNiJ1XXfD5hAsCs/aqQTbh00JuHTUGa390+JoBdFGQx/PKF55kzzADQw6 JV3fL6pXV4iewnhwihCbxg06u/A6Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledruddtfedguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfffgr nhhivghlucfuhhgrhhgrfhdfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmh gvqeenucggtffrrghtthgvrhhnpeefhfekfeevieelleehiefftdekudejledvhfdtjedt geegvdeuffefleehhfdvgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 6218B6B4005F; Wed, 3 Mar 2021 18:43:56 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-206-g078a48fda5-fm-20210226.001-g078a48fd Mime-Version: 1.0 Message-Id: In-Reply-To: References: <31598-1614116362.902856@aI-l.maGv.3QD7> <20210224142437.GC9342@tarpaulin.shahaf.local2> <20210303200215.GA11821@tarpaulin.shahaf.local2> Date: Wed, 03 Mar 2021 23:43:36 +0000 From: "Daniel Shahaf" To: "Aaron Schrab" , "Jacob Gelbman" Cc: zsh-workers@zsh.org Subject: Re: Completion script for the ctags program Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 48139 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: Aaron Schrab wrote on Wed, 03 Mar 2021 23:28 +00:00: > The completion for that *does* include all of those options. Yes, all = of=20 > that does make it quite verbose, but that can also be the case even=20= > without that type of dynamic option names (I'm mainly thinking of curl= =20 > here). FWIW: % git -c zsh: do you wish to see all 288 possibilities (73 lines)?=20 That's basicaly a hardcoded list, though I think it does look in `git config --list` too for wildcard instances and in-house options. % rsync -- zsh: do you wish to see all 450 possibilities (151 lines)?=20 Static list. % git co zsh: do you wish to see all 605 possibilities (165 lines)?=20 Based on repository contents. Uses tags for sectioning. % curl - zsh: do you wish to see all 661 possibilities (221 lines)?=20 Static list. % gcc - zsh: do you wish to see all 2495 possibilities (833 lines)?=20 Static list. It's long because all -Wfoo/-fbar/-mbaz arguments are treated as first-class options. I suppose that may want to be changed. > I still think that having the completion options actually usable=20 > as-is is still better than requiring the user to edit the completion=20= > results. It would likely be even better in this case if the language=20= > portion could be treated more as the argument to an option, and so the= =20 > language list would only be presented after the prefix was already=20 > selected. That's what pws proposed and I independently implemented. Try the _f function I posted. There's ---foo options too (with the replaceable part first), and there's =C2=AB--foo- bar=C2=BB as two words, but that's solvable. > But I'd also say that even a completion script which generates those=20= > options in need of editing would still be an improvement over nothing.= *nod* Cheers, Daniel