[tw5] Re: is it possible to list fields that have a specific prefix ?

2023-07-09 Thread Todd Corson
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 ?

2023-07-09 Thread Eric Shulman
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 ?

2023-07-09 Thread Todd Corson
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.