Soren, Nice example. I note opening the basket tiddler in a new window allows you to drag titles to it.
Just some thoughts for futures - It would be nice to have the ability to drag the JSON from one wiki to another, rather than go via file save and import. I have a button that does this within the attached json. This is unpublished and not final. - Since this tool simply updates a list field this could be applied to the story list, or we could permit dragging of list fields to a basket. - Additional baskets would be nice eg: add basket button. - A version that removes the tiddler (converts it to within a JSON) and deletes it would also be useful. I am keen to get simple to use "list making and manipulation" tools. This is a nice start. Tones On Tuesday, 4 May 2021 at 09:14:39 UTC+10 Soren Bjornstad wrote: > 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/195ad7ee-7058-405c-9d8d-50158330e95dn%40googlegroups.com.
package-tools.json
Description: application/json