Hi Xavier

Thanks for the feedback

> After playing with it for a while, a request for an additional functionality 
> arose: being able to restrict the dragged tiddlers to be accepted in certain 
> droppable areas while being refused in others. I guess I could use a state 
> parameter with the <$draggable> widget, and whitelist/blacklist parameters 
> with the <$droppable> widget.

That’s my thinking too. I think we need two capabilities:

* Adding a “type” attribute to the draggable widget, and an “acceptType” 
attribute to the droppable widget
* Adding a filter to the droppable widget that is applied to incoming tiddlers 
so that they can be checked (eg only accepting tiddlers with a given tag)

> Also, for the record, being able to use drag and drop on phones and tablets 
> would be nice :-)

I did find this shim that implements the HTML5 drag and drop APIs on mobile 
browsers, both iOS and Android:

https://github.com/timruffles/ios-html5-drag-drop-shim

Does the demo work for you?

http://timruffles.github.io/ios-html5-drag-drop-shim/enter-leave/

Best wishes

Jeremy

> 
> Cheers,
> 
> -- Xavier Cazin
> 
> On Mon, Mar 20, 2017 at 11:53 PM, Jeremy Ruston <[email protected] 
> <mailto:[email protected]>> wrote:
> Many thanks for the feedback. I’ve posted an update to 
> http://tiddlywiki.com/prerelease <http://tiddlywiki.com/prerelease> with a 
> few changes:
> 
> * Added support for dragging items to the end of lists
> * Added support for using drag and drop to reorder toolbar buttons in Control 
> Panel, Appearance, Toolbars
> * Added some macros for draggable lists:
> ** based on a list field: 
> list-links-draggable(tiddler,field:"list",type:"ul",subtype:"li",class:"",itemTemplate)
> ** based on a tags field, with sorting via the companion list field: 
> list-tagged-draggable(tag,itemTemplate)
> * Fixed: Lack of [[quoting]] for tiddler titles dragged into a text box, 
> reported by Mat
> * Fixed: Crash with dragging text snippets, reported by Mario
> 
> I’d welcome any thoughts about other opportunities to improve other areas of 
> the UI with drag and drop.
> 
> Best wishes
> 
> Jeremy
> 
> <TestGif2.gif>
> 
>> On 20 Mar 2017, at 16:45, Alex Hough <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Excellent!
>> Well done Jeremy and BJ!
>> 
>> 
>> 
>> Alex
>> 
>> On 20 March 2017 at 12:25, Matthew Lauber <[email protected] 
>> <mailto:[email protected]>> wrote:
>> Ooh, I have some things to build with this.... Thanks Jeremy!
>> 
>> Matt
>> 
>> On Sunday, March 19, 2017 at 3:51:21 PM UTC-4, Jeremy Ruston wrote:
>> I’m very happy to announce much better core support for drag-and-drop in 
>> 5.1.14, with quite a few new features for end users:
>> 
>> * drag and drop the entries in the “open” sidebar list to rearrange the 
>> ordering of the open tiddlers
>> * drag tiddler titles into the “open” sidebar list to open those tiddlers at 
>> a chosen position in the story river
>> * drag and drop the entries in a tag dropdown to rearrange the ordering of 
>> the tagged items
>> * drag tiddler titles into the open tag dropdown to add that tag to those 
>> tiddlers
>> * drag a tag pill to drag all of the tiddlers that carry that tag. This 
>> feature can be used to drag multiple tiddlers between wikis in separate 
>> windows, or to drag multiple items in the scenarios above
>> 
>> I’ve posted a prerelease so that you can try the new functionality; I’d 
>> welcome any feedback:
>> 
>> http://tiddlywiki.com/prerelease <http://tiddlywiki.com/prerelease>
>> 
>> I’ve yet to add any documentation for the components that make up these new 
>> features:
>> 
>> * <$draggable> widget
>> * <$droppable> widget
>> * insertbefore filter operator
>>  
>> You can see the detailed changes in the commit log:
>> 
>> https://github.com/Jermolene/TiddlyWiki5/commit/eba1c3c160c63ac3dfc15f55df086971a832d657
>>  
>> <https://github.com/Jermolene/TiddlyWiki5/commit/eba1c3c160c63ac3dfc15f55df086971a832d657>
>> 
>> Drag-and-drop has been on the todo list for a long time. BJ released an 
>> enhancement of the list widget that supported drag and drop a year or two 
>> ago, and it had been my itntention to engineer it into the core. As it has 
>> turned out, the eventual implementation is more granular, adding a handful 
>> of new primitives that can be combined together and with existing components 
>> to produce various effects.
>> 
>> Best wishes
>> 
>> Jeremy.
>> 
>> 
>> 
>> -- 
>> 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] 
>> <mailto:[email protected]>.
>> To post to this group, send email to [email protected] 
>> <mailto:[email protected]>.
>> Visit this group at https://groups.google.com/group/tiddlywiki 
>> <https://groups.google.com/group/tiddlywiki>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/79d19861-4023-4382-b673-3749f4e85694%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/79d19861-4023-4382-b673-3749f4e85694%40googlegroups.com?utm_medium=email&utm_source=footer>.
>> 
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
>> 
>> 
>> -- 
>> 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] 
>> <mailto:[email protected]>.
>> To post to this group, send email to [email protected] 
>> <mailto:[email protected]>.
>> Visit this group at https://groups.google.com/group/tiddlywiki 
>> <https://groups.google.com/group/tiddlywiki>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/CALc1hYc02LiUjf-Sa2jOp6iBn5N4_WwyRy2XVpo-%3D%3DCXhoMYdA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/CALc1hYc02LiUjf-Sa2jOp6iBn5N4_WwyRy2XVpo-%3D%3DCXhoMYdA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/6B46553F-2667-4415-A7CE-6182939FC6C2%40gmail.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/6B46553F-2667-4415-A7CE-6182939FC6C2%40gmail.com?utm_medium=email&utm_source=footer>.
> 
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/CADeSwYPoCywvGPMjVr2kVXtpj1viSnE-1jY7Xe-xoXeY0zM6EQ%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/CADeSwYPoCywvGPMjVr2kVXtpj1viSnE-1jY7Xe-xoXeY0zM6EQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/902974C4-7369-4212-9D07-B66D4D6AE1C0%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to