[tw5] Re: Highlighting duplicates in lists

2021-08-30 Thread TW Tones
Mohamad, Sorry, I did not mean to imply you were not putting in the effort, more that you needed to direct it elsewhere first. Although it is great to see you are keen and jumping into it, it can just make it a little hard to support you. Don't be shy to keep asking, but trust in your ability

[tw5] Re: Highlighting duplicates in lists

2021-08-30 Thread paulgilbert2000
Thanks tones actually my problem is not lack of effort but rather lack of knowledge :( , i try many different things before coming back, its just like you said i am guilty of trying to plug in the code rather than fully understanding it well then ..i guess its time for me to up my game with

[tw5] Re: Highlighting duplicates in lists

2021-08-29 Thread TW Tones
Mohamad, Part of the issue here is you have not yet learned the basic syntax of tiddlywiki yet, we all start somewhere, my instructions should have being self evident if you had just rudimentary tiddlywiki syntax, all of which I learned from TiddlyWiki.com I did answer this latest question

[tw5] Re: Highlighting duplicates in lists

2021-08-28 Thread Charlie Veniot
This whole thread inspired me to get my geek on and play my kind of "BrainAge" game: see Some coding fun: A Word Occurrence Highlighter just in case there's anything of use to you in there, even if just the entertainment value... On

[tw5] Re: Highlighting duplicates in lists

2021-08-28 Thread paulgilbert2000
thanks tones, back one step , the original code was .. matchthen[color: red;]] }}}><> the modified code is as follows get[field]match *{!!field}*then[color: red;]] }}}>* this is displayed inside the list* the instruction is to replace *{{!!field}} * With *{{{

[tw5] Re: Highlighting duplicates in lists

2021-08-27 Thread TW Tones
The information you are after is in my earlier post *<> {{!!field}} *is the display replace this with *{{{ [all[current]get[field]format:date[]] }}}* It is what is inside the span that gets coloured using style attribute, thus what is inside the span is what is displayed,

[tw5] Re: Highlighting duplicates in lists

2021-08-27 Thread paulgilbert2000
Hi tones, have you had the chance to look at my last post? On Saturday, August 21, 2021 at 5:14:38 AM UTC+2 paulgilbert2000 wrote: > Hi Tones, > > I am not sure which line of code you are referring too , the line that > does the coloring is > <$list filter="[all[current]get[field_example]] >

[tw5] Re: Highlighting duplicates in lists

2021-08-20 Thread paulgilbert2000
Hi Tones, I am not sure which line of code you are referring too , the line that does the coloring is <$list filter="[all[current]get[field_example]] [all[current]get[field_example2]] [all[current]get[field_example3]]" variable=field-value> matchthen[color: red;]] }}}><> It does

[tw5] Re: Highlighting duplicates in lists

2021-08-15 Thread TW Tones
Hio, Back in my code <$list filter="[all[]prefix[New]has[field]]"> get[field]match{!!field}then[color: red;]] }}}>* <> {{!!field}}* *<> {{!!field}} *is the display replace this with *{{{ [all[current]get[field]format:date[]] }}}* Not tested by me on this occasion where field is the

[tw5] Re: Highlighting duplicates in lists

2021-08-15 Thread paulgilbert2000
Thank you tones The real life example is to evaluate duplicate dates, so the actual real values populating the fields are not 1 ,2 , etc.. they are actual dates , IE . 2021062506295, 20210811055859000,etc. and so what i was trying is to do is have the highlighted duplicate values

[tw5] Re: Highlighting duplicates in lists

2021-08-15 Thread TW Tones
Mohammad, I am confused, until now the fields field_example, field_example1, field_example2 did not contain dates. - Are you trying to convert these to dates? - the view widget format=date only works on tiddlywiki full serial number dates! Perhaps step back and describe what you

[tw5] Re: Highlighting duplicates in lists

2021-08-15 Thread paulgilbert2000
HI tones, sorry i guess i asked the wrong question, what i wanted to know is where to place the widget in the code , if i do it that way , it no longer highlights duplicates <>: | <$list filter="[all[current]get[field_example]] [all[current]get[field_example2]]

[tw5] Re: Highlighting duplicates in lists

2021-08-15 Thread TW Tones
Look for and use the viewWidget and use the format date with a template, or the format relativedate Get into the habit also of searching in tiddlywiki.com to learn how to do things. [image: Snag_c8a06a9.png] eg; <$view field=created format=date template=""/> <$view field=created

[tw5] Re: Highlighting duplicates in lists

