summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-10-02 12:34:35 +0100
committerYann Herklotz <git@yannherklotz.com>2021-10-02 12:34:35 +0100
commite5a72f720182aa4893b9953ab6b95fcdbcc5220e (patch)
treecd3c75c2213222054590cde8c4d1366f521537af
parent2f55405817ce7cbaeb650bc29faed827ec7d222f (diff)
downloadorg-zettelkasten-e5a72f720182aa4893b9953ab6b95fcdbcc5220e.tar.gz
org-zettelkasten-e5a72f720182aa4893b9953ab6b95fcdbcc5220e.zip
Update org-zettelkasten-search-current-id with doc
-rw-r--r--README.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/README.md b/README.md
index 753cf1c..461a5ec 100644
--- a/README.md
+++ b/README.md
@@ -48,6 +48,7 @@ all the back links of the current heading).
``` emacs-lisp
(defun org-zettelkasten-search-current-id ()
+ "Use `consult-ripgrep' to search for the current ID in all files."
(interactive)
(let ((current-id (org-entry-get nil "CUSTOM_ID")))
(consult-ripgrep org-zettelkasten-directory (concat "[\\[:]." current-id "\\]#"))))