-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support dired-subtree
(No icons showed in dired-subtree
)
#3
Labels
enhancement
New feature or request
Comments
rainstormstudio
changed the title
No icons showed in
Support Apr 22, 2023
dired-subtree
dired-subtree
(No icons showed in dired-subtree
)
This should add icons to the dired subtrees (advice-add 'dired-subtree-toggle :after (lambda ()
(interactive)
(when nerd-icons-dired-mode
(revert-buffer)))) |
Thanks for the insight! This hack works for me! Using a anonymous function in an advice makes it hard to be removed later, I have made a slightly modification of this piece of code to make it less intrusive: (defun my:dired-subtree-add-nerd-icons ()
(interactive)
(revert-buffer))
(defun my:dired-subtree-toggle-nerd-icons ()
(when (require 'dired-subtree nil t)
(if nerd-icons-dired-mode
(advice-add #'dired-subtree-toggle :after #'my:dired-subtree-add-nerd-icons)
(advice-remove #'dired-subtree-toggle #'my:dired-subtree-add-nerd-icons))))
(use-package nerd-icons-dired
:hook ((dired-mode . nerd-icons-dired-mode)
(nerd-icons-dired-mode . my:dired-subtree-toggle-nerd-icons)))
|
milanglacier
added a commit
to milanglacier/dotemacs
that referenced
this issue
Aug 6, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
example setup
step to reproduce:
C-x d
TAB
key, the subtree is expanded.The text was updated successfully, but these errors were encountered: