From: Todd <todd@electricoding.com>
To: notmuch@notmuchmail.org
Subject: [PATCH v2 4/5] Update completions for Emacs and bash
Date: Tue, 13 Jan 2015 18:00:27 -0600 [thread overview]
Message-ID: <1421193628-2699-5-git-send-email-todd@electricoding.com> (raw)
In-Reply-To: <1421193628-2699-1-git-send-email-todd@electricoding.com>
In-Reply-To: <8761ce7s16.fsf@nikula.org>
This adds completions for Emacs and bash, ZSH does not appear to have
completions for search terms.
---
completion/notmuch-completion.bash | 2 +-
emacs/notmuch.el | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash
index d58dc8b..05b5969 100644
--- a/completion/notmuch-completion.bash
+++ b/completion/notmuch-completion.bash
@@ -61,7 +61,7 @@ _notmuch_search_terms()
sed "s|^$path/||" | grep -v "\(^\|/\)\(cur\|new\|tmp\)$" ) )
;;
*)
- local search_terms="from: to: subject: attachment: tag: id: thread: folder: path: date:"
+ local search_terms="from: to: subject: attachment: contenttype: tag: id: thread: folder: path: date:"
compopt -o nospace
COMPREPLY=( $(compgen -W "${search_terms}" -- ${cur}) )
;;
diff --git a/emacs/notmuch.el b/emacs/notmuch.el
index 218486a..ab00454 100644
--- a/emacs/notmuch.el
+++ b/emacs/notmuch.el
@@ -858,7 +858,7 @@ PROMPT is the string to prompt with."
(lexical-let
((completions
(append (list "folder:" "path:" "thread:" "id:" "date:" "from:" "to:"
- "subject:" "attachment:")
+ "subject:" "attachment:" "mimetype:")
(mapcar (lambda (tag)
(concat "tag:" (notmuch-escape-boolean-term tag)))
(process-lines notmuch-command "search" "--output=tags" "*")))))
--
1.9.1
next prev parent reply other threads:[~2015-01-14 0:01 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-10 0:29 [PATCH] Index Content-Type of attachments with a contenttype prefix Todd
2015-01-10 9:00 ` David Bremner
2015-01-10 14:22 ` Todd
2015-01-10 12:13 ` Jani Nikula
2015-01-10 14:38 ` Todd
2015-01-14 0:00 ` [PATCH v2 0/5] Index the content-type of MIME parts Todd
2015-01-14 0:00 ` [PATCH v2 1/5] Add a failing unit test for indexed mime types Todd
2015-01-15 17:09 ` Jani Nikula
2015-01-15 17:19 ` Jani Nikula
2015-01-14 0:00 ` [PATCH v2 2/5] Add the NOTMUCH_FEATURE_INDEXED_MIMETYPES database feature Todd
2015-01-15 17:20 ` Jani Nikula
2015-01-15 18:57 ` Austin Clements
2015-01-14 0:00 ` [PATCH v2 3/5] Add indexing for the mimetype term Todd
2015-01-15 17:16 ` Jani Nikula
2015-01-14 0:00 ` Todd [this message]
2015-01-15 17:17 ` [PATCH v2 4/5] Update completions for Emacs and bash Jani Nikula
2015-01-14 0:00 ` [PATCH v2 5/5] Update documentation Todd
2015-01-16 0:30 ` [PATCH v3 1/5] Add failing unit tests for indexed mime types Todd
2015-01-17 10:44 ` David Bremner
2015-01-16 0:30 ` [PATCH v3 2/5] Add the NOTMUCH_FEATURE_INDEXED_MIMETYPES database feature Todd
2015-01-16 0:30 ` [PATCH v3 3/5] Add indexing for the mimetype term Todd
2015-01-17 15:21 ` David Bremner
2015-01-17 16:41 ` Todd
2015-01-16 0:30 ` [PATCH v3 4/5] Update completions for Emacs and bash Todd
2015-01-16 0:30 ` [PATCH v3 5/5] Update documentation Todd
2015-01-17 15:28 ` David Bremner
2015-01-22 23:43 ` [PATCH v4 0/5] Index the content-type of MIME parts Todd
2015-01-24 15:57 ` David Bremner
2015-01-22 23:43 ` [PATCH v4 1/5] test: Add failing unit tests for indexed mime types Todd
2015-01-22 23:43 ` [PATCH v4 2/5] Add the NOTMUCH_FEATURE_INDEXED_MIMETYPES database feature Todd
2015-01-22 23:43 ` [PATCH v4 3/5] Add indexing for the mimetype term Todd
2015-01-22 23:43 ` [PATCH v4 4/5] Update completions for Emacs and bash Todd
2015-01-22 23:43 ` [PATCH v4 5/5] Update documentation Todd
2015-01-23 19:11 ` Jani Nikula
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1421193628-2699-5-git-send-email-todd@electricoding.com \
--to=todd@electricoding.com \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).