[tw] Re: Building a complex reference list

2017-12-09 Thread Jed Carty
In this instance count isn't going to work. The functions that list 
references make sure that there is only one listed for each link regardless 
of how many are in a tiddler. That is the part of the functions that would 
need to be change in the new versions.

-- 
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/676f34c7-db6c-4c3a-9c5a-2658c5e18d2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Building a complex reference list

2017-12-09 Thread Shay Shaked
Thanks for that Jed, this works! now, to limit it with a count hmmm. 

On Friday, December 8, 2017 at 6:54:26 AM UTC-5, Jed Carty wrote:
>
> You are right that 1 and 3 relatively simple to do.
>
> Putting this in a tiddler will do 1 and 3:
>
> <$list filter='[backlinks[]tag[journal]]'>
>
>
> 
>
>  says to use the current tiddler as your input, you can 
> change this to something like [DnD] to make it for the DnD tiddler instead 
> of the tiddler where you put the code.
>
> backlinks[] gives all tiddlers that have links to the input tiddler (so 
> this covers 1)
>
> tag[journal] only keeps tiddlers tagged journal (so this covers 3)
>
> In order to make 2 work requires a new filter operator. It may not be too 
> hard to make because it would hopefully be a modified version of backlinks 
> but I don't know how backlinks works so I am not sure how difficult it 
> would be. 
>

-- 
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/efa550e1-0402-4982-aa58-4811c295c516%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Building a complex reference list

2017-12-09 Thread Shay Shaked
Tony,

The logic in that requirement is based on three points:

* I have a "people" subject in my Wiki.
* I mention certain people in my journal. If I know a person, I usually end
up giving them a nick name which works with CamelCase, for example,
"TheShaked."
* If a person has a Tiddler (those I interact with often do), there should
be a list of journal entries (also tiddlers) where I mentioned that person.
  * ...But, not every time I mention a name in writing, the journal is
actually about that person. For example, I could have a 5 paragraph journal
entry, and finish with "on my way to meet TheShaked"
* In order to limit the amount of "noise" of a long list, only those
journal entries that mention the person twice or three times or so, will be
added. This is not perfect, but reduces the number of accidental journal
entries.

I'm still thinking of a way...


On Dec 8, 2017 21:07, "TonyM"  wrote:

> Say,
>
> On Item 2  *if *two or more links to this tiddlers are present in the
> other tiddler
> It is clear this requires a technical solution, but I am curious how this
> requirement comes about?
>
> Clearly you will have to count each reference and referencing tiddler
> separately to determine if there are two or more references in each
> tiddler, one or more is also grater than 1"
>
> I use the below in a footer to search a (every) tiddler if they have one
> or more  occurrences of "string" in them.
>
> <$list filter="[all[current]search[string]limit[1]]" variable=null>
> 
>
> And I have not quite worked out why the count widget is not working for me.
>
> https://tiddlywiki.com/#CountWidget
>
> No answer just hints,
>
> Regards
> Tony
>
>
>
>
> On Friday, 8 December 2017 22:16:53 UTC+11, Shay Shaked wrote:
>>
>> This is going to be a bit hard to explain in writing, but here goes.
>>
>> Is there a way to create a list which will be created from other tiddlers
>> that connect to it?
>> In TW, if you open the extra option of a tiddler with the down arrow,
>> then go to info, then go to references, you see a list of tiddlers linking
>> to it. I want a list that will display these tiddlers to show in the
>> tiddler.
>>
>> Then: is it possible to have such a list created *automatically *in the
>> tiddler *if *two or more references are made to it from the *same *
>> tiddler.
>>
>> So let's recap with an example:
>>
>> I have a Tiddler called DnD (I'm a major geek, leave me alone ;) ).
>> There are perhaps 20 tiddlers connecting to it using that CamelCase link
>> above. I want a list displaying these inside the tiddler. But, this will be
>> way more effective if ONLY tiddlers that mention DnD more than once will
>> show. This way, if I talked about my weekend in a journal tiddler and I
>> describe a game I had, it is likely to show; but if I just mention it in
>> passing somewhere else, it won't. Makes sense? Good, because there's a bit
>> more:
>>
>> It will be even *better *if only journal tiddlers (tagged: journal) will
>> show.
>>
>>
>> - - -
>>
>> 1. Make a list of tiddlers linking to this tiddler
>>
>> 2. Make a list of tiddlers linking to this tiddler *if *two or more
>> links to this tiddlers are present in the other tiddler
>>
>> 3. Make a list of the above only of tiddlers tagged "journal".
>>
>>
>> So... anyone up for explaining this to me? I believe 1 and 3 are actually
>> not that hard, it's 2 that requires a bit of programming. Thanks!
>>
> --
> 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/to
> pic/tiddlywiki/X2-6QnmNsE0/unsubscribe.
> To unsubscribe from this group and all its topics, 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/ms
> gid/tiddlywiki/6b5eae60-d4bd-4761-aad7-27ac54fb98e1%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CALKh0m3KEPGa69rT3aMtY%3DmyEY7xyxEHR5kEd6JEd%3D0gK%3DVr9w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Building a complex reference list

2017-12-08 Thread TonyM
Say,

On Item 2  *if *two or more links to this tiddlers are present in the other 
tiddler
It is clear this requires a technical solution, but I am curious how this 
requirement comes about?

Clearly you will have to count each reference and referencing tiddler 
separately to determine if there are two or more references in each 
tiddler, one or more is also grater than 1"

I use the below in a footer to search a (every) tiddler if they have one or 
more  occurrences of "string" in them.

<$list filter="[all[current]search[string]limit[1]]" variable=null>


And I have not quite worked out why the count widget is not working for me.

https://tiddlywiki.com/#CountWidget

No answer just hints,

Regards
Tony




On Friday, 8 December 2017 22:16:53 UTC+11, Shay Shaked wrote:
>
> This is going to be a bit hard to explain in writing, but here goes. 
>
> Is there a way to create a list which will be created from other tiddlers 
> that connect to it? 
> In TW, if you open the extra option of a tiddler with the down arrow, then 
> go to info, then go to references, you see a list of tiddlers linking to 
> it. I want a list that will display these tiddlers to show in the tiddler. 
>
> Then: is it possible to have such a list created *automatically *in the 
> tiddler *if *two or more references are made to it from the *same *
> tiddler. 
>
> So let's recap with an example:
>
> I have a Tiddler called DnD (I'm a major geek, leave me alone ;) ). 
> There are perhaps 20 tiddlers connecting to it using that CamelCase link 
> above. I want a list displaying these inside the tiddler. But, this will be 
> way more effective if ONLY tiddlers that mention DnD more than once will 
> show. This way, if I talked about my weekend in a journal tiddler and I 
> describe a game I had, it is likely to show; but if I just mention it in 
> passing somewhere else, it won't. Makes sense? Good, because there's a bit 
> more: 
>
> It will be even *better *if only journal tiddlers (tagged: journal) will 
> show. 
>
>
> - - - 
>
> 1. Make a list of tiddlers linking to this tiddler
>
> 2. Make a list of tiddlers linking to this tiddler *if *two or more links 
> to this tiddlers are present in the other tiddler
>
> 3. Make a list of the above only of tiddlers tagged "journal". 
>
>
> So... anyone up for explaining this to me? I believe 1 and 3 are actually 
> not that hard, it's 2 that requires a bit of programming. 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 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/6b5eae60-d4bd-4761-aad7-27ac54fb98e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Building a complex reference list

2017-12-08 Thread Shay Shaked
Also excuse annoying auto correct typos, my phone prefers toddlers over
tiddlers ;)

On Dec 8, 2017 07:11, "Shay Shaked"  wrote:

> Thanks for that, already covered 2 out of 3 :)
>
> So, we I wonder if there's a function of sorts that reads words in a
> toddler. If that's the case, we can include the first part you mentioned in
> a macro:
>
>  (where DnD is the tag, the only variable).
>
> Then, code will need to be written, and I don't know how it will look
> like. Something along this:
>
> if ( 1)
>   
> else
>   exit
>
> Embed it all in the linklist macro above, so all you need is to specify a
> tag. A list will be generated but would only display if the count is bigger
> than one, or even 2 if I want a stricter filter for more common terms that
> I mention often.
>
> Now, does such a thing exist...? :)
>
>
> On Dec 8, 2017 06:54, "Jed Carty"  wrote:
>
> You are right that 1 and 3 relatively simple to do.
>
> Putting this in a tiddler will do 1 and 3:
>
> <$list filter='[backlinks[]tag[journal]]'>
>
>
> 
>
>  says to use the current tiddler as your input, you can
> change this to something like [DnD] to make it for the DnD tiddler instead
> of the tiddler where you put the code.
>
> backlinks[] gives all tiddlers that have links to the input tiddler (so
> this covers 1)
>
> tag[journal] only keeps tiddlers tagged journal (so this covers 3)
>
> In order to make 2 work requires a new filter operator. It may not be too
> hard to make because it would hopefully be a modified version of backlinks
> but I don't know how backlinks works so I am not sure how difficult it
> would be.
>
> --
> 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/to
> pic/tiddlywiki/X2-6QnmNsE0/unsubscribe.
> To unsubscribe from this group and all its topics, 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/ms
> gid/tiddlywiki/037287e8-201a-49d3-a33e-a28aaa127f07%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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/CALKh0m1XQHuHLAbGu9xLCjgPV702%2BvEC04uPT84DgLmAfgUxBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Building a complex reference list

2017-12-08 Thread Shay Shaked
Thanks for that, already covered 2 out of 3 :)

So, we I wonder if there's a function of sorts that reads words in a
toddler. If that's the case, we can include the first part you mentioned in
a macro:

 (where DnD is the tag, the only variable).

Then, code will need to be written, and I don't know how it will look like.
Something along this:

if ( 1)
  
else
  exit

Embed it all in the linklist macro above, so all you need is to specify a
tag. A list will be generated but would only display if the count is bigger
than one, or even 2 if I want a stricter filter for more common terms that
I mention often.

Now, does such a thing exist...? :)


On Dec 8, 2017 06:54, "Jed Carty"  wrote:

You are right that 1 and 3 relatively simple to do.

Putting this in a tiddler will do 1 and 3:

<$list filter='[backlinks[]tag[journal]]'>




 says to use the current tiddler as your input, you can
change this to something like [DnD] to make it for the DnD tiddler instead
of the tiddler where you put the code.

backlinks[] gives all tiddlers that have links to the input tiddler (so
this covers 1)

tag[journal] only keeps tiddlers tagged journal (so this covers 3)

In order to make 2 work requires a new filter operator. It may not be too
hard to make because it would hopefully be a modified version of backlinks
but I don't know how backlinks works so I am not sure how difficult it
would be.

-- 
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/X2-6QnmNsE0/unsubscribe.
To unsubscribe from this group and all its topics, 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/037287e8-201a-49d3-a33e-a28aaa127f07%40googlegroups.com

.

For more options, visit https://groups.google.com/d/optout.

-- 
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/CALKh0m2TvKpOtLi%3D2LJ2%2B6s6bAWiwkXnPe0Lg1aXa4DJ3vF2bA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Building a complex reference list

2017-12-08 Thread Jed Carty
>From a quick look at the code it wouldn't take a lot of effort to make 
this. It would require a modified version of getTiddlerLinks and a modified 
version of getTiddlerBacklinks in this 
file https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/wiki.js

-- 
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/b50fd94a-b0bf-4bf1-bd56-70ea9e99d156%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Building a complex reference list

2017-12-08 Thread Jed Carty
You are right that 1 and 3 relatively simple to do.

Putting this in a tiddler will do 1 and 3:

<$list filter='[backlinks[]tag[journal]]'>




 says to use the current tiddler as your input, you can 
change this to something like [DnD] to make it for the DnD tiddler instead 
of the tiddler where you put the code.

backlinks[] gives all tiddlers that have links to the input tiddler (so 
this covers 1)

tag[journal] only keeps tiddlers tagged journal (so this covers 3)

In order to make 2 work requires a new filter operator. It may not be too 
hard to make because it would hopefully be a modified version of backlinks 
but I don't know how backlinks works so I am not sure how difficult it 
would be. 

-- 
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/037287e8-201a-49d3-a33e-a28aaa127f07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.