Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] load/save form definitions from files rather than settings #324

Open
danielo515 opened this issue Sep 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@danielo515
Copy link
Owner

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

This is a safety feature. It is yet have to be confirmed, but I think that, when you delete a obsidian plugin, the plugin folder (including its settings) gets deleted. This means that all the user form definitions will be lost.

Some people may like this, but some other people will prefer the ability to delete a plugin, keep their configs and be able to install it again without loosing any data.

Describe the solution you'd like

The plugin should ask for a "forms folder", similar to what templater does for templates and many other plugins do. Then load all the files in that folder and try to parse forms from them.
This introduces some complexity, so I'm not in a hurry to implement this, but I want to keep track of it anyway.

Also, this probably should be a configuration option, to enable or disable it.
Ideally, when you enable it user may choose to export all their forms to the folder.

Additional context
This introduces some complexity as I mentioned, that I will list here:

  • what should be the format? markdown with JSON sections? or just JSON files.
  • Should we use exclusively one source? or should we try to load from both?
  • Migrations will become slightly harder because people may change the files themselves (as they will be more visible), so probably a bit of more robust error handling is required.
@danielo515 danielo515 added the enhancement New feature or request label Sep 12, 2024
@danielo515 danielo515 added this to the Form runtime V2 milestone Sep 12, 2024
@danielo515 danielo515 self-assigned this Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant