bump: dirvish

hlissner/dirvish@5f046190e8 -> alexluigit/dirvish@f449754dd5

As of alexluigit/dirvish@f449754dd5, all of these hacks are obsolete and can
be safely removed (see Refs below).  The hack around `:commands
dirvish-find-entry-a dirvish-dired-noselect-a` is kept as it is because I don't
understand why that is necessary.

The latest upstream also includes fixes for #8170 and #8081 (respect
`dired-kill-when-opening-new-dired-buffer` option).

Ref: alexluigit/dirvish@3145513cb5
Ref: alexluigit/dirvish@24e612c39d
Ref: alexluigit/dirvish@15e2cd1925
Ref: alexluigit/dirvish@3bdb7f23b9
Ref: alexluigit/dirvish@1b905092f6
Ref: alexluigit/dirvish@d775e38b53
Ref: alexluigit/dirvish@f986123a4d
Ref: alexluigit/dirvish@0cd07f5f09
Fix: #8170
Fix: #8081
This commit is contained in:
Alex Lu
2025-02-22 04:16:53 +08:00
committed by GitHub
parent 39fe608cfc
commit e81b5796a3
3 changed files with 20 additions and 100 deletions

View File

@ -31,20 +31,21 @@ sidebars)."
(setq win nil))
(unless win
(call-interactively #'dirvish-side))
(when-let* (((not dirvish--this))
(dir (or (dirvish--get-project-root) default-directory))
(when-let* (((not (dirvish-curr)))
((not (active-minibuffer-window)))
(win (dirvish-side--session-visible-p))
(dv (with-selected-window win (dirvish-curr)))
((not (active-minibuffer-window)))
(file buffer-file-name))
(dir (or (dirvish--get-project-root) default-directory))
(prev (with-selected-window win (dirvish-prop :index)))
(curr buffer-file-name)
((not (string-suffix-p "COMMIT_EDITMSG" curr)))
((not (equal prev curr))))
(with-selected-window win
(when dir
(setq dirvish--this dv)
(let (buffer-list-update-hook) (dirvish-find-entry-a dir))
(if dirvish-side-auto-expand (dirvish-subtree-expand-to file)
(dired-goto-file file))
(dired-goto-file curr))
(dirvish-prop :cus-header 'dirvish-side-header)
(dirvish--setup-mode-line (car (dv-layout dv)))
(dirvish-update-body-h))
(setq dirvish--this nil)))))
(dirvish-update-body-h))))))
(select-window (dirvish-side--session-visible-p)))