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 28478 invoked from network); 14 Oct 2021 20:43:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Oct 2021 20:43:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:cc:Reply-To: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=xXbDiHt3O2icX9BCjy1fKHVejkT22GuCSpR15sXiUL4=; b=AfnEfAZzkvMlpUZQ88vb3jA1Nw k0QMym4o8UR0WH9HHHgb8ttFDWkFBq1EB4xtIc0ZEJwXM9H0Wq9BcxOvLk3pU2UgIpqeTgAGz219q EaS5AA5TTA/8fWtcfUG0xPce1NuFFDMttaYwqF29oc/8PgGY/tt1WNU6RyzAqlwx/eytI6ErE9Rq1 uBIyYTo1LeFDVHlXPl35Q53X9Kl42wFxXP7HWSF48LNnyK3U6VmCDS/UmoS3GtUETi91Ko/k9C2Wn 9lePnsZ/Y7rGp8yCcEmY3/UQJLtQMdQRcs58WnRx4+la+ko1zLoBHPUkWbRw2yvQL17qB8OT3g7+e PwMbhZPA==; Received: from authenticated user by zero.zsh.org with local id 1mb7ZO-000DTu-3l; Thu, 14 Oct 2021 20:43:18 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mb7ZD-000DBo-Gk; Thu, 14 Oct 2021 20:43:07 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.94.2) (envelope-from ) id 1mb7ZD-0005m6-44; Thu, 14 Oct 2021 22:43:07 +0200 cc: Zsh hackers list In-reply-to: From: Oliver Kiddle References: To: Marlon Richert Subject: Re: [RFC] Add xfail tests for || form of completion matchers MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22200.1634244187.1@hydra> Date: Thu, 14 Oct 2021 22:43:07 +0200 Message-ID: <22201-1634244187.122908@D81f.Cqal.7HZJ> X-Seq: 49488 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: This is just some initial comments. I'll delve into this in more detail at a later date. On 12 Oct, Marlon Richert wrote: > +By default, characters in the string to be completed (referred to here as the > +command line) map only onto identical characters in the list of matches > +produced by the completion code (referred to here as the trial completions) and > +missing characters are inserted only at the cursor position, if the shell > +option tt(COMPLETE_IN_WORD) is set, or at the end of the command line, > +otherwise. However, it is possible to modify this behavior by use of the I'm fairly sure that if complete_in_word is unset, missing characters are still allowed at the cursor position. It has the effect of treating the rest of the word after the cursor as being a separate following word. I think the code even adds a fake space in for some paths to achieve this. Is "trial completions" the best term we can come up with? Where it occurs in singular form it isn't obvious that it doesn't refer to what is on the command-line. I tend use "candidate matches". With the term "matches" for those that remain following matching. Or does anyone have other ideas? "completions" is already rather overloaded because it is also used for completion definitions for commands. Oliver