[tw5] Re: Filter request: "except those transcluded in the" current tiddler

2021-06-20 Thread TW Tones
Folks,

The solution is in this thread, however there is value dividing the problem.

First construct a custom filter to extract and list transclusions within 
the current tiddler eg has {{ }} brackets, you can split on | (use \define 
pipe() | ) and get the last value (not }}). 

Once you have this list you can use it to exclude those tiddlers from the 
larger list.

Regards
Tones

On Friday, 18 June 2021 at 20:28:08 UTC+10 Si wrote:

> @Soren Yes I too would love to see this added, it would be very handy.
> On Wednesday, 16 June 2021 at 23:09:12 UTC+1 Soren Bjornstad wrote:
>
>> I'd like to draw attention to this PR that's been sitting for about a 
>> year due to needed improvements:
>> https://github.com/Jermolene/TiddlyWiki5/pull/4766
>>
>> By making transclusion into a first-class citizen that TiddlyWiki keeps 
>> track of, it would produce an elegant solution for this problem and many 
>> others. 
>>
>> On Wednesday, June 16, 2021 at 11:20:37 AM UTC-5 David Gifford wrote:
>>
>>> I added this to my "documenting.tw" file:  
>>> https://giffmex.org/gifts/documenting.tw.html#Filter%3A%20All%20tagging%20except%20those%20transcluded%20here
>>>
>>> On Wednesday, June 16, 2021 at 9:27:16 AM UTC-5 Si wrote:
>>>
 Hi David,

 I've been planning to do something similar in my own wiki. I can't 
 think of a way to do it with a single filter expression, but here is a 
 very 
 clunky approach:

 <$list filter="[tag] [tag{!!draft.of}]" 
 variable=tagged-tiddler>
 <$vars search-term={{{ [addprefix[{{]addsuffix[}}]] 
 }}}>
 <$list filter="[!search]">
 <$link to=<>><>
 
 
 
 

 This should work in both edit and view mode, but you can easily 
 simplify the first filter expression if you only need it to work in edit 
 mode.

 There's probably a more elegant approach out there but this seems to 
 work.

 On Tuesday, 15 June 2021 at 15:36:39 UTC+1 David Gifford wrote:

> Hi all
>
> I need another list filter:
>
> ...minus any tiddlers transcluded in the" current tiddler.
>
> Use case: I plan to use transclusions to build long "article" 
> tiddlers, with section headers and specific ordering of the 
> transclusions. 
> But as I take notes, I want to tag note tiddlers with the article(s) they 
> will be transcluded in. 
>
> So in edit template, I want a list at the bottom of the tiddlers 
> tagged to the current tiddler [all[current]tagging[]], minus the tiddlers 
> I 
> have already transcluded in the current tiddler. That way I can see which 
> tiddlers still need transcluding.
>
> Thanks for any help with this. It doesn't look very straightforward. 
> There doesn't seem to be a way to do -[all[current]transcluding[]] yet. 
> Maybe in 5.1.25?
>
> Blessings,
>


-- 
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/40b46b67-11fd-494d-96d7-bc2556bf9c9bn%40googlegroups.com.


[tw5] Re: Filter request: "except those transcluded in the" current tiddler

2021-06-18 Thread Si
@Soren Yes I too would love to see this added, it would be very handy.
On Wednesday, 16 June 2021 at 23:09:12 UTC+1 Soren Bjornstad wrote:

> I'd like to draw attention to this PR that's been sitting for about a year 
> due to needed improvements:
> https://github.com/Jermolene/TiddlyWiki5/pull/4766
>
> By making transclusion into a first-class citizen that TiddlyWiki keeps 
> track of, it would produce an elegant solution for this problem and many 
> others. 
>
> On Wednesday, June 16, 2021 at 11:20:37 AM UTC-5 David Gifford wrote:
>
>> I added this to my "documenting.tw" file:  
>> https://giffmex.org/gifts/documenting.tw.html#Filter%3A%20All%20tagging%20except%20those%20transcluded%20here
>>
>> On Wednesday, June 16, 2021 at 9:27:16 AM UTC-5 Si wrote:
>>
>>> Hi David,
>>>
>>> I've been planning to do something similar in my own wiki. I can't think 
>>> of a way to do it with a single filter expression, but here is a very 
>>> clunky approach:
>>>
>>> <$list filter="[tag] [tag{!!draft.of}]" 
>>> variable=tagged-tiddler>
>>> <$vars search-term={{{ [addprefix[{{]addsuffix[}}]] 
>>> }}}>
>>> <$list filter="[!search]">
>>> <$link to=<>><>
>>> 
>>> 
>>> 
>>> 
>>>
>>> This should work in both edit and view mode, but you can easily simplify 
>>> the first filter expression if you only need it to work in edit mode.
>>>
>>> There's probably a more elegant approach out there but this seems to 
>>> work.
>>>
>>> On Tuesday, 15 June 2021 at 15:36:39 UTC+1 David Gifford wrote:
>>>
 Hi all

 I need another list filter:

 ...minus any tiddlers transcluded in the" current tiddler.

 Use case: I plan to use transclusions to build long "article" tiddlers, 
 with section headers and specific ordering of the transclusions. But as I 
 take notes, I want to tag note tiddlers with the article(s) they will be 
 transcluded in. 

 So in edit template, I want a list at the bottom of the tiddlers tagged 
 to the current tiddler [all[current]tagging[]], minus the tiddlers I have 
 already transcluded in the current tiddler. That way I can see which 
 tiddlers still need transcluding.

 Thanks for any help with this. It doesn't look very straightforward. 
 There doesn't seem to be a way to do -[all[current]transcluding[]] yet. 
 Maybe in 5.1.25?

 Blessings,

