unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob c6db00b6030fe97b36de9340e84495eef002fefc 500 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)"} )

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 c6db00b6 ...
found c6db00b6 in https://yhetil.org/notmuch/20180917210852.4346-1-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/20180917210852.4346-1-look@my.amazin.horse/
diff --git a/completion/zsh/_email-notmuch b/completion/zsh/_email-notmuch
index 291c2358..c6db00b6 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.

index at:
100644 c6db00b6030fe97b36de9340e84495eef002fefc	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).