Hello Mat,

that is a cool idea, I do like it... there is however another possibility to do this that you might not be aware of:

You can very easily add your own editor buttons in the editor toolbar. Just create a tiddler, tag it with|$:/tags/EditorToolbar|and include the following fields:

 * condition: filter-like expression to determine if the button should
   be shown in the editor .. for normal tiddlers, this should be set
   to|[<targetTiddler>!has[type]]
   [<targetTiddler>type[text/vnd.tiddlywiki]]|
 * icon: if you want an icon
 * caption: if you want a textual caption next to the icon
 * description: to add a tooltip

Furthermore the following widget-message will insert text at the current selection, put this as the complete content for the tiddler:

|<$action-sendmessage $message="tm-edit-text-operation" $param="replace-selection" text="Hello Mat!" />|

There is more documentation here: http://tiddlywiki.com/#WidgetMessage%3A%20tm-edit-text-operation:%24%3A%2Fcore%2Fui%2FEditorToolbar%2Fheading-2%20%5B%5BWidgetMessage%3A%20tm-edit-text-operation%5D%5D

I am not completely sure if this fits your vison for the DragTools concept, but I hope this was useful to you, keep coming up with cool ideas!

/Andreas





Am 09.02.2017 um 14:17 schrieb Mat:
The TWaddler proudly presents...

...his fastest creation ever, thrown together over the lunch break...

...it works pretty well but the main point is as a proof-of-concept...

DragTools <http://dragtools.tiddlyspot.com> - (can be) a palette of whateveryouwant to drag'n drop into the editor

I've wanted a much more visual interface for making TW stuff for a long time. The new editor toolbar is a step in the right direction but I think we've scratched the surface. DragTools is another step. In the end we ought to have a UI that lets most TW use be achieved by visual manipulation rather than scary curly brackets etc.


<:-)

--
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/6d248a69-1d3e-71f6-f7e4-5bd3bc422987%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to