Function: hyrolo-org-roam

hyrolo-org-roam is an autoloaded, interactive and byte-compiled function defined in hyrolo.el.

Signature

(hyrolo-org-roam STRING &optional MAX-MATCHES ORG-ROAM-FILES)

Documentation

Search org-roam-directory files for STRING or logical sexpression.

OPTIONAL prefix arg, MAX-MATCHES, limits the number of matches returned to the number given.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
;;;###autoload
(defun hyrolo-org-roam (string &optional max-matches org-roam-files)
  "Search `org-roam-directory' files for STRING or logical sexpression.
OPTIONAL prefix arg, MAX-MATCHES, limits the number of matches
returned to the number given."
  (interactive (let ((input-and-matching-files
		      (hyrolo-grep-input
		       #'read-string
		       "Find Org Roam directory string (or logical sexpression)"
		       (list (expand-file-name "*.org" org-roam-directory)))))
		 (list (car input-and-matching-files)
		       current-prefix-arg
		       (mapcar (lambda (f) (expand-file-name f org-roam-directory))
			       (cadr input-and-matching-files)))))
  (hsys-consult--org-roam-call-function
   (lambda ()
     (let ((hyrolo-file-list
	    (or org-roam-files (list (expand-file-name "*.org" org-roam-directory)))))
       (hyrolo-fgrep string max-matches)))))