DropHere tool

144 views
Skip to first unread message

Michael Wiktowy

unread,
Jun 21, 2019, 12:48:38 PM6/21/19
to TiddlyWiki
Greetings all,

Maybe this is obvious to most but I figured that I would share for those that want a simple example of the droppable widget borrowing heavily from the examples found in the main TiddlyWiki homepage:

Usage: This a small extension of the "New Here" functionality by adding a droppable area in a tiddler to tag the dropped tiddler with a tag of the tiddler containing this area.

This will work to apply the tag to multiple tiddlers by dragging "tag pills" onto the area.


Limitations: This currently only works with tiddlers that are already imported to the current TiddlyWiki. I am sure that this could be extended with the import functionality but I currently do not know how to do that. Right now, it will just silently create an empty tiddler with the external tiddlers name unless you import it normally first and then drag it over to the tagging area/icon. I might try to fold in those import actions but welcome input on how to do that cleanly.


It lives here:



but attached as a .tid for convenience.

I originally put this together with the intent of extending Mat's excellent fields2table macro with an "add row" button that can be used by either clicking it or dragging a tiddler on it. I figured that I would share this while I figure out the rest :]

/Mike
DropHere.tid

bimlas

unread,
Jun 24, 2019, 6:13:08 PM6/24/19
to TiddlyWiki
Michael,

I like the idea, but I think you haven't got an answer yet because the documentation is not clear. For those who didn't understand how to use the plugin:

* Import or open a tiddler ("Main" for example)

* Open its info from the drop-down menu and go to Advanced tab
* Drag-n-drop the title to the tag icon in DropHere tiddler

OR

* Drag-n-drop the search result's title to the tag icon in DropHere tiddler

The droped tiddler will get "DropHere" tag.

TonyM

unread,
Jun 24, 2019, 8:41:53 PM6/24/19
to TiddlyWiki
FYI

My Chrome browser sees this tid file as a threat. Fire Fox was fin about it, But I have downloaded tid files before in firefox.

Thanks for sharing this by the way. It provides a good example on which to build, perhaps something like this should be added to the documentation.

I feel the button is too small so try this as an alternate

<$droppable actions=<<droppable-image-actions>>>
<div style="background-color:black;color:white;padding:20px;">
 
<h2>Drop Here</h2>
</div>
</$droppable>



Regards
Tony

HC Haase

unread,
Jun 26, 2019, 3:45:50 AM6/26/19
to TiddlyWiki
This is a nice functionality. It would be really useful if this would work on the actual "new Here" button - isn't that the intention?

I tried to add your widget to the new here button. the drop zone worked fine, but not tags alas.

David Gifford

unread,
Jun 26, 2019, 9:57:49 AM6/26/19
to TiddlyWiki
Added to the toolmap.
Reply all
Reply to author
Forward
0 new messages