[tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread Mohammad
Yes, This is shorter and even better! list widget can do amazing things! while reveal may be semantic in this case! --Mohammad On Thursday, March 14, 2019 at 10:10:01 PM UTC+3:30, BurningTreeC wrote: > > A smart solution! >> >> Much shorter and semantic! >> > > It still can be shortified: > >

[tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread Mohammad
That's true! In my case I use wikify widget when I have to use the result of a macro or want to store a variable. I also use some general purpose macros and do not want to repeat the scripting! --Mohammad On Thursday, March 14, 2019 at 10:03:51 PM UTC+3:30, BurningTreeC wrote: > > A smart

[tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread BurningTreeC
> > A smart solution! > > Much shorter and semantic! > It still can be shortified: <$set name="tidBMod" value={{{ [[Bb]get[modified]] }}}> <$set name="tidAMod" value={{{ [[Aa]get[modified]] }}}> <$list filter="[] [] +[nsort[]last[1]removesuffix ]"> Yes, Aa is newer <$list filter="[] []

[tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread BurningTreeC
> > A smart solution! > > Much shorter and semantic! > > Thanks alot! > > Added to TW-Scripts > >> >> What I want to say is that I think the wikify widget should never be the widget of choice if it can be done without When I use it I try questioning if there's a reason why, if I know that it

[tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread Mohammad
A smart solution! Much shorter and semantic! Thanks alot! Added to TW-Scripts --Mohammad On Thursday, March 14, 2019 at 9:51:48 PM UTC+3:30, BurningTreeC wrote: > > @Mohammad, > > using the wikify widget for this usecase seems to be useless, this can > easily done without: > > <$set

Re: [tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread BurningTreeC
> > BTC, > Thank you, now it works and reveal widget shows the correct output! > It is difficult to debug the TW scripts! Seem only experiences help here! > I must say you're also making it difficult by using the wikify widget > > A million thanks > > Cheers > Mohammad > >> >> -- You

[tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread BurningTreeC
@Mohammad, using the wikify widget for this usecase seems to be useless, this can easily done without: <$set name="tidBMod" value={{{ [[Bb]get[modified]] }}}> <$set name="tidAMod" value={{{ [[Aa]get[modified]] }}}> <$reveal type="match" text="yes" default={{{ [] []

Re: [tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread Mohammad Rahmani
Added to TW-Scripts. Best wishes Mohammad On Thu, Mar 14, 2019 at 9:32 PM BurningTreeC wrote: > Yes, *result *has a value: *yes* >> >> Seems I cannot get any output from reveal widget! >> >> I pasted the whole code here to be able to check in tiddlywiki.com! >> >> >> \define gt() >> $(TidA)$

Re: [tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread Mohammad Rahmani
BTC, Thank you, now it works and reveal widget shows the correct output! It is difficult to debug the TW scripts! Seem only experiences help here! A million thanks Cheers Mohammad Best wishes Mohammad On Thu, Mar 14, 2019 at 9:32 PM BurningTreeC wrote: > Yes, *result *has a value: *yes*

[tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread BurningTreeC
> > Yes, *result *has a value: *yes* > > Seems I cannot get any output from reveal widget! > > I pasted the whole code here to be able to check in tiddlywiki.com! > > > \define gt() > $(TidA)$ $(TidB)$ +[nsort[]last[1]remove[$(TidB)$]] > \end > > \define is-it-newer(TiddlerA, TiddlerB) > <$set

[tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread Mohammad
Yes, *result *has a value: *yes* Seems I cannot get any output from reveal widget! I pasted the whole code here to be able to check in tiddlywiki.com! \define gt() $(TidA)$ $(TidB)$ +[nsort[]last[1]remove[$(TidB)$]] \end \define is-it-newer(TiddlerA, TiddlerB) <$set name=TidA

[tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread BurningTreeC
> > Hi BTC, > Thanks it works! but then if I further use the result I go into another > trouble. > > No check this! > > <$wikify text="""<>""" name="result"> > <> > <$reveal type="match" text="yes" default=<> > > Yes, Aa is newer > > <$reveal type="match" text="no" default=<> > > No, Aa is

[tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread Mohammad
Hi BTC, Thanks it works! but then if I further use the result I go into another trouble. No check this! <$wikify text="""<>""" name="result"> <> <$reveal type="match" text="yes" default=<> > Yes, Aa is newer <$reveal type="match" text="no" default=<> > No, Aa is older No output!

[tw5] Re: Which tiddler is newer: What goes wrong here with Wikify

2019-03-14 Thread BurningTreeC
> > Create two tiddlers in tiddlywiki.com titled *Aa *and *Bb* > > Now create a tiddler with below code inside it. This code compares the > modified date of two tiddlers and shows yes > if Aa is newer than Bb and vice versa! > > \define gt() > $(TidA)$ $(TidB)$ +[nsort[]last[1]remove[$(TidB)$]]