>>>

-- 
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/507067dc-6e41-4163-a91c-8422dc3482a6n%40googlegroups.com.


[tw5] Re: Filter request: "except those transcluded in the" current tiddler

2021-06-16 Thread Soren Bjornstad
I'd like to draw attention to this PR that's been sitting for about a year 
due to needed improvements:
https://github.com/Jermolene/TiddlyWiki5/pull/4766

By making transclusion into a first-class citizen that TiddlyWiki keeps 
track of, it would produce an elegant solution for this problem and many 
others. 

On Wednesday, June 16, 2021 at 11:20:37 AM UTC-5 David Gifford wrote:

> I added this to my "documenting.tw" file:  
> https://giffmex.org/gifts/documenting.tw.html#Filter%3A%20All%20tagging%20except%20those%20transcluded%20here
>
> On Wednesday, June 16, 2021 at 9:27:16 AM UTC-5 Si wrote:
>
>> Hi David,
>>
>> I've been planning to do something similar in my own wiki. I can't think 
>> of a way to do it with a single filter expression, but here is a very 
>> clunky approach:
>>
>> <$list filter="[tag] [tag{!!draft.of}]" 
>> variable=tagged-tiddler>
>> <$vars search-term={{{ [addprefix[{{]addsuffix[}}]] 
>> }}}>
>> <$list filter="[!search]">
>> <$link to=<>><>
>> 
>> 
>> 
>> 
>>
>> This should work in both edit and view mode, but you can easily simplify 
>> the first filter expression if you only need it to work in edit mode.
>>
>> There's probably a more elegant approach out there but this seems to work.
>>
>> On Tuesday, 15 June 2021 at 15:36:39 UTC+1 David Gifford wrote:
>>
>>> Hi all
>>>
>>> I need another list filter:
>>>
>>> ...minus any tiddlers transcluded in the" current tiddler.
>>>
>>> Use case: I plan to use transclusions to build long "article" tiddlers, 
>>> with section headers and specific ordering of the transclusions. But as I 
>>> take notes, I want to tag note tiddlers with the article(s) they will be 
>>> transcluded in. 
>>>
>>> So in edit template, I want a list at the bottom of the tiddlers tagged 
>>> to the current tiddler [all[current]tagging[]], minus the tiddlers I have 
>>> already transcluded in the current tiddler. That way I can see which 
>>> tiddlers still need transcluding.
>>>
>>> Thanks for any help with this. It doesn't look very straightforward. 
>>> There doesn't seem to be a way to do -[all[current]transcluding[]] yet. 
>>> Maybe in 5.1.25?
>>>
>>> Blessings,
>>>
>>

-- 
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/8ca8ae51-49c6-4674-8a2b-0cd11e6bee0fn%40googlegroups.com.


[tw5] Re: Filter request: "except those transcluded in the" current tiddler

2021-06-16 Thread David Gifford
I added this to my "documenting.tw" file:  
https://giffmex.org/gifts/documenting.tw.html#Filter%3A%20All%20tagging%20except%20those%20transcluded%20here

On Wednesday, June 16, 2021 at 9:27:16 AM UTC-5 Si wrote:

