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 14538 invoked from network); 3 Mar 2021 23:29:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 Mar 2021 23:29:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1614814158; b=Z34xFb/+CMPsmzUZMbdv0nexf1JDDXY4K9oPE6OdqbpJbyGBZ0AnTV5HLwoOxYbTnSzAVYAT9e DB5ThBGetQrBZDegaMOrc7O9c3elrydapeWoC8G70jFJcGr7g4zvuxLKrkSvDKjpR4WEqhWOwv CU+Hn8fCqKjypruSY0uyDb0mv82/pn4i7qXmTbwaX2+iQ6bnw1NJCeZmqAu9GyvnHpEHYAFV7x ylAZrIRxMEWAQSQss/RzF+Hi8Sx75eyXqJ2JjwlgYF74c+ifqQEcKbVvXRH21YTCKvmCYlX4ie GXRKD8yKdD5Xt0tzIWd/8ruXFUivtOtFEHtE1OE4Npr81w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (pug.qqx.org) smtp.remote-ip=50.116.43.67; dkim=pass header.d=schrab.com header.s=mail header.a=rsa-sha256; dmarc=none header.from=schrab.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1614814158; bh=FbOTp4RivkzgUSvJvRiL/J9AHbvUdI+8JzAL8wLXPqs=; 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:Cc:To:From:Date:DKIM-Signature: DKIM-Signature; b=ErZoQxy4F25sUU8EZVheKGbQJGYLzhZxVKGZBEUPG4+DNOxBjVkl64ZVkwPn+479hJWneVyKtD QgetuQduruLI7HNAuQq0sVSr9HF8eaKECvJj/KJOqxdXx8d/fwY2yEzcBp+Mm/IYb7X2yWyM9g Zycu753o1GjN3g9w+rlCXiZDK0wYEhmu6H4H5yqEexLVFbVWkGLKlSYquhF0N5s0lJidOd/pbW FxfRlPNcb6Y2jEJMaxji2x8T9V0RQhg6+RVGOAGEh49CXmfWN6Z7m0Rn8HwLg0ZlOT9zkYgd6K NnvqMGIBXldHGpeqiUnLodC9qNWxHcSVc3JKgxJYg91J3A==; 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:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=mr6Ho1Ce90X0NHUMtoz2OVQz/75UpeHLIsSAr9clSJY=; b=tc4nD2kmLUybiTt5gDteWykt1J ifdL98oVeL61+iCJLeMsXEmP0TLcsVhSEe7yj3+uG0yILw3ggK0IZdo5/2I8jhat0tMzJhItsYsaG tYsUemIXZfYJnKuCVmAB2dKcd52Ttp2oTvvrrqCvZskFuGMLdB13sSMC3nJhDHSxr8NfiOaarYFBP WrWR28Brqr0oAIsKAtMfyluNwhJm1mIRsnpKJNlYGUFr0sP/FtvfmNOYHima1M4Q8HYccTJ+F7U3e Kvg0LhYrG0RDhs97kvKrKSMfjz6CUiwQ0qQzcOdgE3loeEc2HjSfmKtucfTliHC1H8FWLhtHO++sm B6tzlTbA==; Received: from authenticated user by zero.zsh.org with local id 1lHavb-000E8V-UV; Wed, 03 Mar 2021 23:29:15 +0000 Authentication-Results: zsh.org; iprev=pass (pug.qqx.org) smtp.remote-ip=50.116.43.67; dkim=pass header.d=schrab.com header.s=mail header.a=rsa-sha256; dmarc=none header.from=schrab.com; arc=none Received: from pug.qqx.org ([50.116.43.67]:56166) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lHavG-000DzW-Na; Wed, 03 Mar 2021 23:28:56 +0000 Received: by pug.qqx.org (Postfix, from userid 1000) id A236E1DBF3; Wed, 3 Mar 2021 18:28:50 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=schrab.com; s=mail; t=1614814130; bh=FbOTp4RivkzgUSvJvRiL/J9AHbvUdI+8JzAL8wLXPqs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j7tDO81MkqTzzyTpD4H9TCRTpPkYAWyWmFGK8CZatYejiUMyfBIv7VDwikOu60DHq HGbUXcMtSjjKeOEGPLeC+cHZfzkpHTKfeLObkBYGTP3CRmjc2H5yUJ9D9zgH5+IEui 0e1CmWkm/0q7Lq7cI+mimw0zWt05TRSS4MrtdmAin/3ikuzWG4Tjc5flVLHLKj4wPq CALZW0g+sC+PCK7ohA7v/yFzngMB4JC3GqkM/VPnPS7bPOosOZ6Ufk2jA5l+FY5ELD PHW2WBnfLpgq0WyH9tp96qLcuvneM+PuP9nLqz0fuopMbLhY0Cq8hSYSYCaYhefUSJ FUnfBHXeuelSg== Date: Wed, 3 Mar 2021 18:28:50 -0500 From: Aaron Schrab To: Jacob Gelbman Cc: Daniel Shahaf , zsh-workers@zsh.org Subject: Re: Completion script for the ctags program Message-ID: Mail-Followup-To: Jacob Gelbman , Daniel Shahaf , zsh-workers@zsh.org References: <31598-1614116362.902856@aI-l.maGv.3QD7> <20210224142437.GC9342@tarpaulin.shahaf.local2> <20210303200215.GA11821@tarpaulin.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Seq: 48137 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: At 16:08 -0600 03 Mar 2021, Jacob Gelbman wrote: >Just I don’t think it should add all the options that it could be >because it would make the output too long to read. I can’t think of >another command that has options like this, One example would be ack (AKA ack-grep) which also has options for quite a few programming languages. Although in its case there isn't any common prefix for the options to turn on a language; it's just options like `ack --python`. It also supports options like `ack --nopython` to disable languages. The completion for that *does* include all of those options. Yes, all of that does make it quite verbose, but that can also be the case even without that type of dynamic option names (I'm mainly thinking of curl here). I still think that having the completion options actually usable as-is is still better than requiring the user to edit the completion results. It would likely be even better in this case if the language portion could be treated more as the argument to an option, and so the language list would only be presented after the prefix was already selected. But I'd also say that even a completion script which generates those options in need of editing would still be an improvement over nothing.