mProjectsCode / mProjectsCode/obsidian-media-db-plugin

Ability to rename the `type` frontmatter variable

Open
#241 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.