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:
Just to add that you can go to Tiddlywiki.com and create a new Tiddler with the text <$edit-text field="text"/> and give it the tag $:/tags/ViewTemplate you get a live edit field that doesn't lose focus. I guess the difference between this and an edit-text widget as part of the tiddler content (which does indeed lose focus on each keypress) is that the view-template "chrome" involves a layer of indirection (?).
--
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 tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/7bac3621-bb1f-4c17-b28a-314c0b686d3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
\define editnsave(field)
<$vars tid="$:/temp/$(currentTiddler)$" fld="$:/temp/$(currentTiddler)$!!$field$" fldx="{{$:/temp/$(currentTiddler)$!!$field$}}" >
$field$: <$edit tiddler=<<tid>> field="$field$"/>
<$button>*<$wikify name=val text="{{!!$field$}}"><$action-setfield $tiddler=<<tid>> $field="$field$" $value=<<val>> /></$wikify>
</$button>
<$button>Save<$wikify name=val text="<<fldx>>"><$action-setfield $field="$field$" $value=<<val>> /></$wikify>
</$button>
</$vars>
\end
And, since no one mentioned it yet, the set widget is probably what you're looking for for pseudo constants. Documentation is on tiddlywiki.com.
On Aug 9, 2017 07:53, "RichardWilliamSmith" <richardwi...@gmail.com> wrote:
Just to add that you can go to Tiddlywiki.com and create a new Tiddler with the text <$edit-text field="text"/> and give it the tag $:/tags/ViewTemplate you get a live edit field that doesn't lose focus. I guess the difference between this and an edit-text widget as part of the tiddler content (which does indeed lose focus on each keypress) is that the view-template "chrome" involves a layer of indirection (?).--
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 tiddlywiki+...@googlegroups.com.
\define editnsave(field)
<$vars tid="$:/temp/$(currentTiddler)$" fld="$:/temp/$(currentTiddler)$!!$field$" fldx="{{$:/temp/$(currentTiddler)$!!$field$}}" >
$field$: <$edit-text tiddler=<<tid>> field="$field$" default={{!!$field$}} tag="input"/>
<$button>Save<$wikify name=val text="<<fldx>>"><$action-setfield $field="$field$" $value=<<val>> /></$wikify>
</$button>
</$vars>
\end
{{$:/constants/constant-name}}
I will respond at greater length later (as it's bed time in Sydney) but thought I would say a free things. Tiddlywiki is powerful because of its structure and it's interrelated qualities and none should be lost. When I suggested these features be put into the core I should have elaborated. They need to be in the standard, at the top of the documentation. I have no doubt some smart coding can use existing structures to achieve what I ask and perhaps some plugins until then. I am as yet not knowledgeable enough to do this but I will be one day.
The ability to easily set reliable values from existing tiddler info text, tags and fields that is available in all related tiddlers with simple and deterministic ways (for somewhat novice users) is essential, along with a simple way to programmatically manage field values in the current tiddler is needed as well.
There is a caviate to this which will be in another reply from me tonight.
The problem I see is a gap in the early or middle ground and in ease of cognition without deep knowledge. My ability to understand this will fade as my expertise and expierence overcome the barriers I am facing. Something that is only possible because of a great community.
Thanks again
Tonym
I will revisit. I think I addressed everything including a reload to be sure. I expected it to work as well. I will share when I can get to it.
Tony
It looks like I will need to use such a method but I need the constant(s) to be set from a value in an existing tiddler and maintained for that tiddler so some part of a tiddlers name will need to be in the path name to your suggested variable tiddler, then all tiddlers who would access that variable tiddler must know the same tiddler name.
I hope I make sense.
I am trying to avoid hard coded references so when a tiddler is copied or cloned it will behave the same in it's new name and inherit similar but a different set of values.
Thanks for the suggestion.
Tony m
… I need the constant(s) to be set from a value in an existing tiddler and maintained for that tiddler so some part of a tiddlers name will need to be in the path name to your suggested variable tiddler, then all tiddlers who would access that variable tiddler must know the same tiddler name.
… when a tiddler is copied or cloned it will behave the same in it's new name and inherit similar but a different set of values.
--
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 tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
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/96b9dfe1-58f2-4dc3-9633-d6ac0d58812d%40googlegroups.com.
Here is the documentation for the set widget http://tiddlywiki.com/#SetWidgetAnd you use it like<$set name="constantname" value=((!!field}}></$set>
Then all the child elements of the tag (think xml), will have that variable available to them. In a macro you can also use
\define editnsave(field)
<$vars tid="$:/temp/$(currentTiddler)$" fld="$:/temp/$(currentTiddler)$!!$field$" fldx="{{$:/temp/$(currentTiddler)$!!$field$}}" >
$field$: <$edit-text tiddler=<<tid>> field="$field$" default={{!!$field$}} tag="input"/>
<$button>Save<$wikify name=val text="<<fldx>>"><$action-setfield $field="$field$" $value=<<val>> /></$wikify>
</$button>
</$vars>
\end
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.