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] Create select list for folders within a parent folder. #307

Open AucklandIO opened 2 months ago

AucklandIO commented 2 months ago

Is your feature request related to a problem? Please describe. DVjs queries within Modal Forms cant call obsidian API to resolve folder names across the vault, or within parent directories.

Describe the solution you'd like I would like to be able to dynamically create a select list of folder names within a "folder list" delimited by a Parent folder (as related to feature request #305.)

I would like a new field type called "Select Folders" or "Folder List" that generates a list of folders from within a designated parent folder. It should return the name of the folder selected only, and save it as a string in the properties. It should also have the ability to save the full path of the folder selected from root to that folder.

Additional context

This would help me form fill file paths really easily. I currently have a layered organization/vault management schema that requires me to create a number of files simultaneously that all share a specific directory structure. If this feature were implemented, I could easily designate where templated files created by a modal form were destined to be saved, eliminating SO MUCH housekeeping.

This would really be a life-saver.