fix(vertico): add +vertico/find-file-in stopgap

Temporarily disable embark actions (and as a result, marginalia
annotations) for +vertico/find-file-in and functions that use it, since
because currently the embark actions don't inherit the intended
default-directory, embark actions might run unintentional destructive
operations if there are files with the same name in the
default-directory and the directory +vertico/find-file-in is run on.

Ref #5494
This commit is contained in:
Itai Y. Efrat 2021-09-23 14:41:39 +03:00 committed by Henrik Lissner
parent f50bfdc703
commit 8b3b39532d

View file

@ -192,10 +192,11 @@ overrides `completion-styles' during company completion sessions.")
(add-hook 'marginalia-mode-hook #'all-the-icons-completion-marginalia-setup)) (add-hook 'marginalia-mode-hook #'all-the-icons-completion-marginalia-setup))
(advice-add #'marginalia--project-root :override #'doom-project-root) (advice-add #'marginalia--project-root :override #'doom-project-root)
(pushnew! marginalia-command-categories (pushnew! marginalia-command-categories
'(+default/find-file-under-here. file) ;; HACK temporarily disabled until #5494 is fixed
'(doom/find-file-in-emacsd . project-file) ;;'(+default/find-file-under-here. file)
'(doom/find-file-in-other-project . project-file) ;;'(doom/find-file-in-emacsd . project-file)
'(doom/find-file-in-private-config . file) ;;'(doom/find-file-in-other-project . project-file)
;;'(doom/find-file-in-private-config . file)
'(doom/describe-active-minor-mode . minor-mode) '(doom/describe-active-minor-mode . minor-mode)
'(flycheck-error-list-set-filter . builtin) '(flycheck-error-list-set-filter . builtin)
'(persp-switch-to-buffer . buffer) '(persp-switch-to-buffer . buffer)