Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] accept-line: add ZLE_KEEPSUFFIX to preserve completion suffixes
- X-seq: zsh-workers 54284
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Dimitry Grebenyuk <dimitrygrebenyuk@xxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] accept-line: add ZLE_KEEPSUFFIX to preserve completion suffixes
- Date: Sat, 4 Apr 2026 08:58:51 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=P7qtJILWDMmxSgr9uE2kjfqvCmGvD2Hvcf7J1jcMnGk=; fh=8EATPPozvw2X5g+dj2LHFVSuN1HS/XHRg3gBI5+2tsQ=; b=FW4zquo3XxB82DAgqgGc2Dmyof67mQW9c9GBk2Xw3u1Wq0ZIhhALwv43HruTZft2bs SCXD5TWB9ax4ZI8WvJoTFGtxjOBXFK0r6Awzle6wNVPrezkCXbHvgahSotMqg5xPCLwY eQlls3b9GGd7UeEFl2/ScniNvutCK0omqiBZmLFD2JD03FHvwpeWZECpZugqONcunAYh ndhIaI5xvYyZAcUfuzgYAyPfjr0kUttMdnb5QTdYuZGBlwTa1ffRQPdLPguifu1CltPl ecNjsWBByg8hx65EIYO/AZUtxJAYjyORbV0W8ZEW04MSkP0oGM0GWsFtbpX93pDuAC8d ZSYg==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1775318343; cv=none; d=google.com; s=arc-20240605; b=ki4y45JB/dTDgY78Su22GkOgx+CSYQIBmRwjivmg4cJ1McniAMARZbvttv5chieYTo dSJhXsJkdPKabdkpEukBEY++/1BQNNljYTjDMTSKRKLde8WQXEkM2PBcsArx9qn8S2gr tmWh1IxEHnHmxZQukZtmk+oPCkYxKia/ENRtUe1NVLKOSghO7wAsDmNpdGCYi0j2puQf kiWOokrb9ZWOaCvqF9xKtC1oR3skPEz6S+84j8ytnuwjEQnqzcWQbUiZ7Z81fEGFaOSm y08x9lTPRH6xbYjWQ4d5WiGkzvvJQ6B8geL4ff1Ce2hwf9yVcpXuWbOOcsE5yjUQNgIc xbYg==
- Archived-at: <https://zsh.org/workers/54284>
- In-reply-to: <A112D740-0FFA-4C86-BFFF-47ED1CCE9659@icloud.com>
- List-id: <zsh-workers.zsh.org>
- References: <A112D740-0FFA-4C86-BFFF-47ED1CCE9659@icloud.com>
On Sat, Apr 4, 2026 at 12:45 AM Dimitry Grebenyuk
<dimitrygrebenyuk@xxxxxxxxxx> wrote:
>
> Subject: [PATCH] accept-line: add ZLE_KEEPSUFFIX to preserve completion
> suffixes
No, that's definitely wrong. The whole point of removable suffixes is
that they get removed.
> When a completion adds a removable suffix (e.g. '/' after a directory
> name), the accept-line widget removes it before execution because it
> lacks the ZLE_KEEPSUFFIX flag. This causes a mismatch between what is
> displayed on screen and what is actually executed.
If you're seeing this, something else is going wrong. The suffix
should be removed from the visible screen as well.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author