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
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.
As of Obsidian 1.4.10, the API includes AbstractInputSuggest, which is the base class that we use internally for adding suggestions to Settings inputs.
We recommend using this instead of the implementation ripped from Periodic Notes (which uses the popperjs lib, instead of the positioning logic that Obsidian uses internally).
I still feel like I’m re-inventing the wheel a bit, as that code clearly exists in a nicer and more powerful form in the Frontmatter editor, but this does work