Provide an implementation of suggest input for plugins to use

Use case or problem

Many plugins require an input that suggests possible values while the iser types. Usually for paths to folders, templates etc. Currently there is no API method on the Setting class for doing this.

Proposed solution

Provide a methos like the existing ones that renders a suggestion input

Current workaround (optional)

Most plugins are copy pasting a very good implementation from periodic notes. Maybe that code could just be adopted to prevent duplications

Related feature requests (optional)

2 Likes

I second this. Obsidian internally already has a custom implementation (used for example in the Templates settings), but it is not exposed. It would be enough to expose that.

1 Like

Exactly. This will save a lot of code for a lot of plugins that are currently bundling the same duplicated implementation

1 Like