Function: denote-grep

denote-grep is an interactive and natively compiled function defined in denote.el.

Signature

(denote-grep QUERY)

Documentation

Search QUERY in the content of Denote files.

QUERY should be a regular expression accepted by xref-search-program.

The files to search for are those returned by denote-directory-files with a non-nil TEXT-ONLY argument.

Results are put in a buffer which allows folding and further filtering (see the manual for details).

You can insert a link to a grep search in any note by using the command denote-query-contents-link.

Key Bindings

denote-query-mode-map s

Source Code

;; Defined in /nix/store/yld6spsps5sfn9w4rjyhkvqlvdgsmvpq-emacs-packages-deps/share/emacs/site-lisp/elpa/denote-4.2.3/denote.el
;;;###autoload
(defun denote-grep (query)
  "Search QUERY in the content of Denote files.
QUERY should be a regular expression accepted by `xref-search-program'.

The files to search for are those returned by `denote-directory-files'
with a non-nil TEXT-ONLY argument.

Results are put in a buffer which allows folding and further
filtering (see the manual for details).

You can insert a link to a grep search in any note by using the command
`denote-query-contents-link'."
  (interactive (list (denote-query-prompt)))
  (let ((denote-query--omit-current nil))
    (denote-make-links-buffer query nil nil denote-grep-display-buffer-action)))