Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: closing named directory at command run [q:e:



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