* implement mu4e-search-bookmark-edit-first & document it.

This commit is contained in:
djcb
2012-03-25 20:33:17 +03:00
parent 41f5d4ace2
commit 85cba86d07
5 changed files with 37 additions and 12 deletions

View File

@ -257,7 +257,8 @@ after the end of the search results."
(define-key map "s" 'mu4e-search)
(define-key map "b" 'mu4e-search-bookmark)
(define-key map "B" 'mu4e-search-bookmark-edit-first)
(define-key map "q" 'mu4e-quit-buffer)
(define-key map "r" 'mu4e-rerun-search)
@ -685,6 +686,17 @@ otherwise, limit to up to `mu4e-search-results-limit'."
(mu4e-hdrs-search query current-prefix-arg))))
(defun mu4e-search-bookmark-edit-first (expr)
"Search using some bookmarked query, but allow for editing the
bookmark before submitting it. With C-u prefix, show /all/ results,
otherwise, limit to up to `mu4e-search-results-limit'."
(interactive
(list (read-string "[mu] search for: "
(concat (or (mu4e-ask-bookmark "Edit bookmark: ") "") " "))))
(when expr
(mu4e-hdrs-search expr current-prefix-arg)))
(defun mu4e-quit-buffer ()
"Quit the current buffer."
(interactive)