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
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
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
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
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
---
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 @@
---
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
@@
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
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
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
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
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.
---
12 matches
Mail list logo