Zim

slightly better pasted image file names

Bug #1631502 reported by Robert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Expired
Undecided
Unassigned

Bug Description

Rather than using a constant+serial ("pasted_image{N}.png"), this patch uses:
1. the page name as a base (instead of 'pasted_image'), and
2. the current unix time (seconds, as hex) instead of "001", "002", "003".

The first may help if ever that image finds its way back out of zim, and complements a similar modification I made to the 'screenshot' plugin.

The second may help avoid git merge conflicts when using Zim for collaboration.

So, for example, a pasted image into the ":Bill:Clinton" page might result in "Bill-Clinton-57f7f6b2.png" rather than "pasted_image003.png".

Revision history for this message
Robert (pv-ubuntuone) wrote :
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :
Changed in zim:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Zim because there has been no activity for 60 days.]

Changed in zim:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.