Function: denote-grep-files-referenced-in-region
denote-grep-files-referenced-in-region is an autoloaded, interactive
and byte-compiled function defined in denote.el.
Signature
(denote-grep-files-referenced-in-region QUERY START END)
Documentation
Perform denote-grep QUERY in files referenced between START and END.
When called interactively, prompt for QUERY. Also get START and END as the buffer positions that delimit the marked region. When called from Lisp, QUERY is a string, while START and END are buffer positions, as integers.
Find references to files by their identifier. This includes links with
just the identifier (as described in denote-link and related), links
written by an Org dynamic block (see the denote-org package), or even
file listings such as those of dired and the command-line ls program.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
;;;###autoload
(defun denote-grep-files-referenced-in-region (query start end)
"Perform `denote-grep' QUERY in files referenced between START and END.
When called interactively, prompt for QUERY. Also get START and END as
the buffer positions that delimit the marked region. When called from
Lisp, QUERY is a string, while START and END are buffer positions, as
integers.
Find references to files by their identifier. This includes links with
just the identifier (as described in `denote-link' and related), links
written by an Org dynamic block (see the `denote-org' package), or even
file listings such as those of `dired' and the command-line `ls' program."
(interactive
(if (region-active-p)
(list
(denote-query-prompt :region)
(region-beginning)
(region-end))
(user-error "No region is active; aborting")))
(if-let* ((files (denote-grep--get-files-referenced-in-region start end)))
(denote-make-links-buffer query files nil denote-grep-display-buffer-action)
(user-error "No files referenced in region")))