mirror of https://github.com/djcb/mu.git
Add variable for initial input to maildir selection
"/" was hardcoded as initial input to `mu4e-completing-read-function' when selecting 'other' maildirs. This can now be set by the user.
This commit is contained in:
parent
5acb824181
commit
6a7d48c854
|
@ -119,6 +119,11 @@ NOT be quoted, since mu4e does this for you."
|
|||
:version "1.3.9"
|
||||
:group 'mu4e-folders)
|
||||
|
||||
(defcustom mu4e-maildir-initial-input "/"
|
||||
"Initial input for `mu4e-completing-completing-read' function."
|
||||
:type 'string
|
||||
:group 'mu4e-folders)
|
||||
|
||||
(defcustom mu4e-maildir-info-delimiter
|
||||
(if (member system-type '(ms-dos windows-nt cygwin))
|
||||
";" ":")
|
||||
|
@ -301,7 +306,8 @@ from all maildirs under `mu4e-maildir'."
|
|||
(if (member kar '(?/ ?o)) ;; user chose 'other'?
|
||||
(substring-no-properties
|
||||
(funcall mu4e-completing-read-function prompt
|
||||
(mu4e-get-maildirs) nil nil "/"))
|
||||
(mu4e-get-maildirs) nil nil
|
||||
mu4e-maildir-initial-input))
|
||||
(or (plist-get
|
||||
(seq-find (lambda (item) (= kar (plist-get item :key)))
|
||||
(mu4e-maildir-shortcuts)) :maildir)
|
||||
|
|
Loading…
Reference in New Issue