summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2017-01-20 17:32:46 +0100
committerLucas Hoffmann <l-m-h@web.de>2017-01-20 17:42:07 +0100
commit9bc28f4c7e9bd5633239b4445418daf59c7d9f9c (patch)
treef0e75b523a235c003ba47b680ba6818ebaf0fa9a /docs
parentd2497661acdb9ec0c24d672b5226da6d16f2fec3 (diff)
Suggest `notmuch address --format=json` in the docs
The old regex that was suggested to capture addresses for completion from the command `notmuch address` was bogus. The json output format is much more predictable. Reported in #990.
Diffstat (limited to 'docs')
-rw-r--r--docs/source/configuration/contacts_completion.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/source/configuration/contacts_completion.rst b/docs/source/configuration/contacts_completion.rst
index 707af984..9185424f 100644
--- a/docs/source/configuration/contacts_completion.rst
+++ b/docs/source/configuration/contacts_completion.rst
@@ -64,8 +64,8 @@ Both respect the `ignorecase` option which defaults to `True` and results in cas
.. code-block:: ini
- command = "notmuch address --output=recipients date:1Y.. AND from:my@address.org"
- regexp = (\"?(?P<name>.+)\"?)?\s*<(?P<email>.*@.+?)>
+ command = 'notmuch address --format=json --output=recipients date:1Y.. AND from:my@address.org'
+ regexp = '\[?{"name": "(?P<name>.*)", "address": "(?P<email>.+)", "name-addr": ".*"}[,\]]?'
shellcommand_external_filtering = False
Don't hesitate to send me your custom `regexp` values to list them here.