Prevent overwritting images via copy paste import

176 views
Skip to first unread message

Rohrreiniger

unread,
Apr 23, 2020, 5:10:20 AM4/23/20
to TiddlyWiki
Hello,
I often copy and paste screenshots from email to documentation in my TW. They are always imported with the same name "grafik.png" (German version). Any best practice how to get them with a new name so the old existing one isn't overwritten?

Thanks in advance for any help/hint.

keywords

TonyM

unread,
Apr 23, 2020, 8:00:23 AM4/23/20
to TiddlyWiki
If you install the bundle plugin of marios, it has two features you can use. One is in its settings use overwrite protection and imported tiddlers will not overwrite existing ones.

You can activate the import bundle and record all your imported tiddlers

Along with its other features.

Regards
Tony

Sylvain Naudin

unread,
Apr 23, 2020, 2:33:28 PM4/23/20
to TiddlyWiki


Le jeudi 23 avril 2020 14:00:23 UTC+2, TonyM a écrit :
If you install the bundle plugin of marios, it has two features you can use. One is in its settings use overwrite protection and imported tiddlers will not overwrite existing ones.

You can activate the import bundle and record all your imported tiddlers

Along with its other features.

Regards
Tony


Hi Tony,

It's not about import tiddler, but to paste clipboard with an image. I just see this recently, and it's super cool.
But indeed there is no mechanism to check if the name is not already taken, and that could add a numbering (a bit like the existing one with the tiddlers creation function).

Sylvain

A Gloom

unread,
Apr 24, 2020, 11:29:43 AM4/24/20
to TiddlyWiki
At first I thought this was a browser setting, FF saves untitled images as images.png

The name of paste content that brings up the import tiddler ($:/Import) is controlled by what template it uses for import-- if you look into $:/Import, it has a json format of the image you're pasting and the title entry is image.png ("grafik.png").

Didn't see any obvious settings for importing and file names.

TonyM

unread,
Apr 24, 2020, 6:55:56 PM4/24/20
to TiddlyWiki
Sylvain,

Drag and Drop, Past, Crtl V, it is all very similar. The Import process is also highly customisable. If I have a little more detail I can possibly provide a solution.

Regards
Tony

Jeremy Ruston

unread,
Apr 25, 2020, 9:15:22 AM4/25/20
to tiddl...@googlegroups.com
I remember being pretty surprised by this. The title “grafik.png” (or “image.png” in English) is generated by the browser when an image is pasted, and is part of the file information passed to TW’s javascript. We use the filename of incoming files as the title because that makes sense for most files.

We could fix it in a couple of ways:

* Allow the user to edit the title (and perhaps other fields) of tiddlers before they are imported
* Add a checkbox to automatically generate unique titles by adding a number if required

Best wishes

Jeremy

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3ff2bb00-33f3-4b1f-8ccc-9ae20febcb4c%40googlegroups.com.

Saq Imtiaz

unread,
Apr 25, 2020, 11:53:26 AM4/25/20
to TiddlyWiki
Jeremy: being able to rename a tiddler before import would be very useful. Even when dragging and dropping files, I quite often import and immediately edit the tiddler to change the name.

We could also warn the user if the title of a tiddler being imported clashes with an existing tiddler.

TonyM

unread,
Apr 26, 2020, 9:19:41 AM4/26/20
to TiddlyWiki
In a similar vein I would like to use a filter on incoming import tiddler titles primarily to add or remove a prefix. This would allow importing tiddlers that may potentially clash into the wiki then have a soft way of processing conflicts.

Generating a set of alternate import titles with a check box to accept the new name(s) retain the original or type a name manually with indicators if the new tiddler title exists.

The only thing I do not know how to do is extract tiddlers from the import mechanisium with new names.

Regards
tony

Sylvain Naudin

unread,
Apr 26, 2020, 2:26:49 PM4/26/20
to TiddlyWiki


Le samedi 25 avril 2020 17:53:26 UTC+2, Saq Imtiaz a écrit :
Jeremy: being able to rename a tiddler before import would be very useful. Even when dragging and dropping files, I quite often import and immediately edit the tiddler to change the name.

We could also warn the user if the title of a tiddler being imported clashes with an existing tiddler.


+1 :)
That would be great.

Colin Yates

unread,
Jul 1, 2020, 1:11:52 PM7/1/20
to TiddlyWiki
Howdy - do you know if any progress been made on this? Thanks!
Reply all
Reply to author
Forward
0 new messages