branch: externals/denote commit 6cbf2fcb67ec387483a5e4047d1a2b56777f7545 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Introduce the denote-grep group and update user options accordingly I have not written that node in the manual yet, but I will do it after I am done editing denote.el. This builds on top of commit f70c96c, which was contributed by Lucas Quintana in pull request 571: <https://github.com/protesilaos/denote/pull/571>. Lucas has assigned copyright to the Free Software Foundation. --- denote.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/denote.el b/denote.el index fa89b5d5b0..db20b335b9 100644 --- a/denote.el +++ b/denote.el @@ -5141,17 +5141,27 @@ others." 'denote-make-links-buffer "4.0.0") +(defgroup denote-grep () + "Integration between Denote and Xref for grep/query/backlink buffers." + :group 'denote) + (defcustom denote-query-format-heading-function #'identity "Function used to construct headings for files matched by a query. It is called with a single argument, the path to the note file, and it should always return a string." + :package-version '(denote . "4.0.0") + :link '(info-link "(denote) Use the denote-grep command to search in files") + :group 'denote-grep :type 'function) (defcustom denote-query-untitled-string "[Untitled]" "String to use as heading for untitled notes in links' buffer. Used only by `denote-query-extract-title'." + :package-version '(denote . "4.0.0") + :link '(info-link "(denote) Use the denote-grep command to search in files") + :group 'denote-grep :type 'string) (defvar denote-query--last-files nil