Function: denote-query-link-prompt

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

Signature

(denote-query-link-prompt &optional INITIAL-QUERY PROMPT-TEXT)

Documentation

Prompt for query string.

With optional INITIAL-QUERY use it as the initial minibuffer text. With optional PROMPT-TEXT use it in the minibuffer instead of the default prompt.

Previous inputs at this prompt are available for minibuffer completion if the user option denote-history-completion-in-prompts is set to a non-nil value.

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-query-link-prompt (&optional initial-query prompt-text)
  "Prompt for query string.
With optional INITIAL-QUERY use it as the initial minibuffer text.  With
optional PROMPT-TEXT use it in the minibuffer instead of the default
prompt.

Previous inputs at this prompt are available for minibuffer completion
if the user option `denote-history-completion-in-prompts' is set to a
non-nil value."
  (when (and initial-query (string-empty-p initial-query))
    (setq initial-query nil))
  (denote--with-conditional-completion
   'denote-query-link-prompt
   (format-prompt (or prompt-text "Query for") nil)
   denote-query-link-history
   initial-query))