Zim

Comment 0 for bug 1086343

Revision history for this message
K. Bauer (k.bauer) wrote : Cross-page file links are not updated (also affects images)

Zim-Version: 0.57 (Windows installer)
OS: Windows 7 64bit

=== Scenario ===

* A page "Page1" contains attachments, e.g. a graphic "image.png"
* A page "Page2" contains
    - A link [path/to/Page1/image.png] to the image file.
    - The image file inline {{path/to/Page1/image.png}}
    - A link [:path:to:Page1] to the other page.

=== Observed Behaviour ===

When Page1 is renamed or moved
* The link [:path:to:Page1] is updated.
* The link [path/to/Page1/image.png] to the graphic is NOT updated.
* The image inclusion {{path/to/Page1/image.png}} of the graphic is NOT updated.
Hence Page2 is broken without warning.

When Page1 is deleted, Page2 is also broken without warning.

=== Expected Behaviour ===

* When an attachment folder is moved or renamed, links to this folder should be updated.
* When an attachment folder needed by other pages is deleted, a warning should be given.

=== How it might be done ===

* This probably implies, that attachments, that are linked to, should be indexed (if it isn't done already).
* Note that attachment folders may have subfolders, that don't correspond to zim pages.

=== Wishful Thinking ===

* When an attachment folder is deleted, but some files are still needed by other pages, the user might be offered to relocate those files to a different page's attachment folder.
* If such a function was implemented, moving attachments between pages should be easy to implement for the Attachment Browser plugin.