I would like to Compare a shadows tiddlers content with the current tiddler value?
The following shows the content of the $:/DefaultTiddlers shadow (original value)
<$view tiddler="$:/core" subtiddler="$:/DefaultTiddlers"/>
returns: GettingStarted
This means we need to know tiddler which is the shadowsource
The Shadow Source can be identified, from the tiddler name
{{{[[$:/DefaultTiddlers]shadowsource[]] }}}
returns: $:/core
Thus given the tiddler $:/DefaultTiddlers
><$view tiddler={{{[[$:/DefaultTiddlers]shadowsource[]] }}} subtiddler="$:/DefaultTiddlers"/>
Returns its original content GettingStarted
The following returns Its current content
<$view tiddler="$:/DefaultTiddlers"/>
OR
{{$:/DefaultTiddlers}}
eg returns [[!Top actions]] Home !FIFO [[Today]]
But how do we capture the original content from;
<$view tiddler={{{[[$:/DefaultTiddlers]shadowsource[]] }}} subtiddler="$:/DefaultTiddlers"/>
such we can put it in a variable and ask for a comparison; like
<$diff-text source=<<original>> dest={{$:/DefaultTiddlers}}/>
We need to take two steps;
- Place the view widget subtiddler in a macro
- Wikify the macro before use
\define original() <$view tiddler={{{[[$:/DefaultTiddlers]shadowsource[]] }}} subtiddler="$:/DefaultTiddlers"/>
<$wikify name=original text="<<original>>">
<$diff-text source=<<original>> dest={{$:/DefaultTiddlers}}/>
</$wikify>
This is why I ask can we not have another way to ask for the macro to be wikifield without using the wikify widget?
which makes this far more complex;
eg;
\define original() <$view tiddler={{{[[$:/DefaultTiddlers]shadowsource[]] }}} subtiddler="$:/DefaultTiddlers"/>
<$diff-text source=((original)) dest={{$:/DefaultTiddlers}}/>`