mProjectsCode / mProjectsCode/obsidian-meta-bind-plugin
Bases Formulas Support for VIEW fields
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1k
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
Please fill out these Check-boxes
- I checked for existing similar feature requests
- I have read the docs and checked that the feature I am requesting is not already implemented
- My feature request consists of only one feature
Is your Feature Request related to a Problem or Annoyance?
If i have
html(
"<span style='font-size:24px; color:" +
if(Rank<=3, "#CD7F32",
if(Rank<=6, "#C0C0C0",
if(Rank<=9, "#FFD700",
"#a570f5"
)
)
) +
"'>" +
if(Rank==Rank.floor(),
"✦".repeat((Rank-1) % 3 + 1) +
"✧".repeat(3 - ((Rank-1) % 3 + 1)),
"✧✧✧"
) +
"</span>"
)
style formula, i don't see a way to render an equivalent inline using MetaBind without JS.
(it takes a number and produces ✦✧✧ <span style="font-size: 24px; color:#a570f5">✦✧✧</span>)
Describe the Feature you'd like
Add support for formulas inside of the View.
Alternatives
As it is probably too much, as MetaBind uses different logic, just enhancing with some functions is also an option.
Additional Context
https://forum.obsidian.md/t/display-formulas-inline/108400/3
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
The issue names no files or tests. Start by reproducing the HTML/style formula example in an Obsidian note and compare it with the View field behavior; done means formulas are supported in View fields, including the shown output.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100