mProjectsCode / mProjectsCode/obsidian-meta-bind-plugin

Option to remove "option" from modal elements of suggester

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

Nobody has claimed this yet.

blocked 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?

I recently started using the INPUT[suggester], and when I populate the options using either option('a') or option('b', 'path/b') the description field of the modal has the value option which is kind of useless.

So I'd like to have a method to remove this unneeded, or to make it useful somehow. Doing class() only affects the actual input field, and not the modal.

Example showcasing this behavior:

testing: `INPUT[suggester(option('a'), option('path/b', 'b')):hi]`

Which displays as:

Image

Describe the Feature you'd like

Either of the following options would be nice:

  • Some way to change the option() to also set the description field
  • For class() to also be applied to the modal
  • Possibly a flag to just not display the description field of the modal
Alternatives

Tried the class() variant, looked at the DOM finding nothing to anchor to. Tried the various variants of option() I could think of.

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 reproducing the INPUT[suggester] example with option() and inspect the resulting modal and DOM. Compare how option() and class() affect the input versus the modal, then define and implement one clear way to control the modal description. Done means the unwanted option text can be removed or intentionally replaced without changing the input behavior.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.