mProjectsCode / mProjectsCode/obsidian-media-db-plugin
Ability to rename the `type` frontmatter variable
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 491
- Forks
- 52
- Avg merge
- 2h 17m
- Merged PRs (30d)
- 1
Description
Is your feature request related to a problem? Please describe.
Seems like (can't find any documentation to confirm) that there are three frontmatter properties that Media DB depends on:
- id
- type
- dataSource
While id is pretty universal, and dataSource is unique, type is both too common and not always the correct term. For instance, in my vaults, I prefer content_type as it's more descriptive. type could refer to any number of other concepts. For instance, while the rest of the vault uses type as "internal" or "external", Media DB starts adding "book" to the used values.
Describe the solution you'd like
A simple configuration field in the settings to rename the property name. Similar to remapping, except with no option to remove it; it's either default or changed to a new value.
Additional context
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named in the issue. Start by searching the repository for the type frontmatter property and the settings implementation; done means users can choose the default name or a replacement such as content_type, with Media DB consistently using that configured name.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- content, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100