dired-sidebar icon indicating copy to clipboard operation
dired-sidebar copied to clipboard

Themes interact poorly with method of renaming dired buffer

Open Amorymeltzer opened this issue 3 years ago • 2 comments

I've use something like the following to rename by dired buffers:

(add-hook 'dired-after-readin-hook
          (lambda ()
            (rename-buffer (generate-new-buffer-name (concat "dired: " dired-directory)))))

When I set dired-sidebar-theme this goes totally haywire, running in an unbreakable loop until I crash Emacs. It happens for ascii, nerd, and vscode; I'm on the OSX terminal so icons appears to fall back to none, but I imagine it might happen there too?

No worries if you want to close this as it's not an issue with dired-sidebar directly, but wanted to open it in case there was something interesting to be done.

Amorymeltzer avatar Mar 31 '21 12:03 Amorymeltzer

I noticed that dired-sidebar doesn't cache a reference to the sidebar window. Maybe that would help in the long run? @jojojames Currently, the expected buffer name is used to dynamically select the window instead.

DivineDominion avatar Mar 05 '22 08:03 DivineDominion

Wouldn't be opposed to something if you can cook something up @DivineDominion

jojojames avatar Mar 05 '22 18:03 jojojames