Function: projectile-switch-open-project
projectile-switch-open-project is an autoloaded, interactive and
byte-compiled function defined in projectile.el.
Signature
(projectile-switch-open-project &optional ARG)
Documentation
Switch to a project we have currently opened.
Invokes the command referenced by projectile-switch-project-action on switch.
With a prefix ARG invokes projectile-commander instead of
projectile-switch-project-action.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
;;;###autoload
(defun projectile-switch-open-project (&optional arg)
"Switch to a project we have currently opened.
Invokes the command referenced by `projectile-switch-project-action' on switch.
With a prefix ARG invokes `projectile-commander' instead of
`projectile-switch-project-action.'"
(interactive "P")
(let ((projects (projectile-relevant-open-projects)))
(if projects
(projectile-completing-read
"Switch to open project: " projects
:action (lambda (project)
(projectile-switch-project-by-name project arg))
:caller 'projectile-read-project)
(user-error "There are no open projects"))))