From mboxrd@z Thu Jan 1 00:00:00 1970 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: (qmail 22503 invoked from network); 29 Apr 2020 09:22:26 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with UTF8ESMTPZ; 29 Apr 2020 09:22:26 -0000 Received: (qmail 3283 invoked by alias); 29 Apr 2020 09:22:17 -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: 45742 Received: (qmail 9079 invoked by uid 1010); 29 Apr 2020 09:22:17 -0000 X-Qmail-Scanner-Diagnostics: from out5-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25793. spamassassin: 3.4.4. Clear:RC:0(66.111.4.29):SA:0(-2.6/5.0):. Processed in 5.302073 secs); 29 Apr 2020 09:22:17 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieefgdduhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkjghfofggtgfgsehtqhdttdertdejnecuhfhrohhmpeffrghnihgv lhcuufhhrghhrghfuceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqeenuc fkphepjeelrddukedtrddufedtrddugeejnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmh gv X-ME-Proxy: Date: Wed, 29 Apr 2020 09:21:31 +0000 From: Daniel Shahaf To: Bart Schaefer Cc: dana , Amyn Bennamane , "zsh-workers@zsh.org" Subject: Re: Git-add completion should show full file paths Message-ID: <20200429092131.24d9aa31@tarpaulin.shahaf.local2> In-Reply-To: References: <585FABCB-9B6A-47F8-886E-B24E359F8F51@dana.is> <20200428180118.26e97826@tarpaulin.shahaf.local2> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Bart Schaefer wrote on Tue, 28 Apr 2020 20:42 -0700: > On Tue, Apr 28, 2020 at 11:01 AM Daniel Shahaf w= rote: > > > > Bart Schaefer wrote on Mon, 27 Apr 2020 21:35 -0700: =20 > > > ... call something OTHER THAN _multi_parts if you don't want the > > > strings treated as having multiple parts? =20 > > > > That'd force everyone to use the "list of all files" semantics. =20 >=20 > I don't mean unconditionally call something else. I mean, check a > style and either call _multi_parts, or not. I assumed making _multi_parts opt-outable would be useful for all uses thereof, not just for the _git-files one. > > > That could be put into a wrapper function around the two possible > > > _wanted calls above, if it were desirable to have it somewhere other > > > than in _git_files. =20 > > > > Seems like this would also allow people to use =C2=ABzstyle -e=C2=BB to= choose > > between the two behaviours dynamically, which could be used to > > implement the "if there are more than x files" semantics dana described= . =20 >=20 > Yes, or the algorithm for that could be built into the wrapper and > activated by a style value. Sure. Personally, though, I'd recommend to test-drive potential styles using =C2=ABzstyle -e=C2=BB (or other means) before adding them to _git as first-class supported APIs. Cheers, Daniel