> Hi David,
>
> I've been planning to do something similar in my own wiki. I can't think 
> of a way to do it with a single filter expression, but here is a very 
> clunky approach:
>
> <$list filter="[tag] [tag{!!draft.of}]" 
> variable=tagged-tiddler>
> <$vars search-term={{{ [addprefix[{{]addsuffix[}}]] 
> }}}>
> <$list filter="[!search]">
> <$link to=<>><>
> 
> 
> 
> 
>
> This should work in both edit and view mode, but you can easily simplify 
> the first filter expression if you only need it to work in edit mode.
>
> There's probably a more elegant approach out there but this seems to work.
>
> On Tuesday, 15 June 2021 at 15:36:39 UTC+1 David Gifford wrote:
>
>> Hi all
>>
>> I need another list filter:
>>
>> ...minus any tiddlers transcluded in the" current tiddler.
>>
>> Use case: I plan to use transclusions to build long "article" tiddlers, 
>> with section headers and specific ordering of the transclusions. But as I 
>> take notes, I want to tag note tiddlers with the article(s) they will be 
>> transcluded in. 
>>
>> So in edit template, I want a list at the bottom of the tiddlers tagged 
>> to the current tiddler [all[current]tagging[]], minus the tiddlers I have 
>> already transcluded in the current tiddler. That way I can see which 
>> tiddlers still need transcluding.
>>
>> Thanks for any help with this. It doesn't look very straightforward. 
>> There doesn't seem to be a way to do -[all[current]transcluding[]] yet. 
>> Maybe in 5.1.25?
>>
>> Blessings,
>>
>

-- 
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/1bb93689-4995-4b24-aa89-bd7312a4cff3n%40googlegroups.com.


Re: [tw5] Re: Filter request: "except those transcluded in the" current tiddler

2021-06-16 Thread David Gifford
Yes! A big "¡Sí!" to si! Thanks, works great!




On Wed, Jun 16, 2021 at 9:27 AM Si  wrote:

> Hi David,
>
> I've been planning to do something similar in my own wiki. I can't think
> of a way to do it with a single filter expression, but here is a very
> clunky approach:
>
> <$list filter="[tag] [tag{!!draft.of}]"
> variable=tagged-tiddler>
> <$vars search-term={{{ [addprefix[{{]addsuffix[}}]]
> }}}>
> <$list filter="[!search]">
> <$link to=<>><>
> 
> 
> 
> 
>
> This should work in both edit and view mode, but you can easily simplify
> the first filter expression if you only need it to work in edit mode.
>
> There's probably a more elegant approach out there but this seems to work.
>
> On Tuesday, 15 June 2021 at 15:36:39 UTC+1 David Gifford wrote:
>
>> Hi all
>>
>> I need another list filter:
>>
>> ...minus any tiddlers transcluded in the" current tiddler.
>>
>> Use case: I plan to use transclusions to build long "article" tiddlers,
>> with section headers and specific ordering of the transclusions. But as I
>> take notes, I want to tag note tiddlers with the article(s) they will be
>> transcluded in.
>>
>> So in edit template, I want a list at the bottom of the tiddlers tagged
>> to the current tiddler [all[current]tagging[]], minus the tiddlers I have
>> already transcluded in the current tiddler. That way I can see which
>> tiddlers still need transcluding.
>>
>> Thanks for any help with this. It doesn't look very straightforward.
>> There doesn't seem to be a way to do -[all[current]transcluding[]] yet.
>> Maybe in 5.1.25?
>>
>> Blessings,
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/EnyDD7GseG0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/d70cb040-fa23-407b-9dcd-c9edf4b36210n%40googlegroups.com
> 
> .
>

-- 
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/CANE%3DBF%2B4-i30-6nuCm%2BFNED_XauwvwMs1x1ewv5K-FSY2MrZ%3DQ%40mail.gmail.com.


[tw5] Re: Filter request: "except those transcluded in the" current tiddler

2021-06-16 Thread Si
Just realized the search filter should probably be more like this: 
[!search:text:literal,casesensitive]

On Wednesday, 16 June 2021 at 15:27:16 UTC+1 Si wrote:

