From fe064eac229e53231651af2ab1f48b5d4db65b91 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Tue, 26 Apr 2022 12:35:36 +0200 Subject: [PATCH] sn and snw: use rgrep instead of lgrep Signed-off-by: Andreas Gerler --- bba.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bba.org b/bba.org index 949527b1..772fbd80 100644 --- a/bba.org +++ b/bba.org @@ -1377,12 +1377,12 @@ Your notes are more useful if you can easily search them! (defun snw () "Search work notes." (interactive) - (lgrep (read-string "search for regex:") "work*.org" "~/workorg")) + (rgrep (read-regexp "Search for" 'grep-tag-default 'grep-regexp-history) "*.org" (file-truename "~/workorg"))) (defun sn () "Search notes." (interactive) - (lgrep (read-string "search for regex:") "notes.org" "~/org")) + (rgrep (read-regexp "Search for" 'grep-tag-default 'grep-regexp-history) "*.org" (file-truename "~/org"))) #+END_SRC -- 2.47.3