[tw5] Re: Manipulating lists with select multiple

2019-07-04 Thread 'Mark S.' via TiddlyWiki
That's how I understand it, but I don't claim to be an expert. 

Good luck!

On Thursday, July 4, 2019 at 12:01:57 AM UTC-7, TonyM wrote:
>
> Mark.
>
> So is it true to say in the subfilter if you place the - in front of a 
> title OR filter that it is those titles it will remove if tgey exist from 
> the list?
>
> Thanks for your help 
> 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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b68b4325-f31d-426d-b27c-a2ecb33dd746%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Manipulating lists with select multiple

2019-07-04 Thread TonyM
Mark.

So is it true to say in the subfilter if you place the - in front of a title OR 
filter that it is those titles it will remove if tgey exist from the list?

Thanks for your help 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/61f651f6-bc51-4605-9eee-32cb66170955%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Manipulating lists with select multiple

2019-07-03 Thread 'Mark S.' via TiddlyWiki
Yes, the subfilter works differently than a plain filter, because the 
filter is being applied as though the original title list preceded it.

On Wednesday, July 3, 2019 at 7:32:41 PM UTC-7, TonyM wrote:
>
> Mark/Mat,
>
> Do I take it then that
>
> $subfilter="[list[!!temp-select-users]]" adds temp-select-users to the list
> $subfilter="-[list[!!temp-select-users]]" removes temp-select-users to the 
> list
>
> All the examples give literals with a title, +title -title
>
> This use of the filter format in subfilter confuses me, because 
> filter="-[list[!!temp-select-users]]" would result in nothing in a normal 
> filter.
>
> Regards
> Tony
>
>
> On Thursday, July 4, 2019 at 11:37:36 AM UTC+10, Mark S. wrote:
>>
>> Something like Mat had, but since you have an actual list field, and not 
>> a text field, perhaps:
>>
>> <$button>Move right
>> <$action-listops $field="office-consultants-list" 
>> $subfilter="[list[!!temp-select-users]]" />
>> <$action-listops $field="temp-select-users" $filter="[[]]"/>
>> 
>>
>> <$button>Move left
>> <$action-listops $field="temp-select-users" 
>> $subfilter="[list[!!office-consultants-list]]" />
>> <$action-listops $field="office-consultants-list" $filter="[[]]"/>
>> 
>>
>>
>> On Wednesday, July 3, 2019 at 6:00:47 PM UTC-7, TonyM wrote:
>>>
>>> Mat,
>>>
>>> The problem is I want to
>>>
>>>1. add from a tiddler containing the list to a field
>>>2. remove from a tiddler containing the list from a field
>>>
>>> Eg;
>>>
>>>1. $:/temp/select/add
>>>2. $:/temp/select/remove
>>>3. list-field
>>>
>>> By late I assume you mean time of day, it being different here and all.
>>>
>>> Regards
>>> Tony
>>>
>>>
>>>
>>> On Thursday, July 4, 2019 at 10:31:13 AM UTC+10, Mat wrote:

 It's a bit too late for me to read you post very carefully but if I 
 understand you right you need help with the moving of items from one list 
 to another. Maybe this helps:

 In a tiddler, have a field like so

 a : one two three

 and in editor preview mode do

 <$button>
 <$action-listops $field=a $filter="[enlist{!!a}] -two"/>
 <$action-listops $field="b" $subfilter="two"/>
 >>
 


 <:-)

>>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ba1a9a94-72fc-45f6-aded-f5ed9fceaa66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Manipulating lists with select multiple

2019-07-03 Thread TonyM
Mark/Mat,

Do I take it then that

$subfilter="[list[!!temp-select-users]]" adds temp-select-users to the list
$subfilter="-[list[!!temp-select-users]]" removes temp-select-users to the 
list

All the examples give literals with a title, +title -title

This use of the filter format in subfilter confuses me, because 
filter="-[list[!!temp-select-users]]" would result in nothing in a normal 
filter.

Regards
Tony


On Thursday, July 4, 2019 at 11:37:36 AM UTC+10, Mark S. wrote:
>
> Something like Mat had, but since you have an actual list field, and not a 
> text field, perhaps:
>
> <$button>Move right
> <$action-listops $field="office-consultants-list" 
> $subfilter="[list[!!temp-select-users]]" />
> <$action-listops $field="temp-select-users" $filter="[[]]"/>
> 
>
> <$button>Move left
> <$action-listops $field="temp-select-users" 
> $subfilter="[list[!!office-consultants-list]]" />
> <$action-listops $field="office-consultants-list" $filter="[[]]"/>
> 
>
>
> On Wednesday, July 3, 2019 at 6:00:47 PM UTC-7, TonyM wrote:
>>
>> Mat,
>>
>> The problem is I want to
>>
>>1. add from a tiddler containing the list to a field
>>2. remove from a tiddler containing the list from a field
>>
>> Eg;
>>
>>1. $:/temp/select/add
>>2. $:/temp/select/remove
>>3. list-field
>>
>> By late I assume you mean time of day, it being different here and all.
>>
>> Regards
>> Tony
>>
>>
>>
>> On Thursday, July 4, 2019 at 10:31:13 AM UTC+10, Mat wrote:
>>>
>>> It's a bit too late for me to read you post very carefully but if I 
>>> understand you right you need help with the moving of items from one list 
>>> to another. Maybe this helps:
>>>
>>> In a tiddler, have a field like so
>>>
>>> a : one two three
>>>
>>> and in editor preview mode do
>>>
>>> <$button>
>>> <$action-listops $field=a $filter="[enlist{!!a}] -two"/>
>>> <$action-listops $field="b" $subfilter="two"/>
>>> >>
>>> 
>>>
>>>
>>> <:-)
>>>
>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8b01a6cd-33b4-45f9-a4e3-fddbd227012d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Manipulating lists with select multiple

2019-07-03 Thread 'Mark S.' via TiddlyWiki
Something like Mat had, but since you have an actual list field, and not a 
text field, perhaps:

<$button>Move right
<$action-listops $field="office-consultants-list" 
$subfilter="[list[!!temp-select-users]]" />
<$action-listops $field="temp-select-users" $filter="[[]]"/>


<$button>Move left
<$action-listops $field="temp-select-users" 
$subfilter="[list[!!office-consultants-list]]" />
<$action-listops $field="office-consultants-list" $filter="[[]]"/>



On Wednesday, July 3, 2019 at 6:00:47 PM UTC-7, TonyM wrote:
>
> Mat,
>
> The problem is I want to
>
>1. add from a tiddler containing the list to a field
>2. remove from a tiddler containing the list from a field
>
> Eg;
>
>1. $:/temp/select/add
>2. $:/temp/select/remove
>3. list-field
>
> By late I assume you mean time of day, it being different here and all.
>
> Regards
> Tony
>
>
>
> On Thursday, July 4, 2019 at 10:31:13 AM UTC+10, Mat wrote:
>>
>> It's a bit too late for me to read you post very carefully but if I 
>> understand you right you need help with the moving of items from one list 
>> to another. Maybe this helps:
>>
>> In a tiddler, have a field like so
>>
>> a : one two three
>>
>> and in editor preview mode do
>>
>> <$button>
>> <$action-listops $field=a $filter="[enlist{!!a}] -two"/>
>> <$action-listops $field="b" $subfilter="two"/>
>> >>
>> 
>>
>>
>> <:-)
>>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1ddbb532-af4d-43d1-8497-91e68bca62de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Manipulating lists with select multiple

2019-07-03 Thread TonyM
Mat,

The problem is I want to

   1. add from a tiddler containing the list to a field
   2. remove from a tiddler containing the list from a field

Eg;

   1. $:/temp/select/add
   2. $:/temp/select/remove
   3. list-field

By late I assume you mean time of day, it being different here and all.

Regards
Tony



On Thursday, July 4, 2019 at 10:31:13 AM UTC+10, Mat wrote:
>
> It's a bit too late for me to read you post very carefully but if I 
> understand you right you need help with the moving of items from one list 
> to another. Maybe this helps:
>
> In a tiddler, have a field like so
>
> a : one two three
>
> and in editor preview mode do
>
> <$button>
> <$action-listops $field=a $filter="[enlist{!!a}] -two"/>
> <$action-listops $field="b" $subfilter="two"/>
> >>
> 
>
>
> <:-)
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0e9af4ca-add7-4c8e-a986-08100b5ecf72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Manipulating lists with select multiple

2019-07-03 Thread Mat
It's a bit too late for me to read you post very carefully but if I 
understand you right you need help with the moving of items from one list 
to another. Maybe this helps:

In a tiddler, have a field like so

a : one two three

and in editor preview mode do

<$button>
<$action-listops $field=a $filter="[enlist{!!a}] -two"/>
<$action-listops $field="b" $subfilter="two"/>
>>



<:-)

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8e302643-eaa2-45f4-8ee6-ee5efa8849f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.