mProjectsCode / mProjectsCode/obsidian-meta-bind-plugin

[Low Priority] An argument for limiting the number of selections in a multi select input

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

Nobody has claimed this yet.

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

This is NOT a necessary feature for me.
If it requires too much effort, please disregard this.

I'm mostly surprised that it wasn't already included.

Describe the Feature you'd like

Add and argument to specify the maximum number of selections that can be made.

i.e. If the new argument is limitSelect, then

```meta-bind
INPUT[multiSelect(
option(One),
option(Two),
option(Three),
limitSelect(2)]
```

Should produce a multi select list that will limit the maximum selection to 2

Alternatives

Maybe allow it to specify both max and minimum selections, and have the selections light up in the 'destructive' style (red) if the number of selections are above or below the range

Additional Context

This mainly for use with spaced repetition plugin for reviewing MCQs.

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 locating the existing multiSelect input implementation and how its options are parsed and rendered. Determine where a limitSelect argument could be handled, then verify that selecting beyond the maximum is prevented and that existing multi-select behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.