usability: achieving improved drag-and-drop of external files

88 views
Skip to first unread message

unread,
Jan 14, 2019, 3:11:16 AM1/14/19
to TiddlyWiki
Hi there,

Almost every note-taking app on the market allows users to drag and drop images into notes. Tiddlywiki allows drag-and-drop imports but with the catch that you shouldn't to it to avoid overburdening the single Tiddlywiki file (and it is a two-step process in any case: import first, add image second).

I would love being able to drag and drop an image and be offered the option to keep it in a separate non-Tiddlywiki folder. I currently have a specific folder that hosts all the images I want to embed in my Tiddlywiki and the entire process is manual: I have to first save the image files into the folder, then manually embed it in a tiddler, possibly modifying any parameters manually.

Any tips or ideas on how to streamline that process? I'm thinking of recording an external script (AutoHotkey) but anything TiddlyWiki-based would seem more appropriate of course.

Best,

TonyM

unread,
Jan 14, 2019, 5:04:10 AM1/14/19
to TiddlyWiki
R2,

I believe the technology is available, already, even if it is a two step process import then re-export. The drop mechanisium can be designed and a drop zone defined to do what ever we want, perhaps dropping images in the images folder below the wiki then drag the filename into tiddlywiki to create a tiddler referencing an image by that name is already possible.

Of course I would prefer to drop any image in my wiki and create a tiddler referencing that image externaly wherever it came from relative or absolute antwhere in my desktop so I could organise my 100k+ photos. Only loading the image when its tiddler is opened or transcluded.

Regards
Tony

Jed Carty

unread,
Jan 14, 2019, 5:14:14 AM1/14/19
to TiddlyWiki
If you are using the node version I made a plugin to sort of do this. It can intercept the import process and save the image or whatever media is imported to a folder and create a _canonical_uri tiddler for it. I don't think I have written much documentation for it though. 

The plugin is here, if you are feeling brave. Make sure to back up all your data.


I am pretty certain that this wouldn't be possible to automate in any reasonable way in a single file wiki.

Kalmir

unread,
Jan 14, 2019, 2:46:33 PM1/14/19
to TiddlyWiki
Reply all
Reply to author
Forward
0 new messages