obsidian_supercharged_links icon indicating copy to clipboard operation
obsidian_supercharged_links copied to clipboard

FR: Add possibility to customize fileClass field name

Open dmantula opened this issue 3 years ago β€’ 1 comments

It's a common case when a category field is used to categorize the notes. And each category has its own set of fields.

For instance, a category person might have a field dateOfBirth or gender. A category city might have country.

This perfectly matches with fileClass feature.

Currently I have to duplicate the fields:

category: city
fileClass: city
country: Ukraine πŸ‡ΊπŸ‡¦

It would be fine if there was a setting to overwrite the fileClass field name. In the case above, I would just overwrite it with category and have the notes like:

category: city
country: Ukraine πŸ‡ΊπŸ‡¦

dmantula avatar Dec 28 '21 09:12 dmantula

Thinking forward, it would be nice if we can select fileClass (overwritten by category in the example above) for new notes.

I see the following flow:

  • User runs the command Supercharged Links: Select fileClass
  • The list of files in class files folder is loaded and shown
  • User selects or types the fileClass name
  • The field fileClass (or how it's overwritten) is added to the frontmatter, as well as the keys from the class file.

dmantula avatar Dec 28 '21 09:12 dmantula