Function: dirvish--new
dirvish--new is a natively compiled function defined in dirvish.el.
Signature
(dirvish--new &rest ARGS)
Documentation
Create and save a new dirvish struct to dirvish--sessions.
ARGS is a list of keyword arguments for dirvish struct.
Source Code
;; Defined in /nix/store/1gijwny2yx4fggrsb9l110h1ybs1gdk5-emacs-packages-deps/share/emacs/site-lisp/elpa/dirvish-20260725.1520/dirvish.el
(defun dirvish--new (&rest args)
"Create and save a new dirvish struct to `dirvish--sessions'.
ARGS is a list of keyword arguments for `dirvish' struct."
(let (slots new)
(while (keywordp (car args)) (dotimes (_ 2) (push (pop args) slots)))
(setq new (apply #'make-dirvish (reverse slots)))
;; ensure we have a fallback fullframe layout
(unless dirvish-default-layout (setf (dv-ff-layout new) '(1 0.11 0.55)))
(puthash (dv-id new) new dirvish--sessions)
(dirvish--check-dependencies new)
(dirvish--create-root-window new) new))