I have now thoroughly re-worked the snippet viewer, aka, snippet collector. The following changes were made:

  • The basic snippet viewer and the itemized viewer have been combined into a single interface that can be controlled with the checkbox in the title: “unchecked” will render snippets in the basic mode, while “checked” will render snippets in itemized mode. The two types can be combined in a single display.
  • The search box in the Color Chooser has been improved. It will work for itemized snippets as well as for basic snippets.
  • It is now possible to store more than one snippet collection. The box in the “Store” section can be used to specify a name for the collection. (Default name is “snippetCollection”.)
  • Coloring is now saved along with the snippets. It should however be noted that when retrieving a stored collection, the coloring is not restored automatically. There is a “restore coloring” button. Clicking this will restore color to all snippets that were saved with coloring. The reasons for why this was necessary were technical.
  • There is a menu to allow choosing snippet collections. Note that collections will be retrieved in either basic or itemized mode, depending on the setting in the title bar, and regardless of how they were saved. Saved coloring will be restored to either type.
  • There is a “Storage Viewer” page. This will show the contents of local storage, and show all collections in list form (as text). The intention is for this to be useful for managing collections: saving (to “disk”, i.e., not in browser storage), deleting collections, loading saved collections, and transferring from one browser to another. These features have not yet been implemented.

Leave a Reply

Your email address will not be published. Required fields are marked *