[PATCH 1/2] config: Add 'config list' command
Jameson Graef Rollins
jrollins at finestructure.net
Mon Mar 26 08:03:25 PDT 2012
On Wed, 21 Mar 2012 20:30:43 +0200, Tomi Ollila <tomi.ollila at iki.fi> wrote:
> On Wed, 21 Mar 2012 09:31:37 +1100, Peter Wang <novalazy at 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'
Git's interface is completely inconsistent, so I see no reason to try to
emulate it in every regard. Let's just try to keep the notmuch
interface as nice and consistent as possible.
I do agree, though, that I think I would prefer to see the output in the
same format as "git config --list". So I would suggest the command and
output be:
$ notmuch config list
database.path=/home/jrollins/.mail
user.name=Jameson Graef Rollins
user.primary_email=jrollins at finestructure.net
user.other_email=
new.tags=new;unread
maildir.synchronize_flags=false
search.exclude_tags=deleted;spam;
That seem like a much more generally useful output.
jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120326/f7b1652b/attachment.pgp>
More information about the notmuch
mailing list