Function: projectile--vterm
projectile--vterm is a byte-compiled function defined in
projectile.el.
Signature
(projectile--vterm &optional NEW-PROCESS OTHER-WINDOW)
Documentation
Invoke vterm in the project's root.
Use argument NEW-PROCESS to indicate creation of a new process instead. Use argument OTHER-WINDOW to indicate whether the buffer should be displayed in a different window.
Switch to the project specific term buffer if it already exists.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile--vterm (&optional new-process other-window)
"Invoke `vterm' in the project's root.
Use argument NEW-PROCESS to indicate creation of a new process instead.
Use argument OTHER-WINDOW to indicate whether the buffer should
be displayed in a different window.
Switch to the project specific term buffer if it already exists."
(let* ((project (projectile-acquire-root))
(buffer (projectile-generate-process-name "vterm" new-process project)))
(unless (require 'vterm nil 'noerror)
(error "Package 'vterm' is not available"))
(if (buffer-live-p (get-buffer buffer))
(if other-window
(switch-to-buffer-other-window buffer)
(switch-to-buffer buffer))
(projectile-with-default-dir project
(if other-window
(vterm-other-window buffer)
(vterm buffer))))))