AtomMaterialUI / a-file-icon-idea

Atom Material Icons for JetBrains - Replace File and UI Icons for better visual grepping.
http://www.material-theme.com/docs/configuration/icons-settings/#atom-material-icons-plugin
MIT License
220 stars 27 forks source link

If file name start with "[]", the file icon will be wrong #345

Closed Gargantua7 closed 1 year ago

Gargantua7 commented 1 year ago

Describe the bug

If file name start with "[]", the file icon will be wrong

I don't know what file's icon this is but I'm sure it's wrong And it didn't happen in the previous version Also appears on the browser plugin, so I think it might be a problem with the regex or the priority setting

To Reproduce

Create file and named to []*.*

Expected Behavior

eg. Kotlin file should show kotlin.svg ...

Environment

IntelliJ IDEA 2022.3.2 (Ultimate Edition) Build #IU-223.8617.56, built on January 26, 2023 Runtime version: 17.0.5+1-b653.25 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11 10.0

com.mallowigi (85.1.0)

Screenshots

image

welcome[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the issue template!

mallowigi commented 1 year ago

The regex for slug should be [.*].(js|kt...)

That's because slugs are usually [].js

Imo it's not something new.

Can I ask you why you need to have such file names if not for slugs?

Gargantua7 commented 1 year ago

The regex for slug should be [.*].(js|kt...)

That's because slugs are usually [].js

Imo it's not something new.

Can I ask you why you need to have such file names if not for slugs?

just like [<id>]<title>.kt I found the regex for the slug in the ide settings, it is ^\[.*\].*$

mallowigi commented 1 year ago

No but I mean, this is exactly what a slug file is... You should try to disable the associations if you don't want it