obsidian-library-plugin icon indicating copy to clipboard operation
obsidian-library-plugin copied to clipboard

[FR] Customizable Frontmatter

Open Ekrizdis367 opened this issue 4 months ago • 3 comments

It would be great if we could choose to use different property values for what the front matter is attached to.

For example, I'd prefer to use 'image' instead of 'cover' because I already use 'image' elsewhere.

It may also be useful to disable ones we don't care about importing or having.

Ekrizdis367 avatar Jul 20 '26 16:07 Ekrizdis367

Part of this is in: you can now choose the property that stores the cover in Settings → Library → Cover property, so image works. Existing notes keep working after the change.

Turning off individual fields isn't available yet. I'm keeping this issue open for that part. Which fields would you want to skip? That will help me decide how to design it.

venvk avatar Sep 25 '26 12:09 venvk

Thanks for shipping the Cover property rename — that covers the main case I cared about (image instead of Cover).

For what it's worth, I patched a broader version of this locally on an older 2.2.1 build before that landed. Roughly:

  • Rename map for any of the plugin's frontmatter keys (not only Cover)
  • Toggles to skip writing/importing individual fields I don't use
  • Per-category "template" properties seeded on create (e.g. watch/waiting on movies & series, play/waiting on games, reading/waiting on books)

That said, it probably doesn't matter much either way. If most people are mainly using Library as a metadata backend for Bases (or similar), the extra frontmatter is easy to ignore — you just never surface those columns. The Cover rename alone is enough for the common clash with an existing image property.

Happy to leave the disable-fields part as a nice-to-have if it isn't worth the settings complexity.

Ekrizdis367 avatar Oct 01 '26 14:10 Ekrizdis367

Thanks for the ideas. Two of them are in 2.4.0:

  • Category templates. In Settings → Library → Categories, open a category with its chevron and set Template to a note. New notes of that category start as a copy of it, so a property like Shelf: waiting and your own text come along. Library fills only the fields the template leaves empty.
  • Skip properties. Settings → Library → Skip properties takes the fields you don't want from the sources, for example Cast, Gallery, Trailer. New and refreshed notes leave them out.

A rename map for every field isn't planned: refresh, statistics, and sync read the fields by name, so renamed fields would break them. Cover property stays the one exception.

Release notes: https://github.com/Kigrok/obsidian-library-plugin/releases/tag/2.4.0 Details: https://github.com/Kigrok/obsidian-library-plugin/wiki/Templates-and-skipped-properties

venvk avatar Oct 03 '26 07:10 venvk