Closed Caliv0 closed 1 year ago
Matching icons is something that happens a lot, so treemacs keeps the algorithm as simple as possible. To get the icon for a file treemacs will first look at the entire filename. If it finds nothing it looks at the file's extension, which is defined as anything after the name's last period.
If you want to change that behavior you can look at treemacs-file-extension-regex
.
The dir-open & -closed is a fairly new feature. I've added some documentation for it (in the admittedly very large readme).
I'm trying to set a custom icon for files like
*.actions.ts
Is there some kind of wildcard, or a way to match against regex?This is my latest attempt, but it doesn't match files like
login.actions.ts
orcore.actions.ts
.For context, the rest of my config. Everything besides
reducers.ts
,state.ts
,selectors.ts
andactions.ts
works perfectly.I'm new to lisp and Emacs in general, but I took me a while to figure out that
foldername-open/close
is something that would work.