From 9b382b980d3cf604158754e7ce28090893b0f300 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 5 Mar 2021 02:10:46 +0000 Subject: config nits --- lib/org/jao-org-notes.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/org/jao-org-notes.el') diff --git a/lib/org/jao-org-notes.el b/lib/org/jao-org-notes.el index 9624a94..9cc343f 100644 --- a/lib/org/jao-org-notes.el +++ b/lib/org/jao-org-notes.el @@ -33,13 +33,12 @@ (defvar jao-org-notes--rg (concat "rg --null --line-buffered --color=ansi --max-columns=250" " --no-heading --line-number --smart-case" - " . -e \"^(#.(title|(file|roam_)tags): .*)ARG\" OPTS")) + " . -e \"^(#.(title|filetags): .*)ARG\" OPTS")) + +(defvar jao-org-notes--trx ":[0-9]+:#\\+\\(file\\)?\\(title\\|tags\\):") (defun jao-org-notes--clean-match (m) - (cons (replace-regexp-in-string ":[0-9]+:#\\+\\(roam_\\|file\\)?\\(title\\|tags\\):" - " (\\2)" - (car m)) - (cdr m))) + (cons (replace-regexp-in-string jao-org-notes--trx " (\\2)" (car m)) (cdr m))) (defun jao-org-notes--matches (lines) (let ((ms (consult--grep-matches lines))) -- cgit v1.2.3