Function: dirvish-dwim

dirvish-dwim is an interactive and natively compiled function defined in dirvish.el.

Signature

(dirvish-dwim &optional PATH)

Documentation

Open PATH in a fullframe session if selected window is the only window.

Prompt for PATH if called with M-x universal-arguments (universal-arguments), otherwise PATH defaults to default-directory. If there are other windows exist in the selected frame, the session occupies only the selected window.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/1gijwny2yx4fggrsb9l110h1ybs1gdk5-emacs-packages-deps/share/emacs/site-lisp/elpa/dirvish-20260725.1520/dirvish.el
;;;###autoload
(defun dirvish-dwim (&optional path)
  "Open PATH in a fullframe session if selected window is the only window.
Prompt for PATH if called with \\[universal-arguments], otherwise PATH
defaults to `default-directory'.  If there are other windows exist in the
selected frame, the session occupies only the selected window."
  (interactive (list (and current-prefix-arg (read-directory-name "Dirvish: "))))
  (dirvish--try-reuse path 'dwim))