Closed dinhngocvuong closed 3 years ago
Hi @dinhngocvuong, thanks for all the feedback!
Could you add an option to hide metadate that is empty
Next release will include a toggle in settings to ignore members with null (empty) values.
Suport Obsidian, Evernote links... Set the max length of URL
I need to look into this. I'm not familiar with Evernote or any obsidian plugin that handles this kind of plugin. Do you have any pointers? It might be a similar issue I have with #3
When I click the tag, the windows popup always open instead of search
ugh that's not good. Unfortunately I don't have access to any Windows machine to test this behaviour.
I did a change (next release) in hope it will fix it but it's a blind shot :S
I just upgraded to v0.7.0 and see most my above issues were fixed. Thanks a lot!
The Evernote link is similar to Obsidian link on #3
1 more question: How can I change the tag style like I cannot override your plugin style
And I prefer the sign "#" before the tag name.
Glad to hear!
I'm still looking into the evernote ones, should be straightforward but I don't want to add something without testing at all :)
At the moment you can't change the tag styles I'm afraid (nor add the #
in front of it), it's one of the consequences of having strong boundaries for the plugin. That said, I'm thinking in how could it be done though
Out of curiosity, what custom code do you use to have tags with different colours?
You can check it out https://forum.obsidian.md/t/meta-post-common-css-hacks/1978/13
So, the latest version should create links for Evernote and a custom property so you can add your own prefix for tags. E.g.
/* <your vault>/.obsidian/snippets/metatable.css */
.obsidian-metatable {
--metatable-tag-symbol: "#";
}
Great! Thank you for your help.
Hi @dinhngocvuong , I'm happy to say that with the new version 0.8.0, tag customisation is posslbe! Thanks for raising the issue, it has helped me learn a few bits :)
So, once you update the plugin you'll be able to do the following:
/* <your vault>/.obsidian/snippets/metatable.css */
.obsidian-metatable {
--metatable-tag-symbol: "#";
}
.obsidian-metatable::part(tag) {
background-color: pink;
}
.obsidian-metatable::part(tag warning) {
color: white;
background-color: gold;
}
.obsidian-metatable::part(tag danger) {
color: white;
background-color: red;
}
.obsidian-metatable::part(tag success) {
color: black;
background-color: limegreen;
}
Notice that the value that you have to use is the actual tag. Based on your screenshot it would be default
, warning
, success
and danger
.
Finally, and this is the reason for 0.8.1, if you have spaces in your tags (which I don't recommend) spaces are percent-encoded so a tag such as very dangerous
would require a rule such as:
.obsidian-metatable::part(tag very%20dangerous) {
color: yellow;
background-color: red;
}
I always start my note template with metadata, but some quick notes don't need the metadata, and I want to hide the text "Metadata" on preview page when there is nothing to show.
Umm, I fixed this case around version 0.8. I can certainly not reproduce it now. I'm testing with a clean obsidian vault with metatable 0.8.1 installed and nothing else.
Could you give me some details of version of Obsidian and metatable version please?
I use Obsidian 0.12.3 for Windows 10, Metatable 0.8.1
Code view
Preview view
Setting
Ah, thanks. Will look into this case soon
Ok, version 0.8.2 fixes this case where all top-level keys are null π
Something to note though is that it won't work if you have nested nulls, e.g.:
top:
child:
Because top
is technically not null even though that after pruning child
because it's null, then top
becomes null.
For now I'll keep it as a no-fix mainly because it would require a fairly expensive rework.
Could you please fix for the case: Ignored keys
In my case, I put cssclass
to Ignored keys
Code view
Preview view
Fixed π in 0.8.3 (when GitHub Actions comes back to liveβ¦)
Thank you for the quick fix! π
Hi! First of all thank you for this plugin! I have 3 requests:
Could you add an option to hide metadate that is empty
Suport Obsidian, Evernote links... Set the max length of URL
When I click the tag, the windows popup always open instead of search
Thank you!