Function: denote-link-to-all-files-with-contents
denote-link-to-all-files-with-contents is an autoloaded, interactive
and byte-compiled function defined in denote.el.
Signature
(denote-link-to-all-files-with-contents QUERY &optional ID-ONLY)
Documentation
Link to all files whose contents match QUERY.
This is similar to denote-add-links, except it searches inside file
contents, not file names. Optional ID-ONLY has the same meaning as in
denote-link and denote-add-links.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
;;;###autoload
(defun denote-link-to-all-files-with-contents (query &optional id-only)
"Link to all files whose contents match QUERY.
This is similar to `denote-add-links', except it searches inside file
contents, not file names. Optional ID-ONLY has the same meaning as in
`denote-link' and `denote-add-links'."
(interactive
(list (denote-query-link-prompt nil "Files whose contents include QUERY")))
(if-let* ((files (denote-retrieve-files-xref-query query)))
(denote-link--insert-links files (denote-filetype-heuristics buffer-file-name) id-only)
(user-error "No files include the query `%s' in their contents" query)))