[IDEA] a better way to highlight duplicates in a list #5925
Replies: 3 comments 11 replies
-
Thanks @Paulgilbert2000 but I think @AnthonyMuscio's solution answers the request adequately, I don't see the need for a new core primitive. |
Beta Was this translation helpful? Give feedback.
-
@Jermolene .. You may move this issue to the "discussions" section. .. I didn't think about it, as I did suggest to raise an issue here. ... In the thread I did suggest to raise an issue, because I thought, that this is a sensible desire, since we have the possibility to show duplicates in lists. ... But I was thinking a bit further. eg: What if there are 6 tiddlers. A & B have I would like to discuss a possibility to solve this problem with a decent amount of code. Tony's solution will break down with my testcase. ... The other testcase I was thinking about was: I want to know the number of elements that are duplicated. Eg: I think there is a reason for the |
Beta Was this translation helpful? Give feedback.
-
The second problem I have with the solution is: T(n) = O(n^2) ... Tony's solution has a worse performance characteristic, but may be optimized to fit O(n^2) .. But I think that's the best we can get. With a "lookup" data tiddler, which I did suggest it should be possible to get O(2) in wikitext and O(n) in javascript ... So we may end up with O(n) + 2 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Request to have a java script macro, that returns a list of duplicates, or a data-tiddler with the duplicates as index and the color as a value.
https://groups.google.com/g/tiddlywiki/c/ahbcnXqVgl8
Beta Was this translation helpful? Give feedback.
All reactions