From 88c84d72b2eb407983ccabfdd48b9ec3a20a40a2 Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 1 Sep 2022 03:05:49 +0100 Subject: jao-org-notes: filetags -> tags; colon-separated tags --- lib/doc/jao-org-notes.el | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'lib/doc') diff --git a/lib/doc/jao-org-notes.el b/lib/doc/jao-org-notes.el index f285a71..62ee1ef 100644 --- a/lib/doc/jao-org-notes.el +++ b/lib/doc/jao-org-notes.el @@ -32,12 +32,12 @@ (defun jao-org-notes--rg (str) `("rg" "--null" "--line-buffered" "--color=never" "--max-columns=250" "--no-heading" "--line-number" "--smart-case" "." "-e" - ,(format "^(#.(title|filetags): .*)%s" str))) + ,(format "^(#.(title|tags): .*)%s" str))) (defun jao-org-notes--clean-match (m) (cons (format "%s %s" (replace-regexp-in-string "^\\./" "" (car m)) - (replace-regexp-in-string "[0-9]+:#\\+\\(file\\)?\\(title\\|tags\\):" + (replace-regexp-in-string "[0-9]+:#\\+\\(title\\|tags\\):" " (\\2)" (cadr m))) (expand-file-name (car m) default-directory))) @@ -110,7 +110,9 @@ tags)) (defun jao-org-notes--insert-tags () - (insert "#+filetags: " (mapconcat #'identity (jao-org-notes--read-tags) " ") "\n")) + (insert "#+tags: :" + (mapconcat #'identity (jao-org-notes--read-tags) ":") + ":\n")) (defun jao-org-notes--insert-date () (insert "#+date: ") @@ -140,11 +142,13 @@ (buffer-file-name)) ;;;###autoload -(defun jao-org-notes-grep (&optional initial) +(defun jao-org-notes-grep () "Perform a grep search on all org notes body, via consult-ripgrep." (interactive) (consult-ripgrep jao-org-notes-dir initial)) +(make-obsolete 'jao-org-notes-grep 'consult-recoll "2022-08-22") + ;;;###autoload (defun jao-org-notes-backlinks () "Show a list of note files linking to the current one." -- cgit v1.2.3