Dear all,
Problem
Unsurprisingly, a tiddlers content contains segments that are treated differently from one another; the user must explicitly type in which
formatting to use or he must for a segment or manually
define the button or other widget or he must type in to
define a macro and
type the invocation for it, including the correct parameters and syntax etc.
I'm stating the obvious here of course - this is what TW is much about. But given the many special keywords a user must
apply - and
know about - and know
how to apply - this is part of the steep learning curve and threshold to TW. It is also a time consmer every time you must look up and type in the same keywords or parameter names again.
Simplification
The idea in ViewFields is to use fields - in view mode - as abstract boxes to encapsulate the content. Then the user simply
selects the type of magic to apply, from a dropdown. The selected type could be for example; "apply table CSS" or perhaps even "convert the text into a table" to begin with. Or, if the selection is made
before filling in the content, a
default content could show up showing the attributes or the macro parameter list that is to be filled in, for that selected type.
The exact implementations for these types would probably be dealt with on a per-case basis.
In the demo, I'm also presenting what I thing is the simplest way to
directly edit such view mode fields. That is a separate solution but merges well.
What I'm asking from you
I should first note that I don't have (even 1/10th of) the skills to implement this. I present it and hope others will find it interesting enough so it might eventually become something. (That said, I did just install the demo in some of my own TWs, mostly because of the direct editing feature.)
I'm asking you what is good/bad with the concept. Why would it not work? Should it not be using
fields but perhaps instead "magic boxes" that segments of the content is encapsulated with that shows a dropdown from which to select the magic that should apply? Overall I feel fields have
much more potential to the average user but they are unnecessarily left in edit view as if they were more complicated than they are (...I think ;-)
Regardless, here is the demo for
ViewFields.
<:-)
TWaddling since 1915 (...no, still no update to that site for a few months)
P.S Thank you @Felix for some valuable input that made the demo understandable at all.