unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 89dfd4140c24a674fab34960feab9f392b121e16 516 bytes (raw)
name: completion/zsh/_email-notmuch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
#autoload

local expl
local -a notmuch_addr
local notmuch_addr_lastmod
local lastmod=( ${(f)"$(notmuch count --lastmod mid:nonexistent)"} )

if ! _retrieve_cache notmuch-addresses || [[ $lastmod != $notmuch_addr_lastmod ]]; then
  notmuch_addr_lastmod=$lastmod
  notmuch_addr=( ${(f)"$(notmuch address --deduplicate=address --output=address -- '*')"} )
  _store_cache notmuch-addresses notmuch_addr notmuch_addr_lastmod
fi

_description notmuch-addr expl 'email address (notmuch)'
compadd "$expl[@]" -a notmuch_addr

debug log:

solving 89dfd414 ...
found 89dfd414 in https://yhetil.org/notmuch/20180917211235.8571-2-look@my.amazin.horse/ ||
	https://yhetil.org/notmuch/20180918111924.8493-2-look@my.amazin.horse/
found 291c2358 in https://yhetil.org/notmuch/20180916222943.21250-1-look@my.amazin.horse/

applying [1/2] https://yhetil.org/notmuch/20180916222943.21250-1-look@my.amazin.horse/
diff --git a/completion/zsh/_email-notmuch b/completion/zsh/_email-notmuch
new file mode 100644
index 00000000..291c2358


applying [2/2] https://yhetil.org/notmuch/20180917211235.8571-2-look@my.amazin.horse/
diff --git a/completion/zsh/_email-notmuch b/completion/zsh/_email-notmuch
index 291c2358..89dfd414 100644

Checking patch completion/zsh/_email-notmuch...
Applied patch completion/zsh/_email-notmuch cleanly.
Checking patch completion/zsh/_email-notmuch...
Applied patch completion/zsh/_email-notmuch cleanly.

skipping https://yhetil.org/notmuch/20180918111924.8493-2-look@my.amazin.horse/ for 89dfd414
index at:
100644 89dfd4140c24a674fab34960feab9f392b121e16	completion/zsh/_email-notmuch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).