Function: consult-recent-file

consult-recent-file is an autoloaded, interactive and byte-compiled function defined in consult.el.

Signature

(consult-recent-file)

Documentation

Find recent file using completing-read.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/consult-20260926.910/consult.el
;;;###autoload
(defun consult-recent-file ()
  "Find recent file using `completing-read'."
  (interactive)
  (consult--read
   (or
    (mapcar #'consult--fast-abbreviate-file-name (bound-and-true-p recentf-list))
    (user-error "No recent files, `recentf-mode' is %s"
                (if recentf-mode "enabled" "disabled")))
   :prompt "Find recent file: "
   :sort nil
   :require-match t
   :category 'file
   :state (consult--file-state)
   :history 'file-name-history))