-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Automatically add icon based on tags/frontmatter #38
Comments
Lovely idea. I need to think of it. Thanks for the suggestion! |
@ReedWriter : could the SuperCharged Links plugin be what you need? |
So, for example, if a file is a png, jpg, bmp it would load a specific icon, and if the file extension was something else like md it would have a different icon? Am I understanding that correctly? I love that idea. |
This could be a great improvement to the plugin |
I understood this feature request to be to extend the existing "Custom Icon Rules" feature, which currently matches with regexes against file names, to also match against tags. So - as an example - a file tagged with 'idea' might be automatically assigned the icon for 'llightbulb'. This would be useful to me in a number of contexts. For example, I would like to add an icon to the folder index document. The name of that document depends on the folder name, so this is unpredictable, but all of these documents have a tag called "index" in the frontmatter. It would be great if these showed up in the file explorer with an automatically assigned icon. Anyway - thanks for the very useful plugin :-) |
Thank you! What you've described seems to be already possible in Iconize. |
@FlorianWoelki I can't see this functionality....? If I tag a file with the tag I have tried each of these Custom Icon Rules to match files tagged with
What am I missing? |
Aah ok got it. Tags are currently not supported. Sorry for the misinformation. |
Seconding that this is a feature I really really need! Especially because as it is right now notes created from templates do not retain the icon. |
Adding my vote to this :)! In this way, icons could automatically be based on the frontmatter and iconize would be a match in heaven for people using a lot of different templates 🤝 The way I imagine it is to either support properties or have a specific property for an icon like #243, in this way the icon is note dependent on the note title. |
This is now finally released in v2.7.0. |
thank you 🙏 |
I can't seem to find the correct name for the icons. Alternatively, would it be possible that when we change the icon of a note through the context menu, it saves the choice in the frontmatter? |
I'm also getting the "icon not found" message. Using emojis, for example looking for the icon called "calendar" |
I need some sort of reproduction for that. For me the frontmatter property works as expected. |
FYI: emojis are not working atm, working on a fix. Will be probably fixed by tomorrow (see #284) |
I was able to find the correct names for the icons. Once I uninstalled that plugin, I could finally find the correct names and the plugin indeed works as expected. |
So what is the way to add icons based on tags then? |
---
tags:
icon: FarSquare
--- You have to use the icon name to make it appear. Otherwise you'll get the "icon not found" error. |
Since the feature has been merged an released, i would love to turn your attention to this issue: #321 The implementation as of now is good, but not quite handy, since in order to get e.g. a todo-esque mechanism, you would need to enter the above to a note. The UX would be much better if tags would be supported correctly or otherwise if we could add aliases to icons (e.g. that |
Just opened a PR (#353) to offer a way to automatically add icons based on tags using custom rules. @paulwalk @danielo515 you guys might be interested. Here's an example rule that would match a particular tag:
|
I'm a bit confused by this. If I understand several comments in this thread correctly, this issue is about setting icon rules via tags, e.g. assign |
It would be great to have the ability to define and add an icon either by the tags a note contains or through frontmatter.
The text was updated successfully, but these errors were encountered: