On 12/30/2017 07:47 AM, Richard Owlett wrote:
On 12/29/2017 10:27 PM, null wrote:
The OP's problem is organizing the contents of his bookmarks file,
which is an sqlite file unamenable to manual editing.
I had in mind an end run around that problem.
SeaMonkey has two modes of dealing with sets of bookmarks:
1. Save/Restore which uses JSON
2. Export/Import HTML
The "Export" function resembles a lossy conversion of the JSON.
It does not _appear_ to preserve nesting information. I'll have
to run more tests to confirm. My initial test flopped as I've not
read the relevant Help contents.
I had in mind:
1. Save the bookmarks.
2. Pretty print the JSON to a file.
3. Edit the "pretty file" - awkward but doable.
4. "Uglify" {if required} to have syntactically correct JSON.
5. Replace the current set of bookmarks using "Restore" function.
Other people have worked on related tools.
Searching planet.mozilla.org and mozillazine.org has been productive.
In fact the second article on planet.mozilla.org {Templating JSON/YAML
with json-e} suggests some aspects of json-e would be applicable to my
problem.
I am also searching Debian repositories. Packages related to "aeson"
appear promising.
I'll have time to search as "Baby it's cold outside."
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey