Alexander-Miller / treemacs

GNU General Public License v3.0
2.05k stars 151 forks source link

Question: Keep icon properties for opened collapsed directories #1092

Closed luiznux closed 4 months ago

luiznux commented 4 months ago

Hi! First of all thanks for the amazing package!

Recently I'm trying to create a new theme for treemacs and I noticed that even with the default theme, when collapsed directories are opened the color/icon loses its properties :

Closed image

Opened image

I know if set treemacs-collapse-dirs with different values, the problem will be solved, but my idea is to keep the folder color/icon even when its directories are collapsed.

Is there a way to keep its color/icon even when collapsed?

Like passing a regex on extension definition but only for folders, example:

(treemacs-create-icon :extensions ("^src.*-open" .........)

Thanks! :)

Alexander-Miller commented 4 months ago

You mean the directories losing their name-specific icons? That's just a bug that you've found that I need to fix now.

Alexander-Miller commented 4 months ago

Pushed a new version, try now.

luiznux commented 4 months ago

Thank you very much! Works perfectly.

image

Alexander-Miller commented 4 months ago

:+1: