Skip to content

Commit

Permalink
use ripgrep if installed (closes l3kn#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
mithraen committed Dec 19, 2023
1 parent 9b41735 commit c503de7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion org-fc-awk.el
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ Matches all .org files ignoring ones with names don't start with
a '.' to exclude temporary / backup files.
With the '-L' option, 'find' follows symlinks."
(format
"find -L %s -name \"*.org\" -not -name \".*\" -print0"
(if (executable-find "rg")
"rg ^:FC_CREATED: -L -l --null -g '[^.]*.org' %s"
"find -L %s -name \"*.org\" -not -name \".*\" -print0")
(mapconcat
(lambda (path) (shell-quote-argument (expand-file-name path)))
paths " ")))
Expand Down

0 comments on commit c503de7

Please sign in to comment.