You can test it on http://dragndropmod.tiddlyspot.com/
If you have time, please let me know if you like it or if you think that something's missing or not working properly
If one wants to do so, the results/actions can be assigned differently to the modifier keys through a config tiddler. How they get assigned is a bit quirky right now, I want to change that. Ideas appreciated.
For descriptions see the Introduction tiddler on the tiddlyspot page
best wishes,
BurningTreeC
VERY useful!
Could your mod allow for [parts of] this? I.e to have icons (icon-links?) be draggable into the text area? In Scratch/Blockly, also the resulting code is visually represented which I guess would not be possible in the TW editor, i.e dropping the icon would in TW instead transform into the code segment the icon represents (similar to the stamp tool).
It looks helpful, but what kinds of use cases are you imagining for your dragon droppings? Help me see the potential that I know is there but that I am missing because of my lack of imagination.
Dave
Replying to myself again that I tried it and it works beautifully!
So now the cloning part is solved,we can now create a droppable zone on the bottom of each tiddler and make this happen
The code I posted gets extended so that first it saves the current text of the tiddler inside a variable , then both the old text and the new text get insertedOr something like thatOr the table idea in combination with something like in the Open Tab, so that one can insert something before something else or after and dragndrop them around
To all who are reading this:This one and my last posts are totally out of topic, sorry for that!
Could you post a demo? When I try with the code you suggested above, I do get the "title of my tiddler that holds ...", surrounded by [[ ]], but I' not sure how that would make for cloning?
So now the cloning part is solved,we can now create a droppable zone on the bottom of each tiddler and make this happenDoes a drop zone necessarily have to be in edit mode? For the optimal 'visual fantasy' above, I'm hoping the user can drag icons without having to face the actual code.
...or maybe you do mean in edit mode; then I wonder if a dropzone must be at a separate area (e.g "at bottom" as you mention). Could a whole tiddlers text area not be a dropzone so you can just dump stuff onto it? It wouldn't be active as a drop area unless you're actually carrying something draggable, right? (I have not experimented much with the drag'n drop features.)
Your idea with dragging pills that, when clicked, shows parameters for selection is ingenious. Maybe an option would be to drag Select widgets as these already have the dropdown and it is possible with multiple selections.
The code I posted gets extended so that first it saves the current text of the tiddler inside a variable , then both the old text and the new text get insertedOr something like thatOr the table idea in combination with something like in the Open Tab, so that one can insert something before something else or after and dragndrop them aroundI don't understand why a table would be helpful in this. How does it differ from just inserting things before and after straight away?
To all who are reading this:This one and my last posts are totally out of topic, sorry for that!(Maybe start a new thread? Sorry if I caused hijacking.)
Hahaaaa! Brilliant - it works!!!I made this demo/experiment: TWools.
I modded the viewtemplate so that you can drop anywhere on a tiddler in view mode. I'm not sure that is a solid solution as it will probably interfere with other local dropwidgets (or are they nestable?).I honestly think this could be a new UI paradigm for wikitext - one that would drastically lower the threshold for beginners to use more advanced TW and serve as an intermediary step before going into macros.
Of course, in order for such premade code to be useful we'd have to make it so that parameter values can be set at some point during or before or after the drag'n drop. The most natural interaction might be that when you click on the icon tro drag it, you're presented with a popup showing the parameter list where you fill in the values. And if you didn't fill it in there before drag'n dropping, then it appears as you drop.. where it might stay visible until filled in. Something like that.
I hope to do some more experimenting but it'll probably have to wait until weekend. If you (BurningTreeC) or anyone wants to keep on pushnig this then of course do so. (Hm, now I've definitely hijacked poor BurningTreeC's thread! Sorry man. Getting carried away by your brilliant solution for this.)
<:-)