Function: consult--find

consult--find is a byte-compiled function defined in consult.el.

Signature

(consult--find PROMPT BUILDER INITIAL)

Documentation

Run find command in current directory.

The function returns the selected file. The filename at point is added to the future history.

BUILDER is the command line builder function. PROMPT is the prompt. INITIAL is initial input.

Source Code

;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/consult.el
;;;;; Command: consult-find

(defun consult--find (prompt builder initial)
  "Run find command in current directory.

The function returns the selected file.
The filename at point is added to the future history.

BUILDER is the command line builder function.
PROMPT is the prompt.
INITIAL is initial input."
  (consult--read
   (consult--process-collection builder
     :transform (consult--async-map (lambda (x) (string-remove-prefix "./" x)))
     :highlight t :file-handler t) ;; allow tramp
   :prompt prompt
   :sort nil
   :require-match t
   :initial initial
   :add-history (thing-at-point 'filename)
   :category 'file
   :history '(:input consult--find-history)))