Function: denote-query-filenames-link

denote-query-filenames-link is an autoloaded, interactive and byte-compiled function defined in denote.el.

Signature

(denote-query-filenames-link QUERY)

Documentation

Insert query link for file names.

Prompt for QUERY or use the text of the active region. When the user follows this link, place any matches in a separate buffer (using the built-in Dired mechanism). This is the equivalent of a Unix find command across the variable denote-directory(var)/denote-directory(fun).

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
;;;###autoload
(defun denote-query-filenames-link (query)
  "Insert query link for file names.
Prompt for QUERY or use the text of the active region.  When the user
follows this link, place any matches in a separate buffer (using the
built-in Dired mechanism).  This is the equivalent of a Unix find
command across the variable `denote-directory'."
  (interactive
   (list
    (or (denote--get-active-region-content)
        (denote-query-link-prompt nil "Query in file NAMES"))))
  (unless (or (denote--file-type-org-extra-p)
              (and buffer-file-name (denote-file-has-supported-extension-p buffer-file-name)))
    (user-error "The current file type is not recognized by Denote"))
  (denote--delete-active-region-content)
  (insert (denote--format-query-link 'query-filenames query (denote-filetype-heuristics buffer-file-name))))