Hi @all,

 

if someone tries to solve my problem, it is solved and thanks for the try. 
In short, I simply misunderstood the whole TW-concept with filters and how 
to store values in the tiddlers.

 

Here is my solution see below.

 

Only ugly side effect: possible used line feeds in $:/DefaultTiddlers are 
replaced by space.

 

Cheers.

 

Torax

 
\define pinfieldfilter()
[has:field[atc.pinned]] 
\end 

\define newDefaultTiddlers() 
<$set name="defaultTiddlerTXT" 
filter="[[$:/DefaultTiddlers]!is[missing]get[text]split[ 
]splitregexp[\n]]"><$list filter=
"[<defaultTiddlerTXT>search<pinfieldfilter>count[]match[0]]"><$set name=
"newDefaultTiddlersTXT" filter=
"[enlist<defaultTiddlerTXT>append<pinfieldfilter>]"><$text text=<<
newDefaultTiddlersTXT>> /></$set></$list><$list filter=
"[<defaultTiddlerTXT>search<pinfieldfilter>count[]!match[0]]"><$text text=<<
defaultTiddlerTXT>> /></$list></$set> 
\end 

\define addTiddllerControls() 
<table><tr><td><$checkbox field="atc.pinned" checked="true" unchecked=
"false" default="false" checkactions="""<$wikify name="neuerText" 
text=<<newDefaultTiddlers>>><$action-setfield $tiddler="$:/DefaultTiddlers" 
$field="text" $value=<<neuerText>> /></$wikify>""" uncheckactions="""<
$action-deletefield $field="atc.pinned" />
""">&nbsp;&nbsp;📌</$checkbox></td></tr></table>
\end


Am Donnerstag, 16. Januar 2020 18:42:36 UTC+1 schrieb Torax Malu:
>
> Hi,
>
> I try to append to the text of $:/DefaultTiddlers a new line. I get the 
> content of this tiddler via following souce and add new text:
>
>
> So, I have now a JSON-encoded string. question is, how to get back a 
> normal string with interpreted escape-sequences to replace the content of 
> $:/DefaultTiddlers!!text with the new string.
>
> Thanks for help
>
> Cheers
>
> ToraxMalu
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fab83822-4fb0-4adc-8496-eea161aff97c%40googlegroups.com.

Reply via email to