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-20260820.1509/projectile.el
(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))))