Function: majutsu-workspace-copy-root

majutsu-workspace-copy-root is an interactive and natively compiled function defined in majutsu-workspace.el.

Signature

(majutsu-workspace-copy-root NAME &optional ROOT)

Documentation

Copy the root directory of workspace NAME to the kill ring.

ROOT defaults to default-directory.

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
(defun majutsu-workspace-copy-root (name &optional root)
  "Copy the root directory of workspace NAME to the kill ring.
ROOT defaults to `default-directory'."
  (interactive (list (majutsu-workspace--prompt-name "Workspace: ")))
  (let* ((directory (majutsu-workspace--read-root name root))
         (path (directory-file-name directory)))
    (kill-new path)
    (message "%s (copied)" path)))