mirror of
https://github.com/chrisbarrett/nursery
synced 2025-09-04 15:03:32 -05:00
Always apply --json flag for ripgrep search
This commit is contained in:
@@ -63,8 +63,8 @@
|
|||||||
:group 'org-roam-search
|
:group 'org-roam-search
|
||||||
:type 'string)
|
:type 'string)
|
||||||
|
|
||||||
(defcustom org-roam-search-ripgrep-flags '("--follow" "--smart-case" "--json")
|
(defcustom org-roam-search-ripgrep-extra-flags '("--follow" "--smart-case")
|
||||||
"The flags to apply when searching via ripgrep."
|
"Extra flags to apply when searching via ripgrep."
|
||||||
:group 'org-roam-search
|
:group 'org-roam-search
|
||||||
:type '(list string))
|
:type '(list string))
|
||||||
|
|
||||||
@@ -167,7 +167,7 @@ would be excluded."
|
|||||||
(defun org-roam-search--ripgrep-for-nodes (query)
|
(defun org-roam-search--ripgrep-for-nodes (query)
|
||||||
(let ((reporter (make-progress-reporter "Searching nodes"))
|
(let ((reporter (make-progress-reporter "Searching nodes"))
|
||||||
(files (ht-create))
|
(files (ht-create))
|
||||||
(ripgrep-args (append org-roam-search-ripgrep-flags (list query org-roam-directory))))
|
(ripgrep-args (append org-roam-search-ripgrep-extra-flags (list "--json" query org-roam-directory))))
|
||||||
(async-wait
|
(async-wait
|
||||||
(apply 'async-start-process "ripgrep" org-roam-search-ripgrep-program
|
(apply 'async-start-process "ripgrep" org-roam-search-ripgrep-program
|
||||||
(lambda (_)
|
(lambda (_)
|
||||||
|
Reference in New Issue
Block a user