transpower-nz / open-scd

Apache License 2.0
4 stars 1 forks source link

Allow saving to file location on user's computer #21

Closed danyill closed 3 months ago

danyill commented 3 months ago

It would be useful in our engineering process to be able to provide OpenSCD rights to modify a file on the user's computer rather than them having to constantly save the file.

This is because in some applications, e.g. Siemens IEC 61850 Configurator it needs to access the scd from a particular location and this is not usually the user's Downloads folder.

As a result, any time mappings are required in OpenSCD, the work must be done, then the file moved to the correct location which makes the process more cumbersome than in necessary.

This can be done with the File System API and would not be hard for me to implement as most of the work for this was already done in https://github.com/danyill/oscd-automatic-backup/blob/main/oscd-automatic-backup.ts

Perhaps something like the Excalidraw interface which provides this functionality.

image

The biggest obstacle for me is that OpenSCD plugins typically expose only a single hamburger menu entry.

danyill commented 3 months ago

After a small flurry of activity, we now have https://github.com/danyill/oscd-save-as