Re: [PATCH 1/2] config: Add 'config list' command

Subject: Re: [PATCH 1/2] config: Add 'config list' command

Date: Wed, 21 Mar 2012 20:30:43 +0200

To: Peter Wang, notmuch@notmuchmail.org

Cc:

From: Tomi Ollila


On Wed, 21 Mar 2012 09:31:37 +1100, Peter Wang <novalazy@gmail.com> wrote:
> Add a command to list all keys in a given configuration section.
> 
> One use is as follows: a MUA may prefer to store data in a central
> notmuch configuration file so that the data is accessible across
> different machines, e.g. an addressbook.  The list command helps
> to implement features such as tab completion on the keys.

Before getting deeper into implementation it is good to remember
that 'notmuch config' is loosely modeled after 'git config'.

git config --list outputs somewhat different output.

Maybe this command should be like 'notmuch config list-section-keys'

> ---
>  notmuch-config.c |   27 +++++++++++++++++++++++++++
>  1 files changed, 27 insertions(+), 0 deletions(-)

Tomi

Thread: