Function: majutsu-workspace-visit
majutsu-workspace-visit is an interactive and natively compiled
function defined in majutsu-workspace.el.
Signature
(majutsu-workspace-visit &optional DIRECTORY)
Documentation
Visit workspace at point.
If called with DIRECTORY, visit that directory. Otherwise, try to locate the workspace root automatically; if not found, prompt for it.
Key Bindings
This command is not in any keymaps.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-workspace.el
;;; Actions
;;;###autoload
(defun majutsu-workspace-visit (&optional directory)
"Visit workspace at point.
If called with DIRECTORY, visit that directory. Otherwise, try to locate the
workspace root automatically; if not found, prompt for it."
(interactive)
(let* ((root default-directory)
(dir (if directory
(file-name-as-directory (expand-file-name directory))
(majutsu-workspace--read-root (majutsu-workspace--read-name "Workspace: " root) root))))
(setq default-directory dir)
(setq majutsu--default-directory dir)
(if (majutsu-refresh)
(dired dir))))