Zim

Comment 3 for bug 330320

Revision history for this message
dotancohen (dotancohen) wrote : Re: Please make equations copy-on-write

> Needs a little more input on when / how to do this.

As the OP mentioned, just copy the .tex and .png files.

> I can also
> imagine a valid use case where you want to have the same equation
> in multiple places and keep the link instead of repeating them.

I can imagine this case as well, but the bug should not be confused with a generic soft link feature request. In order to implement the feature you mention, a section of text (not necessarily a latex equation) could be selected then soft-linked (shown in a second place, where updating one will update the other). If you want I will file a feature request.

> There is a similar case for images. If I copy an image to a different
> page, right click it to open with gimp, edit and save, what should
> be the behavior?

The behaviour should be that the second image is edited, and the first left alone. In a file manager, when copying an image any edit made to the copy does not affect the original. Otherwise, you have a soft link and not a copy.

> Currently both pages link to the same page and will show the editing.

That is wrong, if the user wants that they he should have soft-linked, not copied.

> Maybe, when you click edit we should detect that it is used in multiple
> pages and popup asking whether you want to edit all occurences or just
> this one. (This effectively implements a kind of copy-on-write scheme.)
> Problem there is that you do not know if the external program that is
> started is an editor or not.

Again, soft linking is the logical answer to this.