What I’m trying to do
Ok, so the absolute simplest thing I’m trying to do is have a variable be able to be updated via a dropdown (with values I can provide as a list.) I want this variable to be adjustable which is part of the issue (ie. if you dropdown a new value, have it update the variable in the note.)
Things I have tried
- Used the Meta Bind plugin to do the dropdown via an Input (works well)
- Looked at QuickAdd (cannot seem to understand the macro portion)- that would dovetail with Linter to apply on save
- Use dataview- this works on my main vault but the testing one refuses to turn anything and I think it would insert a space where I am trying this anyhow (ie. tag:{{ variable1 }} )
- Meta Bind with a VIEW inline- can work but auto inserts a space and therefore does not nest against the tag: portion
- Varinote- cannot seem to get this to work properly- trying to avoid having to go to command palette. Could use with Linter BUT this seems to set once and forget.
Maybe some others. Essentially I found Meta Bind and thought I could set frontmatter and have a variable always reflect that in the note. This is not built-in to Obsidian as of this date that I can find (I saw an old thread but now lost that basically had the same thing I’m asking for.)
I know enough js to be dangerous (have done very light HTML work where I customized dropdowns with prebuilt values, attached them to an input, and it worked well.) But that is very little, I’m better at other languages, and am unsure about most of the Obsidian API and how it works (ie. I don’t know that there is a DOM like a webpage or how I set or pick the element I want to update.)
I definitely am not averse to using JS- just might need a little more guidance on something like that. From what I have searched I’m not sure a plugin does exactly what I need by itself but am willing to use a couple to achieve it. Just unsure what combo or what JS could get me what I am looking for.
Many thanks for reading the wall of text.