-
-
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
Use icon (emoji) for file defined via icon:
property
#243
Comments
Thank you for the feature request. Might this be the same as #38? |
It sounds similar, but it's not quite clear what that FR is (latter comments don't help much either). It appears to be more to do with defining a file's icon via some detectable keyword in the Markdown (front matter value or tag) which obsidian-iconize would then reference against its known list of icon names and apply to the file. It also doesn't store the icon itself in the Markdown file like my FR suggests to do via emojis. In short, I see your plugin can display emoji next to file names and in tabs and I'd like to define that emoji per Markdown file via a YAML If this FR were to be implemented, reading the icon from both YAML and JSON front matter may need to be supported due to Obsidian supporting both (upon property edits via the UI, Obsidian rewrites JSON front matter to YAML anyway, so not supporting JSON |
I got you. Your request is really specific to Emojis, if I am not mistaken. That's why I am unsure of implementing this feature. I'll think about it. |
Perhaps a standalone plugin would better handle this, however it doesn't seem far removed to what this plugin already does: give symbols to things in Obsidian. Why not via an additional method? Thanks anyway. |
Why not do something similar to Obsidian Banners, where if emojis are entered they are shown as Twemoji / current selected preference in the icon itself, but allow typing in the icon ids defined by custom icon packs like "LiFileText" to use those instead, and just automate the selection through the Icon UI? |
The current workaround for the idea I have proposed in this FR is to rely on The |
That's what I am planning to implement as well (same for in text icons). |
icon:
propertyicon:
property
Would it be possible to include a Icon property as an optional override to the default functionality as mentioned by @redactedscribe in the original F.R? The icon itself can be defined similar to #273, a defined icons property would override that notes icon, as mentioned originally. (also it'd be nice to have an option to automatically assign a property when selecting an Icon from the UI where applicable. (not for folders) Having the Icons determinable in properties aligns with the Durability & Malleability obsidian aims to maintain within it's markdown files. I see where your coming from with it being confusing for some users, and I agree, obsidian really needs to add a way to make properties defined by plugins to be hidden so they dont clutter & confuse users, though, in the mean-time having it only auto-assign if you opt-in, and fundamentally being an override for the default functionality I feel resolves this, For folders it shouldn't really be an option as folder properties would fundamentally have to be defined within obsidian itself (if they added them), and at that point it's no different to just being in Iconize's data.json, as it doesn't allow for the durability & independance of the .md files produced with vanilla obsidian which should be completely independant from both obsidian, in-case someone wanted to migrate to logSeq/others (as said in the o.g. F.R by @redactedscribe) Also folder properties wouldn't be accessible from other markdown based tooling, like publishing tools (also mentioned earlier)
|
This has been resolved and added in >2.7.0! Cheers ☕ |
@FlorianWoelki I wanted to let you know that I've made a similar FR (snezhig/obsidian-front-matter-title#182) for another plugin due to the fact it supports modifying the displayed title (via |
Is your feature request related to a problem? Please describe.
The plugin saves the icons for files (and folders) somewhere external to the Markdown files. Specifically icons for files is what this FR is about.
Describe the solution you'd like
If I could define
icon:
as a front matter property and give it an emoji, the plugin could use its value for a file's icon.icon:
is a convention also used by Logseq (maybe the property name which defines the icon should be user-definable, e.g.iconize-icon:
?). It'd be good to check that the property's value is actually an emoji.Additional context
Having the file's icon defined in the Markdown would mean not losing such icon customisations if moving away from Obsidian or publishing with some other Markdown tool.
It's not clear whether if a file has been assigned an icon using the currently possible method, that it should be overridden if
icon:
exists within its Markdown, or vice versa, or to allow only one icon to be assigned to a file at a time. Ificon:
overrides, deleting the property would then have a fallback if the icon was also set using the current icon assigning method, which may or may not be what you want, but it sounds sane enough.Thanks.
The text was updated successfully, but these errors were encountered: