>
>
> So, one thing is that the dropping should also work in edit mode. As you 
> know, dropping a link currently gives the [[title]]. But dropping a TidBit 
> should either give the <<macrocall>> like in view mode or possibly the 
> actual macro content, so that it can be modified. I think default should be 
> to drop the TidBit macrocall and e.g a Ctrl+drop to get the actual TidBit 
> code dropped.
>
> Over at github I've asked quite a bit about how the drag&drop works and 
the dropping into the text-editor
I'm still figuring out different ways for the dragndrop mod - dragging with 
modifiers - especially the dropping into the text-editor
The droppable widget already benefits from it in the prerelease - I don't 
think that it's already at the prerelease page
The modifier keys held while dropping get passed to the action string with 
the <<modifier>> variable (new with v5.1.16)

I know the [[ ]] get added automatically if the "title" contains spaces
There's no simple filter like removeprefix[[[] because that's invalid tw 
syntax

My dragndropmod <http://dragndropmod.tiddlyspot.com> removes the [[ ]] at 
drag-start - they only get added when dragging with the modifier key that 
adds them (it's the default for normal dragging without modifier at the 
page, but it can be assigned to a modifier and the plain text to no 
modifier)

I'm trying to figure out a way (still on github) to integrate it in the 
core, with some problems 
<https://github.com/Jermolene/TiddlyWiki5/pull/3151>
 

> Second, the dropped bits should be "rearrangable" in view-mode like with 
> the list-links-draggable 
> <https://tiddlywiki.com/prerelease/#list-links-draggable%20Macro> and 
> list-tags-draggable 
> <https://tiddlywiki.com/prerelease/#list-tagged-draggable%20Macro> 
> macros... however, if I understand things, neither of those macros are 
> applicable here, nor the draggableWidget 
> <https://tiddlywiki.com/prerelease/#DraggableWidget>. The ideal would be 
> some kind of "wrapper" to put around arbitrary segments in a tiddlers text.
>

I've actually thought about that looking at your page
Something like this:

1) when you drop something, add an identifier for the dropped tidbit to a 
field that holds the list of all already dropped tidbits
2) the viewtemplate body should list the tidbits in that field like the 
list-links-draggable but render the tidbit-content
3) we know the tidbits that are inside a tiddler because of the field(1) 
where they're listed - maybe the splitbefore and removesuffix/prefix 
operators allow to split the whole tiddler content at tidbit nr.1 , 
removesuffix tidbit nr.1 , see if there's something left , call it 
tiddlybit nr. 1 , then get the whole tiddler content, removeprefix 
tiddlybit nr. 1, removeprefix tidbit nr. 1, splitbefore tidbit nr.2 , ... 
until the last tidbit
4) now the tiddler is split into blocks, a draggable something can render 
them
5) rearranging them would then maybe need to store the tiddlybits somewhere 
outside - so that after a rearrangement the tidbit list gets updated, then 
the tidbit contents get applied to the tiddler

I'm just imagining this somehow, I don't know if it's really doable


BTC

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c5533969-5706-4cb0-be8b-69d860dbf0c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to