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

Vacuum definitions function for DataTypeTemplates #485

Closed
danyill opened this issue Jan 14, 2022 · 3 comments
Closed

Vacuum definitions function for DataTypeTemplates #485

danyill opened this issue Jan 14, 2022 · 3 comments
Assignees
Labels
Kind: Enhancement New Request Priority: Important Tackle eventually

Comments

@danyill
Copy link
Collaborator

danyill commented Jan 14, 2022

This is a feature request.

It would be useful to have a "vacuum definitions" function to remove unused LNodeTypes or DOTypes, DATypes or unused Enums in the DataTypeTemplates section. This is the kind of thing that other XML editing software (e.g. Inkscape) has.

I think this could usefully be part of the Templates section or it could be an additional menu item (although this is growing quickly and I guess we can't just keep adding menu items for forever...).

Even just for working on open-scd constructing a test case is more laborious than necessary even when I have the right starting material because I wish to keep a "simple" test file with as little extraneous data as possible. Currently, I manually edit and modify the types.

I like the name "Vacuum definitions" but "Remove unlinked types" would be more correct 😉

@JakobVogelsang
Copy link
Collaborator

Thanks for this issue. This is an interesting one that I did not have on screen. It fits very nicely with another feature wish #290 posted by @BurTah00. I would love to combine those in a menu type plug-in that I would call something like clean up. When clicking on the menu button, a dialog opens where the user selects the type of clean-up. Your wish would be one of those. I don't think we need to be complete from the beginning as it can grow but start with the two issues , this one and #290.

@JakobVogelsang
Copy link
Collaborator

@danyill would you say we can close this?

@danyill
Copy link
Collaborator Author

danyill commented Sep 24, 2022

Yes. Soon I will have a PR to improve the current state.

@danyill danyill closed this as completed Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Kind: Enhancement New Request Priority: Important Tackle eventually
Projects
None yet
Development

No branches or pull requests

2 participants