-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Files have two icons next to them #198
Comments
Not a solution but I believe you can remove |
I want to thank you because this solved my problem entirely and the plugin is now working fine. UPDATE: I found the problem. IDK if this is a normal behavior, it didn't do that until the day I opened this thread. I will behave accordingly knowing that. UPDATE 2: it seems to trigger between folders and files if they contain the same words. |
I think this might be the culprit? from inspecting the packaged main.js const doesExistInPath = (plugin, path) => {
const folders = getFolders(plugin);
return Object.keys(folders).some((folderPath) => path.includes(folderPath));
}; for me I experience the same issue with "05. Meta/Templates" and "05. Meta/Temp", where the icons double up because one can be considered a substring of another. const inputString = "05. Meta/Templates";
const searchString = "05. Meta/Temp";
const result = inputString.includes(searchString);
console.log(result); // Output: true |
…d folders + Appended '/' to the end of folderPath strings in inheritance folder checks For issue: FlorianWoelki#198
Could you please give a rough outline on how to reproduce this issue with minimal effort? Thank you! |
Sure, my tests were with the word "Understandable" Create the following folders/files for testing:
Assign inheritance icons to each top and mid level folder. You should notice stacking icons. |
This should be fixed in 2.2.0 |
Describe the bug
Suddenly some files have two icons next to them, one is unclearable, I tried disabling the plugin, uninstalling it and/or the icon pack, moving the icon pack, nothing worked.
To Reproduce
I have no idea how to reproduce this bug, it appeared randomly one day.
Expected behavior
That the files have just one icon, the default behavior of the plugin.
Screenshots
Additional context
Knowing how to reset everything and clear icon's data inside a vault would be a great help for now.
UPDATE: I found the problem.
The issue appears only on PNG files I link in notes: the PNG file gets assigned the same icon as the note, and if you add another icon to the PNG itself it will show two icons. There is no way to get rid to the note's icon unless you remove it from the note where the PNG was embedded.
IDK if this is a normal behavior, it didn't do that until the day I opened this thread. I will behave accordingly knowing that.
UPDATE 2: it seems to trigger between folders and files if they contain the same words.
As an example, I have a folder named "Monsters" with an icon "dog".
Then if I create, anywhere in the vault, a note with "Monsters" in its name (i.e. "Amulet of Monsters").
This note WILL have the "dog" icon regardless. Can't remove it unless I remove "Monsters" from its name or remove the icon from the "Monsters" folder. If I assign another icon to the note, it will show two icons.
The text was updated successfully, but these errors were encountered: