Function: hyrolo-grep-input
hyrolo-grep-input is a byte-compiled function defined in hyrolo.el.
Signature
(hyrolo-grep-input READ-FUNCTION PROMPT &optional PATH-LIST)
Documentation
Use consult-grep if available or READ-FUNCTION with PROMPT.
Grep over optional path-list or hyrolo-file-list, which may contain
wildcards. When using the consult package, return the input read which is
a list of (string-or-regexp-to-match (files-to-search)) to be fed to a
HyRolo grep call. When not using consult, return a list of
(string-or-regexp-to-match) and hyrolo-file-list provides the list of
files to search.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hyrolo.el
(defun hyrolo-grep-input (read-function prompt &optional path-list)
"Use `consult-grep' if available or READ-FUNCTION with PROMPT.
Grep over optional `path-list' or `hyrolo-file-list', which may contain
wildcards. When using the `consult' package, return the input read which is
a list of (string-or-regexp-to-match (files-to-search)) to be fed to a
HyRolo grep call. When not using `consult', return a list of
\(string-or-regexp-to-match) and `hyrolo-file-list' provides the list of
files to search."
(if (and (hsys-consult-active-p)
(bound-and-true-p vertico-mode))
(hsys-consult-get-exit-value
'(list (car vertico--input) vertico--groups)
(if (eq read-function #'read-string)
#'hyrolo-consult-fgrep
#'hyrolo-consult-grep)
nil nil path-list
prompt)
(let ((result (funcall read-function (concat prompt ": "))))
(if (listp result)
result
(list result)))))