2021-08-14 Thread paulgilbert2000
Sorry one more questions if the values are dates, how can they be displayed in normal format ,and not the tiddly wiki format On Monday, August 9, 2021 at 1:10:18 AM UTC+2 paulgilbert2000 wrote: > Thank you tones > > Will take me a while to understand all that . but it works like a charm , >

[tw5] Re: Highlighting duplicates in lists

2021-08-08 Thread paulgilbert2000
Thank you tones Will take me a while to understand all that . but it works like a charm , and its even more than what i have asked for thanks again:) On Sunday, August 8, 2021 at 7:31:10 AM UTC+2 TW Tones wrote: > Mohamad, > > I am happy to look at solving the problem presented but my

[tw5] Re: Highlighting duplicates in lists

2021-08-07 Thread TW Tones
Mohamad, I am happy to look at solving the problem presented but my suspicion remains that there may be a different way to put the question in the first place. Sometimes a question can be rephrased such that the answer is simpler to find. - In this we have multiple tiddlers, with

[tw5] Re: Highlighting duplicates in lists

2021-08-01 Thread TW Tones
Mohamad, My solution above can be used to do this for multiple fields/criteria because it re-examines the whole list every time. This makes it logically very flexible but revisiting the whole list for every special field for each tiddler is not very high performance. There are other

[tw5] Re: Highlighting duplicates in lists

2021-08-01 Thread paulgilbert2000
Hi, is it possible to use the same code for multiple criteria, so highlight in red all occurrences of duplicates in field A and also field B within the same list of tiddlers? i guess my question is can a Get / then be used within the same filter multiple times for multiple fields/criteria

[tw5] Re: Highlighting duplicates in lists

2021-08-01 Thread PMario
Hi, Since Tony did present a workable solution, the issue was moved to the discussions section at github. https://github.com/Jermolene/TiddlyWiki5/discussions/5925 I still think, that a <> macro may reduce the complexity of the solution. -mario -- You received this message because you

[tw5] Re: Highlighting duplicates in lists

2021-07-31 Thread paulgilbert2000
Hi Tones, yes, this perfectly fits my needs, thank you very much @ Mario , thank you for your help , i have just raised a feature request on GitHub On Friday, July 30, 2021 at 2:23:40 PM UTC+2 TW Tones wrote: > I can see by other replies that my example that showed the logic was not > enough

[tw5] Re: Highlighting duplicates in lists

2021-07-30 Thread TW Tones
I can see by other replies that my example that showed the logic was not enough for the OT Here I turn it into an unordered list with duplicates in red. <$list filter="[all[]prefix[New]has[field]]"> get[field]match{!!field}then[color: red;]] }}}> <> {{!!field}} Have I fully addressed

[tw5] Re: Highlighting duplicates in lists

2021-07-30 Thread Mat
I would say it is possible with this general idea: <$list filter="[tag[tests]]"> {{!!title}} .mywrap.{{!!title}}:not(:first-of-type) {background:yellow} The above will likely *not* work right away but it shows the idea. For example, for the title to work as a class name it must follow css

[tw5] Re: Highlighting duplicates in lists

2021-07-30 Thread PMario
Hi, Your construction should look like this, if you want to have a UL list <$list ...> ... your code Otherwise you will create invalid HTML code. On Friday, July 30, 2021 at 1:03:33 AM UTC+2 mohamed...@hotmail.com wrote: can i highlight tiddler 1 and tiddler 4 maybe in red ? > You

[tw5] Re: Highlighting duplicates in lists

2021-07-29 Thread TW Tones
Mohamad See the following <$list filter="[all[]prefix[New]has[field]]"> <$link/> {{!!field}} {{{ [all[]prefix[New]!titleget[field]match{!!field}then[*]] }}} - First we list All tiddlers satisfying [all[]prefix[New]has[field]] - Then we display a link to each tiddler and the value in

[tw5] Re: Highlighting duplicates in lists

2021-07-29 Thread paulgilbert2000
thanks tones for the second method , would that display the duplicates , because i want that On Friday, July 30, 2021 at 1:37:33 AM UTC+2 TW Tones wrote: > Mohamad, > > One way is to sort in the parameter order before you can detect that the > last is the same as the current ie a duplicate.

[tw5] Re: Highlighting duplicates in lists

2021-07-29 Thread TW Tones
Mohamad, One way is to sort in the parameter order before you can detect that the last is the same as the current ie a duplicate. The other way is for each tiddler, search for the same parameter elsewhere, if more than one found then it is duplicate before displaying the parameter. - If