[PATCH 2/2] debian: update zsh completion installation

2018-09-18 Thread Vincent Breitmoser
From: David Bremner This ${prefix}/share/vendor-completion convention seems to be debian specific, so leave the global default alone for now. --- debian/notmuch.install | 1 + debian/rules | 1 + 2 files changed, 2 insertions(+) diff --git a/debian/notmuch.install

[PATCH 1/2] completion: more complete completion for zsh.

2018-09-18 Thread Vincent Breitmoser
ion/zsh/_notmuch b/completion/zsh/_notmuch new file mode 100644 index ..e920f10b --- /dev/null +++ b/completion/zsh/_notmuch @@ -0,0 +1,293 @@ +#compdef notmuch -p notmuch-* + +# ZSH completion for `notmuch` +# Copyright © 2018 Vincent Breitmoser + +_notmuch_command() { + local -a no

zsh completion finalized and squashed

2018-09-18 Thread Vincent Breitmoser
I noticed notmuch reindex was missing from the commands and had a broken completion. This series also includes a version of _email-notmuch that simply loads all mail addresses, and caches them based on lastmod. I think this should be good now, unless anyone finds more bugs :) - V

forgot amending the commit :)

2018-09-17 Thread Vincent Breitmoser
Please disregard the previous message. I forgot to amend a change that uses a nonexistent query to speed up the call to notmuch count. ___ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch

[PATCH] completion: load all addresses and cache in _email-notmuch

2018-09-17 Thread Vincent Breitmoser
This loads all known email addresses for completion, and caches the result. The cache validity is based on `notmuch count --lastmod mid:nonexistent`. --- completion/zsh/_email-notmuch | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/completion/zsh/_email-notmuch

[PATCH] completion: load all addresses and cache in _email-notmuch

2018-09-17 Thread Vincent Breitmoser
--- completion/zsh/_email-notmuch | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/completion/zsh/_email-notmuch b/completion/zsh/_email-notmuch index 291c2358..c6db00b6 100644 --- a/completion/zsh/_email-notmuch +++ b/completion/zsh/_email-notmuch @@ -2,8 +2,14 @@

[PATCH] python: fix unchecked None access in get_property

2018-09-17 Thread Vincent Breitmoser
--- bindings/python/notmuch/message.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py index d242097a..de0fb415 100644 --- a/bindings/python/notmuch/message.py +++ b/bindings/python/notmuch/message.py @@

Re: [PATCH 1/2] completion: more complete completion for zsh.

2018-09-17 Thread Vincent Breitmoser
Ah, that's a bit annoying. What we could do is just stupidly load all addresses and work from there? On my machine, `notmuch address --deduplicate=address --output=address '*'` takes 0.25 seconds for a result set of 5500 addresses. Could also put that result set in the zsh completion cache, for

[PATCH 2/2] debian: update zsh completion installation

2018-09-16 Thread Vincent Breitmoser
From: David Bremner This ${prefix}/share/vendor-completion convention seems to be debian specific, so leave the global default alone for now. --- debian/notmuch.install | 1 + debian/rules | 1 + 2 files changed, 2 insertions(+) diff --git a/debian/notmuch.install

[PATCH 1/2] completion: more complete completion for zsh.

2018-09-16 Thread Vincent Breitmoser
mpletion/zsh/_notmuch b/completion/zsh/_notmuch new file mode 100644 index ..3086750c --- /dev/null +++ b/completion/zsh/_notmuch @@ -0,0 +1,292 @@ +#compdef notmuch -p notmuch-* + +# ZSH completion for `notmuch` +# Copyright © 2018 Vincent Breitmoser + +_notmuch_command() { + local -a no

Re: Updated zsh completion patches

2018-09-16 Thread Vincent Breitmoser
Hey David, > I do have one problem with the completion of tags. It seems the > treatment of tags with :: in them is not consistent. Thanks for the hint. I didn't expect :: to be special so I didn't test that case. I'll check it out later today or possibly tomorrow. - V

[PATCH] More complete completion scripts for zsh.

2018-09-15 Thread Vincent Breitmoser
This adds completion files for zsh that cover most of notmuch's cli. The files in completion/zsh are formatted so that they can be found by zsh's completion system if put $fpath. They are also registered to the notmuch-* pattern, so they can be called externally using _dispatch. ---