Function: projectile--dired

projectile--dired is a byte-compiled function defined in projectile.el.

Signature

(projectile--dired DIRED-FN &optional ARG)

Documentation

Open the project root in dired using DIRED-FN.

DIRED-FN is a dired-like command; passing dired-other-window or dired-other-frame yields the other-window/-frame variants. With ARG, prompt for a known project to open instead of the current one.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260930.434/projectile.el
;;; Dired, version control and recent files
;;
;; Commands that hand the project root to something else: Dired, the VC
;; interface, and `recentf' filtered down to the project.  The path of a
;; project's on-disk cache file is worked out at the end of it, having
;; nowhere better to live.

(defun projectile--dired (dired-fn &optional arg)
  "Open the project root in dired using DIRED-FN.
DIRED-FN is a `dired'-like command; passing `dired-other-window' or
`dired-other-frame' yields the other-window/-frame variants.  With ARG,
prompt for a known project to open instead of the current one."
  (funcall dired-fn
           (if arg
               (projectile-completing-read
                "Dired in project: " (projectile-relevant-known-projects)
                :category 'projectile-project
                :caller 'projectile-read-project)
             (projectile-acquire-root))))