diff options
author | jao <jao@gnu.org> | 2022-09-01 03:05:49 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2022-09-01 03:05:49 +0100 |
commit | 88c84d72b2eb407983ccabfdd48b9ec3a20a40a2 (patch) | |
tree | f709bdea12094ca42c42435ff273b6d10becab5d /lib | |
parent | 12c06e17d1012afda4813fef7486b1d8c2e2ab0f (diff) | |
download | elibs-88c84d72b2eb407983ccabfdd48b9ec3a20a40a2.tar.gz elibs-88c84d72b2eb407983ccabfdd48b9ec3a20a40a2.tar.bz2 |
jao-org-notes: filetags -> tags; colon-separated tags
Diffstat (limited to 'lib')
-rw-r--r-- | lib/doc/jao-org-notes.el | 12 |
1 files changed, 8 insertions, 4 deletions
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." |