Hide and remove unused libraries on save
My PR #1194 adds a checkbox to the template preferences that says
Remove unused libraries on save
If checked logisim will only write those libraries in the .circ file that are actually used in the projects (addressing #802 ). This means that when reopening this .circ file, all unused build-in libraries will be "hidden" and all unused loaded libraries will not be loaded. This helps in cleaning the library browser.
Note that the build-in libraries can be easily made visible again.
For the moment the default is that this option is not activated. I would like to make this option default. All in favor please react with :+1: , the others with :-1:
Note that the build-in libraries can be easily made visible again.
Then Remove unused libraries on save sounds misleading and should rather read Hide unused libraries on load?
Note that the build-in libraries can be easily made visible again.
Then
Remove unused libraries on savesounds misleading and should rather readHide unused libraries on load?
Not really, as the libraries to load are "saved" in the logisim .circ file, hence if "gates" is not in the .circ file it will not be visible in the library tab :-)
Also the libraries visible at startup depend on the template used (plain, empty, default, or user), it indicates which build-in libraries are visible, which tools are on the toolbar, and which mouse-mappings are done. If you look at #1198, you will see the sections in the beginning with <lib> .... </lib> the libraries to "show" with their user applied settings for each tool, than <toolbar> ... </toolbar> with the tools in the toolbar, and than <mappings> .... </mappings> with the mouse mappings. The same goes for the templates (plain, empty, default, or user)
Removing unused libraries in saved .circ files is good to reduce dependencies to a minimum. So, I would like it to become default. However, there might be an undesired side effect, which may confuse our users. After loading the file in Logisim-evolution, suddenly some libraries might not be visible anymore -- even if they contain very commonly used components, e.g., plexers or for I/O. I think the minimum set of libraries shown should be configurable in the Preferences window and should be set to a sane default (see related issue #1200).
Is this included in 3.7.0? If yes, please close, otherwise please set 3.8.0 milestone.
@MarcinOrlowski , I leave it open, as we have to add it to the documentation (That's why I put a documentation label)