Function: denote-query-prompt

denote-query-prompt is a byte-compiled function defined in denote.el.

Signature

(denote-query-prompt &optional PROMPT-TEXT)

Documentation

Prompt for a grep query in the minibuffer.

With optional PROMPT-TEXT use it for the minibuffer prompt.

For backward-compatibility, PROMPT-TEXT can also be a keyword among
:focused, :dired, and :region, to format the prompt accordingly
for the given type of search. Developers should not rely on this, as we will remove it in future versions of Denote---just use PROMPT-TEXT as a string.

Aliases

denote-grep-query-prompt (obsolete since 4.2.0)

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-query-prompt (&optional prompt-text)
  "Prompt for a grep query in the minibuffer.
With optional PROMPT-TEXT use it for the minibuffer prompt.

For backward-compatibility, PROMPT-TEXT can also be a keyword among
`:focused', `:dired', and `:region', to format the prompt accordingly
for the given type of search.  Developers should not rely on this, as we
will remove it in future versions of Denote---just use PROMPT-TEXT as a
string."
  (let ((default (car denote-query-prompt-history)))
    (read-string
     (format-prompt
      (pcase prompt-text
        ((pred stringp) prompt-text)
        (:focus
         "Search for REGEXP in all files")
        (:dired
         "Search for REGEXP in marked Dired files")
        (:region
         "Search for REGEXP in the active region files")
        (:include
         "Only show files whose name matches REGEXP")
        (:exclude
         "Exclude files whose name matches REGEXP")
        (_ "Search (all Denote files)"))
      default)
     nil 'denote-query-prompt-history default)))