Re: notmuch-vim doesn't respect notmuch config defaults

Subject: Re: notmuch-vim doesn't respect notmuch config defaults

Date: Thu, 02 Oct 2014 12:32:11 -0700

To: notmuch@notmuchmail.org

Cc:

From: Ian Main


David Bremner wrote:
> Sergei Shilovsky <sshilovsky@gmail.com> writes:
> 
> > I would suggest to use `notmuch config list` to get configuration
> > values in vim if possible
> 
> I guess this is a general question we haven't really resolved, namely
> sharing configuration information between various notmuch frontends.
> .notmuch-config is really the configuration file for the notmuch CLI; it
> isn't read by library, so clients using language bindings won't see it
> at all by default.
> 
> On a somewhat related note I've been thinking how to best associate
> configuration information with a database (see e.g. the thread at
> id:1411805835-3563-1-git-send-email-david@tethera.net ). Note that this
> would not help this particular case.
> 
> Offhand, I wouldn't be personally to some interface at the library level
> wrapping the reading and writing of ~/.notmuch-config, although as I
> mentioned before, the size and complexity of notmuch-config.c perturb me
> a little as far as being suitable for library code.

I could change the vim client to use notmuch config list easily enough.

Any consensus here?  How does the emacs client do it?  I can make up a patch if
this seems like the right way to go.

Also, someone on IRC mentioned making it so config list could dump JSON
which would make that more reasonable.

    Ian

Thread: