mProjectsCode / mProjectsCode/obsidian-meta-bind-plugin

Bases Formulas Support for VIEW fields

Open
#639 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request waiting on upstream change
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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.