danielo515 / obsidian-modal-form

Define forms for filling data that you will be able to open from anywhere you can run JS
https://danielorodriguez.com/obsidian-modal-form/
MIT License
199 stars 17 forks source link

[Feature request] make the template picker modal (not the input) part of the public API #171

Open danielo515 opened 8 months ago

danielo515 commented 8 months ago

Is your feature request related to a problem? Please describe.

I think it will be cool if the existing template picker modal (the one that looks like obsidian quick switcher) be part of the public API so people can use it when they want to trigger conditionally forms

Describe the solution you'd like

The API could take a callback that will be called with the result template picked by the user, or not call it if the modal gets cancelled

Additional context