> Hi David,
>
> I've been planning to do something similar in my own wiki. I can't think 
> of a way to do it with a single filter expression, but here is a very 
> clunky approach:
>
> <$list filter="[tag] [tag{!!draft.of}]" 
> variable=tagged-tiddler>
> <$vars search-term={{{ [addprefix[{{]addsuffix[}}]] 
> }}}>
> <$list filter="[!search]">
> <$link to=<>><>
> 
> 
> 
> 
>
> This should work in both edit and view mode, but you can easily simplify 
> the first filter expression if you only need it to work in edit mode.
>
> There's probably a more elegant approach out there but this seems to work.
>
> On Tuesday, 15 June 2021 at 15:36:39 UTC+1 David Gifford wrote:
>
>> Hi all
>>
>> I need another list filter:
>>
>> ...minus any tiddlers transcluded in the" current tiddler.
>>
>> Use case: I plan to use transclusions to build long "article" tiddlers, 
>> with section headers and specific ordering of the transclusions. But as I 
>> take notes, I want to tag note tiddlers with the article(s) they will be 
>> transcluded in. 
>>
>> So in edit template, I want a list at the bottom of the tiddlers tagged 
>> to the current tiddler [all[current]tagging[]], minus the tiddlers I have 
>> already transcluded in the current tiddler. That way I can see which 
>> tiddlers still need transcluding.
>>
>> Thanks for any help with this. It doesn't look very straightforward. 
>> There doesn't seem to be a way to do -[all[current]transcluding[]] yet. 
>> Maybe in 5.1.25?
>>
>> Blessings,
>>
>

-- 
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/d71adc8d-d455-402a-b404-7cd6a50e0428n%40googlegroups.com.


[tw5] Re: Filter request: "except those transcluded in the" current tiddler

2021-06-16 Thread Si
Just realised the search should be literal and case sensitive: 
[!search::literal,casesensitive]
On Wednesday, 16 June 2021 at 15:27:16 UTC+1 Si wrote:

> Hi David,
>
> I've been planning to do something similar in my own wiki. I can't think 
> of a way to do it with a single filter expression, but here is a very 
> clunky approach:
>
> <$list filter="[tag] [tag{!!draft.of}]" 
> variable=tagged-tiddler>
> <$vars search-term={{{ [addprefix[{{]addsuffix[}}]] 
> }}}>
> <$list filter="[!search]">
> <$link to=<>><>
> 
> 
> 
> 
>
> This should work in both edit and view mode, but you can easily simplify 
> the first filter expression if you only need it to work in edit mode.
>
> There's probably a more elegant approach out there but this seems to work.
>
> On Tuesday, 15 June 2021 at 15:36:39 UTC+1 David Gifford wrote:
>
>> Hi all
>>
>> I need another list filter:
>>
>> ...minus any tiddlers transcluded in the" current tiddler.
>>
>> Use case: I plan to use transclusions to build long "article" tiddlers, 
>> with section headers and specific ordering of the transclusions. But as I 
>> take notes, I want to tag note tiddlers with the article(s) they will be 
>> transcluded in. 
>>
>> So in edit template, I want a list at the bottom of the tiddlers tagged 
>> to the current tiddler [all[current]tagging[]], minus the tiddlers I have 
>> already transcluded in the current tiddler. That way I can see which 
>> tiddlers still need transcluding.
>>
>> Thanks for any help with this. It doesn't look very straightforward. 
>> There doesn't seem to be a way to do -[all[current]transcluding[]] yet. 
>> Maybe in 5.1.25?
>>
>> Blessings,
>>
>

-- 
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/e3d14bdf-ced2-455e-b2a1-aecc6745bf4dn%40googlegroups.com.


[tw5] Re: Filter request: "except those transcluded in the" current tiddler

2021-06-16 Thread Si
Hi David,

I've been planning to do something similar in my own wiki. I can't think of 
a way to do it with a single filter expression, but here is a very clunky 
approach:

<$list filter="[tag] [tag{!!draft.of}]" 
variable=tagged-tiddler>
<$vars search-term={{{ [addprefix[{{]addsuffix[}}]] }}}>
<$list filter="[!search]">
<$link to=<>><>





This should work in both edit and view mode, but you can easily simplify 
the first filter expression if you only need it to work in edit mode.

There's probably a more elegant approach out there but this seems to work.

On Tuesday, 15 June 2021 at 15:36:39 UTC+1 David Gifford wrote:

> Hi all
>
> I need another list filter:
>
> ...minus any tiddlers transcluded in the" current tiddler.
>
> Use case: I plan to use transclusions to build long "article" tiddlers, 
> with section headers and specific ordering of the transclusions. But as I 
> take notes, I want to tag note tiddlers with the article(s) they will be 
> transcluded in. 
>
> So in edit template, I want a list at the bottom of the tiddlers tagged to 
> the current tiddler [all[current]tagging[]], minus the tiddlers I have 
> already transcluded in the current tiddler. That way I can see which 
> tiddlers still need transcluding.
>
> Thanks for any help with this. It doesn't look very straightforward. There 
> doesn't seem to be a way to do -[all[current]transcluding[]] yet. Maybe in 
> 5.1.25?
>
> Blessings,
>

-- 
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/d70cb040-fa23-407b-9dcd-c9edf4b36210n%40googlegroups.com.