← Back to team overview

zim-wiki team mailing list archive

Re: Using Zim as document editor

 

On Fri, 20 Jan 2023 20:43:02 +0100, Johan Vromans <jvromans@xxxxxxxxxxx>
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


Follow ups

References