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=-0.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, FREEMAIL_FROM,MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,RDNS_NONE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: from authenticated user by zero.zsh.org with local id 1ki3ii-000M8d-QU; Wed, 25 Nov 2020 22:57:04 +0000 Authentication-Results: zsh.org; iprev=pass (mout.gmx.net) smtp.remote-ip=212.227.17.22; dkim=pass header.d=gmx.net header.s=badeba3b8450 header.a=rsa-sha256; dmarc=none header.from=gmx.com; arc=none Received: from mout.gmx.net ([212.227.17.22]:47075) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1ki3iN-000Ltc-Hz; Wed, 25 Nov 2020 22:56:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1606345002; bh=2iUpHbZMmMxaKhqJAQmRkGUpVExEUp36dLwtka8aiMo=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=FbdlzzXDjh72u2hb1BR9c0dyGnIvmYB3cGFc622HXp8Co2QUtbIjZ6zwdjRi72JPX 3/V1KSCSR+No1wF2b9cYTeUnKnpry9dSIqRIU4Pln0WJ+MB/lRO7HoIZ5/CBVmpv7f wjjV5QJkZbKaCRx85nh+HRqHNPOuCpD7bw59kNTk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from caerleon-medb.mac-anu.org ([71.227.85.179]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MI5UN-1kTTO10mQh-00F82P; Wed, 25 Nov 2020 23:56:42 +0100 Subject: Re: [RFC/PATCH] completion: git: add fast mode To: Felipe Contreras Cc: Zsh hackers list References: <20201123175641.2111934-1-felipe.contreras@gmail.com> <3205a2bc-42a2-6d9f-9746-6ac198aff66e@gmx.com> From: Eric Cook Message-ID: <2fe66d4d-33c9-cde2-2833-e656c07b5a2f@gmx.com> Date: Wed, 25 Nov 2020 17:56:39 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:9NrWNXiVVcLEmJXZ0QnrxBIr30NXnz6ekQD+OeT69RarzFZquHR /fa9PehYYehdmNtZeLGMLkk9oqy5bcp770xXI9VfEzg4jkbQongQyFLWAZ1Tz4TVbvjxK4y DBnfJVI4G+Qxyu5a9Dw6csa2of0fprZnQkWyEGtWi2u2t9UCZkTkHlT6sIiS0dhWQugXRLT GqgWcELgneIVetM1c1f7w== X-UI-Out-Filterresults: notjunk:1;V03:K0:o64rkir1Ztw=:JPDxx32GRVDJ3KNzrm7jyc R00acZLuaooKsYaaab1Vc8xzQFq/GgdTdDkTm0xDSmOjxiNyybmOrXca+vVubFqE6mSJt93NA 2X7AtkgOir0EsUHNekIRh8wr4bNCP7IFELGYxPPDHLoN2aZk2hKGNVCPI578Od+SdFdU0bxOb cFfr3HSwtxbbLlATI6BDFzsaMqLknI7LIZwItHq29Li2C3q5GoZNTwwHZfVsdcujZEq5UEXXe QbnaeGb7hvov+FdV0vdaFUyTqFGPf4+0ePVplZOMnNpGY9JpfN9rV7MlXjrvEPxob9gvcED93 26bA9jAaAmdHOsIcF5/zby/43bBb0Vr8nbIsR0BUbbt5H/G0YW8Jrf6i5753HE1F9eAHoQ7l4 8dz8cmyVBYIHOUqno8r9sFdwCo7LS9i2BqxIV/+rQjV8kaIzmAqKTsaCsV0G2rEoXuAfBiMJr hgWKgo04U339qDfXfw4Wf2q7Hipb4BM5s/MYoCJekn2Vz9RHG8aos/PhAe1OtM01EfuhCtBEx IQYU/7iaTH7fKLuCCmbW4MPDoDbBtPROLtd1VRh8MuDiRl7m4Z9r7VeHzIwSbZ/+DwMNvlwOL iD8YY4yigs66BjfHOJXgeCdZivUOkU20J5PWArlD6d5+6zNHN7SQi7MxloJSU+dht/GWmigXO gAjHd/TBkaC34E5j0Eg26mcKOv/kAeVinauxxDuUBYI0K1Kot/6PC2sX9h47mNqy0Amo8aL09 le+Hfg5rRnTRP7EX0XnqydDu+OBv1kqC4QaFnamr8Z3UAF4DitO28dmiYcdoIiE+wTwngvea6 xek+Q0ya0BhFLss6W6YyMYd9fKDzxXbTcm2TbhJPmsbQcCTlV64Rze2pzZrlUpaDB8V1CHWkJ ktHRe5yAT79USeRwW1Rg== X-Seq: 47628 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: On 11/25/20 5:34 PM, Felipe Contreras wrote: > I think the overall end goal would be to move as much as possible of > the completion to the Git project itself. For example; git commands > have the --git-completion-helper option, which throw something like: > > % git version --git-completion-helper > --build-options --no-build-options > > There is no _git_version() specific function in Git's bash completion, > and yet when you type "git version --" the options are completed > anyway. > > This helps so that new commands get some automatic completion, even > when nothing specific for them is done in the completion script. > > It has been discussed in the mailing list to add something similar for > zsh specific completion, so the descriptions are generated too, and > shorthand forms, perhaps with --git-completion-helper=3Dzsh. This is a form of completion that may work for bash since it's completion = system is simpler and user expectation is (seemingly) solely "press tab and stuff= appears". where as zsh's completion systems allows the user to manipulating the resu= lts in various ways which could be lost once $program handles the completion. like adding additional results overriding opinionated file completion set by the author(s) omitting options you don't want presented to you. grouping results by tags. just to name a few. zsh's completion system is far more powerful than just presenting a pseudo= static list of options with descriptions.