Here's a simple version. Put it in a tiddler called Basket and tag it 
$:/tags/SideBar:

\define apply-tag() <$list filter={{Basket!!list}}><$action-listops 
$tags="Basket"/></$list>
\define clear-tag() <$list filter="[tag[Basket]]"><$action-listops 
$tags="-Basket"/></$list><$action-setfield $tiddler="Basket" list=""/>
\define export-basket() <$action-sendmessage $message="tm-download-file" 
$param="$:/core/templates/exporters/JsonFile" exportFilter={{Basket!!list}} 
filename=<<exportButtonFilename """basket.json""">>/>

Basket (drag tiddlers here):

<<list-links-draggable "Basket">>

<$button actions=<<apply-tag>> tooltip="Add the 'Basket' tag to all items 
in the basket.">Apply tag</$button>
<<tag Basket>>
<$button actions=<<export-basket>> tooltip="Export all the items in the 
basket to a JSON file.">Export JSON</$button>
<$button actions=<<clear-tag>> tooltip="Remove the 'Basket' tag from all 
items and clear the basket list.">Empty basket</$button>

The list-links-draggable widget allows you to drag and drop tiddlers 
(putting this as a sidebar tab might make it a little hard to source 
tiddlers to drag though -- maybe better to put it somewhere else!). Those 
will be stored in the list field of the Basket tiddler. Then the "Apply 
Tag" button lets you tag each of those tiddlers, if you so desire. You can 
then drag and drop the tag into a different wiki to copy the tiddlers, or 
use the Export JSON button to export a JSON file. The empty button will 
remove the Basket tag from all tiddlers where it's used and clear out the 
list.

Opportunities for improvement:

   - It would be possible to roll something using the $dropzone widget that 
   would automatically add the tag and eliminate the need for the "Apply Tag" 
   step. I was feeling lazy and wanted to use list-links-draggable.
   - You might consider temporarily turning off timestamps while tagging 
   and untagging things so that they don't show up as modified just because 
   you were selecting them (not sure if there's a way to do that with an 
   action tiddler).
   - The interface here leaves something to be desired, but should be 
   functional.

On Monday, May 3, 2021 at 4:08:06 PM UTC-5 Atronoush wrote:

> Is there any script or plugin with
>
> - a sidebar tab (I call it basket)
> - drag and drop features! One can drag a tiddler (e.g title) into the 
> basket
> - when finished press a button to export as JSON
> - the button can be dragged and drop into another wiki!
>
> The last part is what you see in TW-Icons
>
>
> -Atro
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/779bfc4d-b938-41a3-839e-213b5cd2d7dcn%40googlegroups.com.

Reply via email to