mProjectsCode / mProjectsCode/obsidian-meta-bind-plugin

Number input min/max argument

Open
#279 2 comments 2 reactions 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

Is your Feature Request Related to a Problem?

No response

Describe the Feature you'd Like

One feature I live about the slider is the ability to sat a min and a max, but it doesn't always fit well with the note being created. So, pretty please, can we have min/max added for number inputs too.

I feel if a number is added that is outside the given range, it resets to the closest number inside its range
so, if its max is 30, and I insert 31, it should reset to 30
Same in the inverse, if the min is 0, and I insert -1, then it should reset to 0.

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 locating the implementation of number inputs and the existing slider min/max handling. Trace how input values are validated and updated, then verify that values above max clamp to max and values below min clamp to min, without changing behavior when no bounds are provided.

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
64/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.