mProjectsCode / mProjectsCode/obsidian-meta-bind-plugin

Support more literal types (such as lists) as values for the `option` argument

Open
#410 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

No response

Describe the Feature you'd like

I would like to provide lists ([item1, item2, item3]) as an option. I tried to use option('[item1, item2, item3]'), but the YAML variable is assigned the value "[item1, item2, item3]". I don't want the double-quotes. I'd like the list [item1, item2, item3] to be assigned to the YAML variable. I'm aware of multiSelect but for a variety of reasons, I don't want to build the list by selecting items 1, 2 and 3 individually from a list of options. One reason is that another option is [item3, item4] and another is [item1, item3]. So you see, I have pre-defined lists that I'd like to provide as options to choose from.

Alternatives

No response

Additional Context

No response

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

Start by tracing how the option argument is parsed and how its value is assigned to a YAML variable. Check the existing handling for literal values and multiSelect, then verify that predefined list options remain lists rather than becoming quoted strings.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.