Re: [Zim-wiki] Using Zim as document editor

2023-01-21 Thread Johan Vromans
On Sat, 21 Jan 2023 12:27:12 -0500, Joseph Reagle wrote: > Hi Johan, FYI: there's been a long-standing issue for Zim to move to the > markdown format, While interesting, it is not related to this thread. > Do you mean Zim regularly polls the files (via something like >

Re: [Zim-wiki] Using Zim as document editor

2023-01-21 Thread Joseph Reagle
Hi Johan, FYI: there's been a long-standing issue for Zim to move to the markdown format, and supposedly some work has been done, but I don't know the status: https://github.com/zim-desktop-wiki/zim-desktop-wiki/issues/26 A method of converting any format is certainly an interesting idea.

Re: [Zim-wiki] Using Zim as document editor

2023-01-21 Thread Johan Vromans
On Sat, 21 Jan 2023 15:26:23 +, Jack wrote: > I have no idea, but wonder whether it is possible to create a new zim > document and then pour the contents of the old one into it. The problem is that when the alien document changes, there is no way to update the corresponding zim document.

Re: [Zim-wiki] Using Zim as document editor

2023-01-21 Thread Johan Vromans
On Fri, 20 Jan 2023 20:43:02 +0100, Johan Vromans 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

Re: [Zim-wiki] Using Zim as document editor

2023-01-20 Thread Johan Vromans
On Thu, 5 Jan 2023 13:04:07 +0100, Johan Vromans wrote: > What I would like to have is a load and store hook where I can perform the > conversions. I want the file on disk to be in the 'alien' format, while > zim only 'sees' zim format. Looking at the code I see that Zim uses readLines (in

Re: [Zim-wiki] Using Zim as document editor

2023-01-05 Thread Johan Vromans
Hoi Jaap, On Thu, 5 Jan 2023 11:23:11 +0100, Jaap Karssenberg wrote: > The workflow basically relies on "covert xyz --> zim, edit zim, convert > zim --> xyz". Obviously, the bottleneck is the accuracy of the converter > to reproduce the original content as close as possible and reflect the >

Re: [Zim-wiki] Using Zim as document editor

2023-01-05 Thread Jaap Karssenberg
P.S. Just noticed that pandoc only converts _to_ zim, so on the way back, you need to use something like export _from_ zim to markdown and then potentially pandoc to convert from markdown to other formats ... sounds like there is a good plugin proposal here to directly use pandoc on import /

Re: [Zim-wiki] Using Zim as document editor

2023-01-05 Thread Jaap Karssenberg
Hallo Johan, Jij ook de de beste wensen voor het nieuwe jaar ! The workflow basically relies on "covert xyz --> zim, edit zim, convert zim --> xyz". Obviously, the bottleneck is the accuracy of the converter to reproduce the original content as close as possible and reflect the edits properly.

Re: [Zim-wiki] Using Zim as document editor

2023-01-03 Thread Loren Rosen
For the save/export side, one possibility would be to do this:-- in Zim do File -> Print to Browser.-- in the browser, print or save to PDF. (The details of how do this vary by browser and o/s. You may have to install things and configure the browser. There's also in zim a File -> Export...

Re: [Zim-wiki] Using Zim as document editor

2023-01-02 Thread Little Girl
Hey there, Johan Vromans wrote: >Little Girl wrote: >I did some experiments and it seems that this is not a viable >approach. One of the reasons is that Zim does not recognize wiki >markup when receiving data from the custom tool. Ah, that makes sense. >For example a simple 'cat' filter, run

Re: [Zim-wiki] Using Zim as document editor

2023-01-02 Thread Johan Vromans
On Mon, 2 Jan 2023 13:01:38 -0500, Little Girl wrote: > That should be under your control with the custom command you decide > to use. If I'm understanding the purpose of the Custom Tools interface > correctly, it's just an internal interface that lets you run commands > from within Zim that you

Re: [Zim-wiki] Using Zim as document editor

2023-01-02 Thread Little Girl
Hey there, Johan Vromans wrote: >Little Girl wrote: >> I haven't tried it, but this should be possible with the Custom >> Tools option inside the Tools menu. >Thanks for the suggestion. As far as I can see this will allow >installing commands that modify (parts of) the current contents. >While

Re: [Zim-wiki] Using Zim as document editor

2023-01-02 Thread Johan Vromans
On Mon, 2 Jan 2023 07:49:16 -0500, Little Girl wrote: > I haven't tried it, but this should be possible with the Custom Tools > option inside the Tools menu. Thanks for the suggestion. As far as I can see this will allow installing commands that modify (parts of) the current contents. While

Re: [Zim-wiki] Using Zim as document editor

2023-01-02 Thread Little Girl
Hey there, Johan Vromans wrote: >Best wishes for 2023! The same to you. >I was wondering... Would it be possible to use Zim as an editor for >documents that are not Zim notes. > >For example, when I open a particular document, instead of reading >it from disk Zim would run a plugin or an

[Zim-wiki] Using Zim as document editor

2023-01-02 Thread Johan Vromans
Hi all, Best wishes for 2023! I was wondering... Would it be possible to use Zim as an editor for documents that are not Zim notes. For example, when I open a particular document, instead of reading it from disk Zim would run a plugin or an external tool to fetch the actual contents. Likewise,