Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: closing named directory at command run [q:e:
- X-seq: zsh-users 29262
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: closing named directory at command run [q:e:
- Date: Thu, 14 Sep 2023 09:49:46 -0700
- Archived-at: <https://zsh.org/users/29262>
- In-reply-to: <CAKc7PVBLnf03V0+ha3xtkTMSF3=eVQ=N4YeJs8xR5c4a4WrPqw@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAKc7PVBhsW6G5zo6dN0iP3-Gy+TKdStNhbyyZAAdNFpv1c7-Kw@mail.gmail.com> <CAH+w=7anJXPDMx-ke2yfYUkso=ZoLY2O-qBpYLfeE4_Lsy7YLg@mail.gmail.com> <CAKc7PVBLnf03V0+ha3xtkTMSF3=eVQ=N4YeJs8xR5c4a4WrPqw@mail.gmail.com>
On Wed, Sep 13, 2023 at 9:55 PM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>> On Wed, Sep 13, 2023 at 11:06 AM Sebastian Gniazdowski
>> <sgniazdowski@xxxxxxxxx> wrote:
>> >
>> > How to make the bracket automatically closed at command run?
>>
>> The _dynamic_directory_name completion function already tries to do
>> this, but it's overridden by zsh_directory_name_generic. The latter
>> needs to define a compadd -R remove_func that swaps the colon for a
>> bracket, and use that instead of the -r option at around line 150.
>
> Thanks, I've implemented like you described, it works.
Could you share a patch? No reason this couldn't be in the distributed version.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author