[tw5] Re: is it possible to list fields that have a specific prefix ?
Eric Shulman wrote: Try this: ``` <$list filter="[tag[Song]sort[]] :filter[get[year]prefix[198]]"> ``` I'm just curious if this would be more efficient: ``` <$list filter="[tag[Song]] :filter[get[year]prefix[198]] +[sort[]]"> ``` and if it's enough so that it's even worth considering. The point is that sorting is at best `O(n log(n))`, and filtering should be linear, so if we filter to reduce the list first, we should have a faster sort call. Or am I missing something about how filters operate? -- 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/e7c1fa96-6ef9-42d0-af34-7cc48c1008e1n%40googlegroups.com.
[tw5] Re: is it possible to list fields that have a specific prefix ?
Works perfectly! Thanks, Eric. I knew there had to be a way to make it more concise. On Sunday, July 9, 2023 at 6:25:54 PM UTC-5 Eric Shulman wrote: > Try this: > ``` > <$list filter="[tag[Song]sort[]] :filter[get[year]prefix[198]]"> > > > ``` > On Sunday, July 9, 2023 at 3:59:21 PM UTC-7 odda...@gmail.com wrote: > >> How about listing fields whose value has a specific prefix? >> >> Right now I have a list filter that looks like this: >> >> <$list filter="[field:year[1980]] [field:year[1981]] [field:year[1982]] >> [field:year[1983]] [field:year[1984]] [field:year[1985]] [field:year[1986]] >> [field:year[1987]] [field:year[1988]] [field:year[1989]] >> +[tag[Song]get[title]sort[title]]"> >> >> It would be so much nicer if I could do something like: >> >> <$list filter="[field:year][prefix[198]][tag[Song]get[title]sort[title]]"> >> >> I'll even take any suggestion that lets me use a list or range of years >> instead of having to specify each one with its own [field:year[]] wrapper. >> >> Thanks, >> Todd >> >> >> >> On Saturday, July 20, 2019 at 2:34:26 AM UTC-5 Sebastian Ovide wrote: >> >>> great thanks ! >>> >>> >>> On Saturday, 20 July 2019 02:20:04 UTC+1, Mark S. wrote: Example of fetching fields and values in current tiddler where field name starts with "my" : <$list filter="[all[current]fields[]prefix[my]]" variable="field"> <$list filter="[all[current]get]" variable="value"> <> : <> On Friday, July 19, 2019 at 5:19:38 PM UTC-7, Sebastian Ovide wrote: > > Hello > > I have a tiddler with several fields. Some have a specific prefix. Is > it possible to list them ? > > example > > tiddler!!prefix_aaa, tiddler!!prefix_bbb, tiddler!!prefix_ccc > > thanks > -- 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/ef8305d9-c0dd-45b2-9f12-6af572031df6n%40googlegroups.com.
[tw5] Re: is it possible to list fields that have a specific prefix ?
Try this: ``` <$list filter="[tag[Song]sort[]] :filter[get[year]prefix[198]]"> ``` On Sunday, July 9, 2023 at 3:59:21 PM UTC-7 odda...@gmail.com wrote: > How about listing fields whose value has a specific prefix? > > Right now I have a list filter that looks like this: > > <$list filter="[field:year[1980]] [field:year[1981]] [field:year[1982]] > [field:year[1983]] [field:year[1984]] [field:year[1985]] [field:year[1986]] > [field:year[1987]] [field:year[1988]] [field:year[1989]] > +[tag[Song]get[title]sort[title]]"> > > It would be so much nicer if I could do something like: > > <$list filter="[field:year][prefix[198]][tag[Song]get[title]sort[title]]"> > > I'll even take any suggestion that lets me use a list or range of years > instead of having to specify each one with its own [field:year[]] wrapper. > > Thanks, > Todd > > > > On Saturday, July 20, 2019 at 2:34:26 AM UTC-5 Sebastian Ovide wrote: > >> great thanks ! >> >> >> On Saturday, 20 July 2019 02:20:04 UTC+1, Mark S. wrote: >>> >>> Example of fetching fields and values in current tiddler where field >>> name starts with "my" : >>> >>> <$list filter="[all[current]fields[]prefix[my]]" variable="field"> >>> <$list filter="[all[current]get]" variable="value"> >>> <> : <> >>> >>> >>> >>> On Friday, July 19, 2019 at 5:19:38 PM UTC-7, Sebastian Ovide wrote: Hello I have a tiddler with several fields. Some have a specific prefix. Is it possible to list them ? example tiddler!!prefix_aaa, tiddler!!prefix_bbb, tiddler!!prefix_ccc thanks >>> -- 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/68c4b6d9-9a35-4f48-9810-58ba0166eaafn%40googlegroups.com.
[tw5] Re: is it possible to list fields that have a specific prefix ?
How about listing fields whose value has a specific prefix? Right now I have a list filter that looks like this: <$list filter="[field:year[1980]] [field:year[1981]] [field:year[1982]] [field:year[1983]] [field:year[1984]] [field:year[1985]] [field:year[1986]] [field:year[1987]] [field:year[1988]] [field:year[1989]] +[tag[Song]get[title]sort[title]]"> It would be so much nicer if I could do something like: <$list filter="[field:year][prefix[198]][tag[Song]get[title]sort[title]]"> I'll even take any suggestion that lets me use a list or range of years instead of having to specify each one with its own [field:year[]] wrapper. Thanks, Todd On Saturday, July 20, 2019 at 2:34:26 AM UTC-5 Sebastian Ovide wrote: > great thanks ! > > > On Saturday, 20 July 2019 02:20:04 UTC+1, Mark S. wrote: >> >> Example of fetching fields and values in current tiddler where field name >> starts with "my" : >> >> <$list filter="[all[current]fields[]prefix[my]]" variable="field"> >> <$list filter="[all[current]get]" variable="value"> >> <> : <> >> >> >> >> On Friday, July 19, 2019 at 5:19:38 PM UTC-7, Sebastian Ovide wrote: >>> >>> Hello >>> >>> I have a tiddler with several fields. Some have a specific prefix. Is it >>> possible to list them ? >>> >>> example >>> >>> tiddler!!prefix_aaa, tiddler!!prefix_bbb, tiddler!!prefix_ccc >>> >>> thanks >>> >> -- 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/f766f660-ad2e-4da0-98cc-81e5d8b8a4e0n%40googlegroups.com.
[tw5] Re: is it possible to list fields that have a specific prefix ?
great thanks ! On Saturday, 20 July 2019 02:20:04 UTC+1, Mark S. wrote: > > Example of fetching fields and values in current tiddler where field name > starts with "my" : > > <$list filter="[all[current]fields[]prefix[my]]" variable="field"> > <$list filter="[all[current]get]" variable="value"> > <> : <> > > > > On Friday, July 19, 2019 at 5:19:38 PM UTC-7, Sebastian Ovide wrote: >> >> Hello >> >> I have a tiddler with several fields. Some have a specific prefix. Is it >> possible to list them ? >> >> example >> >> tiddler!!prefix_aaa, tiddler!!prefix_bbb, tiddler!!prefix_ccc >> >> thanks >> > -- 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/3d22a240-12ec-4651-965b-648c428502fa%40googlegroups.com.
[tw5] Re: is it possible to list fields that have a specific prefix ?
A related tip is fields with say menu-1 menu-2 can be listed in order use sort[] and you can transclude the content. This have active wiki text and more stored in fields. Regards Tony -- 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/ecb341c3-3d4c-4427-8708-be961047ed46%40googlegroups.com.
[tw5] Re: is it possible to list fields that have a specific prefix ?
Added to TW-Scripts On Saturday, July 20, 2019 at 5:50:04 AM UTC+4:30, Mark S. wrote: > > Example of fetching fields and values in current tiddler where field name > starts with "my" : > > <$list filter="[all[current]fields[]prefix[my]]" variable="field"> > <$list filter="[all[current]get]" variable="value"> > <> : <> > > > > On Friday, July 19, 2019 at 5:19:38 PM UTC-7, Sebastian Ovide wrote: >> >> Hello >> >> I have a tiddler with several fields. Some have a specific prefix. Is it >> possible to list them ? >> >> example >> >> tiddler!!prefix_aaa, tiddler!!prefix_bbb, tiddler!!prefix_ccc >> >> thanks >> > -- 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/27f144c2-f70e-45cb-ad69-54161a8288fb%40googlegroups.com.
[tw5] Re: is it possible to list fields that have a specific prefix ?
Example of fetching fields and values in current tiddler where field name starts with "my" : <$list filter="[all[current]fields[]prefix[my]]" variable="field"> <$list filter="[all[current]get]" variable="value"> <> : <> On Friday, July 19, 2019 at 5:19:38 PM UTC-7, Sebastian Ovide wrote: > > Hello > > I have a tiddler with several fields. Some have a specific prefix. Is it > possible to list them ? > > example > > tiddler!!prefix_aaa, tiddler!!prefix_bbb, tiddler!!prefix_ccc > > thanks > -- 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/9b27b0ae-81a3-4777-b7d4-52cae916fff3%40googlegroups.com.