Subject: [tw] Re: [TW5] Desirable core additions



Adding to what Richard suggests, if you only want your special fields to appear, you can make a tiddler with $:/tags/ViewTemplate and populate it with:

\define allmine(field)
<$list filter="[all[current]has[$field$]]">
$field$: <$edit-text tag="input" field="$field$"/>
</$list>
\end
<<allmine myfield>><br/>
<<allmine myfield2>>

Then just add as many <<allmine>> macros as special fields you have. You can type right into these without the focus problem.

Good luck,
Mark



On Tuesday, August 8, 2017 at 8:22:58 PM UTC-7, RichardWilliamSmith wrote:Hi Tony,
I'm sure I'm not alone in saying that I feel your frustration. I've been there lots of times - convinced that the thing I'm trying to do should be simple and yet not being able to find a way to do it. Often I find that whilst two things might seem equally complicated, one of them is trivial and the other is impossible. Such is life.
To help us address your first point, could you give a specific example of something that you feel the current syntax should be able to do and can't? Is it possible to get the desired behaviour by storing the values of your constants in tiddler fields and referring to them directly?
As to your second point; if you find any of the tiddlers tagged with $:/tags/EditTemplate (for example $:/core/ui/EditTemplate/fields) and add the tag $:/tags/ViewTemplate they will appear in the view template too. Maybe this is a little more crude than you were imagining? It can be improved upon by writing some UI of our own, if you have a specific idea of how you'd like it to work. Is this basically what you meant?
Regards,Richard

--
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]">[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/692f0a16-06cd-4f45-b1a5-21788fa384bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



Programming list archiving by: Enterprise Git Hosting