Re: [PATCH] cli: handle bash completion of all shared options

Subject: Re: [PATCH] cli: handle bash completion of all shared options

Date: Sat, 25 Dec 2021 12:58:56 -0400

To: Tobias Backer Dirks, notmuch@notmuchmail.org

Cc:

From: David Bremner


Tobias Backer Dirks <omgitsaheadcrab@gmail.com> writes:

> A slight rework of base bash completion to handle all shared options.
> This simplifies the handling of base commands and adds creature comforts
> such as directory completion for --config, and removing trailing spaces
> from options ending in an `=`. Also fixes a bug reported in [1], wherein
> completion after an `=` produced erroneous output.
>
> [1]: id:20200602103703.GA13623@taurus.defre.kleine-koenig.org
>
> Signed-off-by: Tobias Backer Dirks <omgitsaheadcrab@gmail.com>

I played with this a bit, and it seems it completes

% notmuch search --config=foo

perhaps that ought to be valid syntax, but for the time being it is not.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: