Function: consult-locate

consult-locate is an interactive and natively compiled function defined in consult.el.

Signature

(consult-locate &optional INITIAL)

Documentation

Search with locate for files which match input given INITIAL input.

The input is treated literally such that locate can take advantage of the locate database index. Regular expressions would often force a slow linear search through the entire database. The locate process is started asynchronously, similar to consult-grep. See consult-grep for more details regarding the asynchronous search.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/6higv2v1wk916v4ynnybyrdkfy2gq44d-emacs-packages-deps/share/emacs/site-lisp/elpa/consult-20261004.957/consult.el
;;;###autoload
(defun consult-locate (&optional initial)
  "Search with `locate' for files which match input given INITIAL input.

The input is treated literally such that locate can take advantage of
the locate database index.  Regular expressions would often force a slow
linear search through the entire database.  The locate process is started
asynchronously, similar to `consult-grep'.  See `consult-grep' for more
details regarding the asynchronous search."
  (interactive)
  (find-file (consult--find "Locate: " #'consult--locate-builder initial)))