mProjectsCode / mProjectsCode/obsidian-meta-bind-plugin
[Low Priority] An argument for limiting the number of selections in a multi select input
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?
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
- 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
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