On Fri, 20 Jan 2023 20:43:02 +0100, Johan Vromans <jvrom...@squirrel.nl> wrote:
> However, before a page is loaded, there is also a call to readLine but I > haven't quite found out who does the call, and why. Is it some kind of > peek at the document to see if it is a zim document? I now have a PoC implementation that uses additional zim headers. Content-Type: text/x-zim-wiki Wiki-Format: zim 0.6 Zim-Load: convert-to-zim mydocument.json Zim-Store: convert-from-zim --output mydocument.json Creation-Date: 2023-01-20T21:11:50+01:00 While this works nice for transparently loading/storing of alien documents there's still one important feature missing: zim uses the timestamp of the zim document to detect external changes and this timestamp is not updated when external tools modify the alien document. An alternative approach is to use a fuse filesystem that transparently converts documents from alien to zim format and vice versa. A bit like using a cannon to kill a gnat... Suggestions? -- Johan _______________________________________________ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp