[neomutt-users] True/false, boolean, and quad-option question

Richard Russon rich at flatcap.org
Sun May 16 16:24:22 CEST 2021


Hi Chris,

> set tilde
> unset tilde

For booleans, you can use any of:

    no, yes, n, y, false, true, 0, 1, off, on

For quad-options, it's just:

    no, yes, ask-no, ask-yes

For both, the case is ignored.

Quoting values isn't required for bools or quads because the values
don't contain whitespace or special characters.

> I briefly looked at the code on github

Each config type is managed by a separate source file:

    https://github.com/neomutt/neomutt/blob/master/config/bool.c
    https://github.com/neomutt/neomutt/blob/master/config/quad.c

There are functions in each for setting, resetting, validating, etc.

Cheers,
    Rich / FlatCap
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20210516/6bd34a87/attachment.sig>


More information about the neomutt-users mailing list