[tw5] Any one use firenvim in tiddlywiki ? set lines not worked. How to fix it?

2020-09-14 Thread Zhe Lee
I found a wonderful plugin in for broswer writting in nvim. 
https://github.com/glacambre/firenvim

It worked well in other website like **github issue**. Command like `set 
lines=40` which make the height of the box worked. But in the tiddlywiki 
tiddler. `set lines` not worked how to fix it?

-- 
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/edb95fd5-98fa-4f15-ac8d-716a4b315661o%40googlegroups.com.


[tw5] Upgrading my TW

2020-09-14 Thread Bob Jansen
I am writing a TW that will be distributed to several test users. Each will 
obviously add their own data into their own copy.

How can I release a new version so they can upgrade whilst saving all their 
data? I have looked at the upgrade.html file and this seems to be aimed at 
upgrading the TW core, etc, not my own code.

Is there a user upgrade facility?

bobj

-- 
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/ad125d6a-74cf-4193-a809-03719afb93acn%40googlegroups.com.


Re: [tw5] Re: A TiddlyWiki "TODO organization/reminder" approach

2020-09-14 Thread 林东吴
Hi Veniot,

I know one of my friend even use [[2020-xx-xx]] to create a reminder, then
when 2020-xx-xx comes, he get this backlink in his daily-note in roam
research.

My TODO is just using https://github.com/kookma/TW-Shiraz 's Dynamic Table,
it really worth a trying in his website.

I use kin-filter to get all tiddler with Task tag and "related to xxx
topic", and create several different topic related todo list. You can find
an example in https://onetwo.ren/wiki/#自改TW

LinOnetwo

TW Tones  于2020年9月14日周一 上午10:38写道:

> Charlie,
>
> Thanks for sharing. It is a somewhat novel approach.
>
> With a lot of focus recently on references and back-links we are seeing
> people make use of these a lot.
>
> Sharing such code patterns are really good for the community, thanks.
>
> Tones
>
> On Monday, 14 September 2020 09:13:45 UTC+10, Charlie Veniot wrote:
>>
>> G’day,
>>
>> I needed a way to remind myself of “TODO” tasks in regards to my
>> dual-purpose “Product Reviews” and “Urban Off Gridding for Laypersons”
>> TiddlyWiki
>> 
>> .
>>
>> My approach:
>>
>>-
>>
>>In whatever tiddler requiring something I need to do, I add (in the
>>text of the tiddler) a [[TODO]] link along with notes related to the thing
>>I need to do
>>-
>>
>>When I’ve completed the thing I needed to do, I just edit the tiddler
>>and get rid of the [[TODO]] link and the related notes.
>>-
>>
>>   I don’t need a “record” of the thing being done
>>   -
>>
>>To remind me of what I need to do …
>>-
>>
>>   The sidebar displays a fairly noticeable TODO section (a “TODO”
>>   DetailsWidget containing the list of tiddlers that have [[TODO]] links)
>>   -
>>
>>   When there are no tiddlers referencing [[TODO]], then the
>>   sidebar's TODO section "disappears" *(reappearing next time a
>>   [[TODO]] link gets created in some tiddler)*
>>
>>
>> Please find below 5 screenshots of related things to look for in my
>> TiddlyWiki
>> 
>> .
>>
>> Cheers !
>>
>>
>> TODO section in the sidebar (collapsed)
>>
>> [image: TheTodoInTheSidebarCollapsed.png]
>>
>>
>>
>> TODO section in the sidebar (expanded)
>>
>> [image: TheTodoInTheSidebarExpanded.png]
>>
>>
>>
>> The filter that creates the TODO section if there are any TODO’s
>>
>> [image: CustomTiddlywikiTitleTop.png]
>>
>>
>>
>> The TODO tiddler
>>
>> [image: TheTodoTiddler.png]
>>
>>
>>
>> A sample TODO (TODO reference and related notes)
>>
>> [image: TodoReference.png]
>>
>>
>>
>>
>> --
> 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/74bbc00a-befc-419d-be1d-b3f017ccbc6fo%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/CA%2BmF0D_xVCQrzPQLLVQkfAozdrU%3DaQm6XUuQsVwLqcx2J494uw%40mail.gmail.com.


Re: [tw5] Leave Page message

2020-09-14 Thread 林东吴
Hi Jansen,

Search for `onbeforeunload` and you will find it.

Based on this knowledge I develop a plugin to prevent this dialog to popup
https://github.com/linonetwo/tiddlywiki-plugins/tree/master/plugins/linonetwo/prevent-edit

Lin Onetwo

Bob Jansen  于2020年9月15日周二 下午1:52写道:

> From that I understand, if my wiki has been edited and the √  button is
> red, if I close the wiki before saving, I will get the Stay or Leave
> message box.
>
> Is there any way to alter the message to make it more explicit that the
> wiki needs to be saved and then to save it when clicking the save button?
>
> I assume there is a tiddler somewhere that I can edit but I can't find it.
>
> bobj
>
> --
> 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/2be5a963-4e5b-4fdd-81c2-16e9249f0296n%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/CA%2BmF0D9f7OMp3pWzewycHBke_QwXUw1UfHv3ybmZCwo9%2BVkq-Q%40mail.gmail.com.


[tw5] Leave Page message

2020-09-14 Thread Bob Jansen
>From that I understand, if my wiki has been edited and the √  button is 
red, if I close the wiki before saving, I will get the Stay or Leave 
message box.

Is there any way to alter the message to make it more explicit that the 
wiki needs to be saved and then to save it when clicking the save button?

I assume there is a tiddler somewhere that I can edit but I can't find it.

bobj

-- 
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/2be5a963-4e5b-4fdd-81c2-16e9249f0296n%40googlegroups.com.


Re: [tw5] Re: one to many relationship

2020-09-14 Thread Bob Jansen
Colleagues,

after studying Felicia's contribution, it became immediately obvious that 
my initial tiddler structure was the problem in that my trial wiki added 
the artwork title as the tiddler title, which as I replied to Jed can't be 
correct since we can not guarantee the uniqueness of the artwork title. So, 
I changed the tiddler title to be the unique id, ie. BJ2, and this required 
changes to the artwork template for displaying details of an artwork since 
the user really only wants to see the artwork title and not the tiddler 
title. so underneath the artwork image, we now display the line of 

artwork_title, artwork_medium, artwork_size, artwork_yearofcreation

as is expected in a 'normal' caption.

Now this immediately made the following code work correctly.

<$list 
filter="[tag[Artworks]!search:purchased_by{!!title}sort[title]]">•
 
<$link to={{!!artwork_id}}><$view 
field="artwork_title"/>

The important bit is the $view statement as that 'transcludes' the 
artwork_id with the artwork_title on display but links using the artwork_id 
and so correctly displays the correct artwork when clicked.

I guess a concern may be the search statement when the number of tiddlers 
gets very large but we'll cross that bridge when we come to it.

I am looking at the Generic Tag plugin and seeing if this provides a more 
useful mechanism.

Thanks to all for your input.

bobj
On Tuesday, 15 September 2020 at 08:43:23 UTC+10 TW Tones wrote:

> Bob,
>
> Yes, tiddlywiki is in my view the "healthiest" online community group I 
> have ever come across. 
>
> Result: we all contribute more.
>
> Tones
>
>
> On Tuesday, 15 September 2020 08:38:56 UTC+10, Dr Bob Jansen wrote:
>
>> Thanks for the link Marco, I'll check it out.
>>
>> Can I just add a note of appreciation to this group, it is the most 
>> helpful group I have been a member of. I accept my questions must seem 
>> basic but as a newbie I am struggling through the TW concepts and usage. 
>> All the advice I have gotten over the past few days is incredibly helpful 
>> and not one troll.
>>
>> Thanks again everyone.
>>
>> BobJ
>>
>> ---
>>
>> Dr Bob Jansen
>>
>> The Cultural Conversations project 
>>
>> Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral History
>>
>> 122 Cameron St, Rockdale NSW 2216, Australia 
>>
>> Ph (Korea): +82 10-4494-0328 
>>
>> Ph (Australia) +61 414 297 448 
>>
>> Resume: http://au.linkedin.com/in/bobjan 
>>
>> Skype: bobjtls 
>>
>> KakaoTalk: bobjtls 
>>
>> http://www.cultconv.com 
>>
>>
>>  In line with the Australian anti-spam legislation, if you wish to receive 
>> no further email from me, please send me an email with the subject "No Spam"
>>
>>
>> On 15 Sep 2020, at 08:29, PMario  wrote:
>>
>> On Monday, September 14, 2020 at 4:31:58 PM UTC+2, TW Tones wrote:
>>
>> Mario published a gen tags, or alt tags plugin that allows additional 
>>> tags like fields that are helpful in cases like this. But you can 
>>> effectivly craft you own, the listops functions help with this.
>>>
>>
>> That wasn't me. I think it's this: 
>> https://ooktech.com/jed/ExampleWikis/GenericTagFields/ what you meant. 
>>
>> -m
>>
>> -- 
>> 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/6I60ywWH5Fo/unsubscribe.
>>
>> To unsubscribe from this group and all its topics, send an email to 
>> tiddl...@googlegroups.com.
>>
>>
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/522a883a-48d9-4874-81f8-a920f5f730f7o%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/600f0f8a-dbf5-4d69-b52f-482a617ce599n%40googlegroups.com.


Re: [tw5] Re: one to many relationship

2020-09-14 Thread TW Tones
Bob,

Yes, tiddlywiki is in my view the "healthiest" online community group I 
have ever come across. 

Result: we all contribute more.

Tones


On Tuesday, 15 September 2020 08:38:56 UTC+10, Dr Bob Jansen wrote:
>
> Thanks for the link Marco, I'll check it out.
>
> Can I just add a note of appreciation to this group, it is the most 
> helpful group I have been a member of. I accept my questions must seem 
> basic but as a newbie I am struggling through the TW concepts and usage. 
> All the advice I have gotten over the past few days is incredibly helpful 
> and not one troll.
>
> Thanks again everyone.
>
> BobJ
>
> ---
>
> Dr Bob Jansen
>
> The Cultural Conversations project 
>
> Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral History
>
> 122 Cameron St, Rockdale NSW 2216, Australia 
>
> Ph (Korea): +82 10-4494-0328 
>
> Ph (Australia) +61 414 297 448 
>
> Resume: http://au.linkedin.com/in/bobjan 
>
> Skype: bobjtls 
>
> KakaoTalk: bobjtls 
>
> http://www.cultconv.com 
>
>
>  In line with the Australian anti-spam legislation, if you wish to receive no 
> further email from me, please send me an email with the subject "No Spam"
>
>
> On 15 Sep 2020, at 08:29, PMario > wrote:
>
> On Monday, September 14, 2020 at 4:31:58 PM UTC+2, TW Tones wrote:
>
> Mario published a gen tags, or alt tags plugin that allows additional tags 
>> like fields that are helpful in cases like this. But you can effectivly 
>> craft you own, the listops functions help with this.
>>
>
> That wasn't me. I think it's this: 
> https://ooktech.com/jed/ExampleWikis/GenericTagFields/ what you meant. 
>
> -m
>
> -- 
> 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/6I60ywWH5Fo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> tiddl...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/522a883a-48d9-4874-81f8-a920f5f730f7o%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/fb4fe400-2ce6-43f4-a0ed-e0e465f6f575o%40googlegroups.com.


Re: [tw5] Re: one to many relationship

2020-09-14 Thread Dr Bob Jansen
Mario, 

Sorry about misspelling your name in my last message. I hate predictive 
spelling of the iPad. I usually check  but for some reason didn't that time.

BobJ

---
Dr Bob Jansen
The Cultural Conversations project 
Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral History
122 Cameron St, Rockdale NSW 2216, Australia 
Ph (Korea): +82 10-4494-0328 
Ph (Australia) +61 414 297 448 
Resume: http://au.linkedin.com/in/bobjan 
Skype: bobjtls 
KakaoTalk: bobjtls 
http://www.cultconv.com 

 In line with the Australian anti-spam legislation, if you wish to receive no 
further email from me, please send me an email with the subject "No Spam"

> On 15 Sep 2020, at 08:29, PMario  wrote:
> 
>> On Monday, September 14, 2020 at 4:31:58 PM UTC+2, TW Tones wrote:
>> 
>> Mario published a gen tags, or alt tags plugin that allows additional tags 
>> like fields that are helpful in cases like this. But you can effectivly 
>> craft you own, the listops functions help with this.
> 
> That wasn't me. I think it's this: 
> https://ooktech.com/jed/ExampleWikis/GenericTagFields/ what you meant. 
> 
> -m
> -- 
> 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/6I60ywWH5Fo/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/522a883a-48d9-4874-81f8-a920f5f730f7o%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/15DDD279-5743-4D68-A66E-55F314FFFBB5%40gmail.com.


Re: [tw5] Re: one to many relationship

2020-09-14 Thread Dr Bob Jansen
Thanks for the link Marco, I'll check it out.

Can I just add a note of appreciation to this group, it is the most helpful 
group I have been a member of. I accept my questions must seem basic but as a 
newbie I am struggling through the TW concepts and usage. All the advice I have 
gotten over the past few days is incredibly helpful and not one troll.

Thanks again everyone.

BobJ

---
Dr Bob Jansen
The Cultural Conversations project 
Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral History
122 Cameron St, Rockdale NSW 2216, Australia 
Ph (Korea): +82 10-4494-0328 
Ph (Australia) +61 414 297 448 
Resume: http://au.linkedin.com/in/bobjan 
Skype: bobjtls 
KakaoTalk: bobjtls 
http://www.cultconv.com 

 In line with the Australian anti-spam legislation, if you wish to receive no 
further email from me, please send me an email with the subject "No Spam"

> On 15 Sep 2020, at 08:29, PMario  wrote:
> 
>> On Monday, September 14, 2020 at 4:31:58 PM UTC+2, TW Tones wrote:
>> 
>> Mario published a gen tags, or alt tags plugin that allows additional tags 
>> like fields that are helpful in cases like this. But you can effectivly 
>> craft you own, the listops functions help with this.
> 
> That wasn't me. I think it's this: 
> https://ooktech.com/jed/ExampleWikis/GenericTagFields/ what you meant. 
> 
> -m
> -- 
> 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/6I60ywWH5Fo/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/522a883a-48d9-4874-81f8-a920f5f730f7o%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/5F3C9A5B-E6F4-402D-A1F0-B40F8DE8C3D3%40gmail.com.


Re: [tw5] Re: one to many relationship

2020-09-14 Thread Dr Bob Jansen
Jed, 

Apologies, I mistook your title for the artwork title. I generate a unique ID 
and the use that as the tiddler title.

BobJ

---
Dr Bob Jansen
The Cultural Conversations project 
Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral History
122 Cameron St, Rockdale NSW 2216, Australia 
Ph (Korea): +82 10-4494-0328 
Ph (Australia) +61 414 297 448 
Resume: http://au.linkedin.com/in/bobjan 
Skype: bobjtls 
KakaoTalk: bobjtls 
http://www.cultconv.com 

 In line with the Australian anti-spam legislation, if you wish to receive no 
further email from me, please send me an email with the subject "No Spam"

> On 15 Sep 2020, at 00:26, Jed Carty  wrote:
> 
> The title field of the tiddler must be unique, so while the buyers may have a 
> name field that does not need to be unique, it can not be the tiddler title. 
> So use the tiddler titles as the unique field because they must be unique 
> anyway.
> -- 
> 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/6I60ywWH5Fo/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/685175bd-6cf5-4f65-b200-0d7cc68cce8eo%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/89238167-4264-49F3-92FD-83D059AFDA4B%40gmail.com.


Re: [tw5] Re: one to many relationship

2020-09-14 Thread PMario
On Monday, September 14, 2020 at 4:31:58 PM UTC+2, TW Tones wrote:

Mario published a gen tags, or alt tags plugin that allows additional tags 
> like fields that are helpful in cases like this. But you can effectivly 
> craft you own, the listops functions help with this.
>

That wasn't me. I think it's this: 
https://ooktech.com/jed/ExampleWikis/GenericTagFields/ what you meant. 

-m

-- 
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/522a883a-48d9-4874-81f8-a920f5f730f7o%40googlegroups.com.


[tw5] Re: Extracting and grouping by multivalue field

2020-09-14 Thread Felicia Crow
Hi,

if you have a way to filter for all site tiddlers you could then use the 
contains operator to see if the site is contained in the sites field. 
Something like this:

<$list filter="[!has[draft.of]tag[Site]sort[title]]" variable="site">

<$link to=<> />

<$list filter="[!has[draft.of]has[sites]contains:sitessort[title]]">
<>






Which would look something like this - although in your case with more and 
meaningful data:

Regards,
Felicia



On Monday, 14 September 2020 12:51:34 UTC+2, Darek Bobak wrote:
>
> My tiddlers have a field "sites", in which I store multivalue site names, 
> in format: 
> Rörshein Zeitlarn [[Vedrovice V]] [[Dzierżysław I]] 
>
> The code below creates a hierarchical list showing tiddlers names and list 
> of sites assigned to each tiddler (look at the attachment).
>
> <$list filter="[has[sites]]">
>   
> <$link><>
> <$list filter="[enlist{!!sites}sort[title]]" variable="mySites" >
> <> 
> 
>   
> 
>
> But I can not get the reverse order,ie to group the tiddlers by the 
> sites, like that:
> * Albersdorf
> * tiddler 1
> * tiddler 2
> * Ksar Akil
>  * tiddler 1
>  * tiddler 3
>
> Would someone help?
>
> best
> Darek
> [image: Zrzut ekranu 2020-09-14 124902.png]
>

-- 
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/fa0df2e1-057f-49de-a3bd-2349425c6284o%40googlegroups.com.


[tw5] Re: How To: altering TiddlyWiki appearance based on context (URL parameters at StartUp, and via radio buttons after StartUp)

2020-09-14 Thread Felicia Crow
Thank you for the compliment, I am glad it is understandable.
And while there are definitely people in this group with far more knowledge 
then me I am happy to help when I can.




On Monday, 14 September 2020 16:28:33 UTC+2, Charlie Veniot wrote:
>
> Holy guacamole, that is a thing of beauty.
>
> I think I get it.  Seeing a macro and filter in the context of some thing 
> I want to do, that kind of practical perspective makes things pretty clear.
>
> Thank-you so much !  I have to figure out how to intertwingle some 
> studying time (for all of this) with all of my little projects.
>
> FUN!
>
> On Monday, September 14, 2020 at 8:31:27 AM UTC-3, Felicia Crow wrote:
>>
>> Hi,
>> so actually the answer is probably not going to be much longer it just 
>> contains a macro example and an explanation of how it works. The macro 
>> itself can live in any tiddler tagged with $:/tags/Macro.
>>
>> So first here is the actual macro:
>> \define RenderContent(id)
>> <$vars purpose={{{[has[purpose]get[purpose]]}}} id="$id$">
>> <$list filter=
>> "[!has[draft.of]field:tiddler-idfield:context]">
>> <$transclude tiddler=<> mode="block"/>
>> 
>> 
>> \end
>>
>> And while it is a more configureable version of my former solution here 
>> is a breakdown of how it works
>>
>>- First the macro sets two variables: Purpose via an inline filter 
>>and id which it gets from the macro parameter. For the inline filter all 
>> it 
>>does is looking for a tiddler with the field purpose and then gets this 
>>fields value. This stops the reliance on title, but you will have to 
>> ensure 
>>that there is always only one purpose field within the wiki.
>>- The list filter then looks for a tiddler that is not currently 
>>being in editmode - the !has[draft.of] part - and has two fields matching 
>>the values from the variables. For one the context field being the same 
>> as 
>>whatever is currently in purpose and the tiddler-id field being the same 
>> as 
>>the id passed to the macro.
>>- When a tiddler fullfilling these conditions is found it is 
>>transcluded at the place the macro was called from.
>>
>>
>> To use the macro here is an example using Contents, but it is the exact 
>> same process for Title, Subtitle, every future tiddler having different 
>> text depending on context just with a different id.
>>
>>- In the Contents tiddler you replace your line with the two 
>>transclusions with <>.
>>- In Contents (Product Reviews) you add two fields. One is called 
>>context and has a value of ProductReviews the other is called tiddler-id 
>>and gets a value of Contents.
>>- In Contents (Urban Off Gridding) the same two fields are added, 
>>just that context now has a value of OffGridding.
>>
>> That's it, nothing changes visually, but if you decide that Contents - 
>> Product Reviews is a better title for instance the macro still works as 
>> expected.
>>
>> Since I worked with a local copy of your wiki to ensure that the macro is 
>> working as intended with the wiki it is inteded for I attached a json file 
>> containing the ten tiddlers - the macro itself plus the changed versions of 
>> Contents, Title, Subtitle - that you can just import and everything is set 
>> up as I described above should you prefer this route.
>>
>> Kind Regards,
>> Felicia
>>
>>
>> On Monday, 14 September 2020 04:00:09 UTC+2, Felicia Crow wrote:
>>>
>>> Seeing how I may should eventually remember that sleeping at night is a 
>>> thing a short answer for now, but I will return with a longer answer and 
>>> possible examples later.
>>>
>>> The solution was mostly to keep it within the current framework and not 
>>> changing too much around. For a more centralised approach to the whole 
>>> system tags and or fields will probably get a more prominent role, both for 
>>> minimizing code duplication as well as dropping a reliance on titles.
>>> For instance the Content and Title tiddler could call the same macro 
>>> with their type - content and title respectively in this case - and the 
>>> macro filters for a tiddler with two fields: one named tiddler-type 
>>> matching what was send to the macro and the other named context matching 
>>> the context currently in your purpose field. Since this match is made via 
>>> the two fields the title also doesn't matter. This tiddler or more 
>>> correctly its title is returned to the tiddler which then transcludes the 
>>> result.
>>>
>>> I will write a more concrete example when my brain isn't on standby but 
>>> actually working again, but I hope that this may give you some idea already.
>>>
>>>
>>>
>>> On Monday, 14 September 2020 02:58:31 UTC+2, Charlie Veniot wrote:

 That looks A-1 to do on one tiddler needing to decide what content to 
 show based on context, but how to do that once so that it can be used for 
 a 
 plethora of tiddlers that show different content based on context?

 I would not want to put that

[tw5] Stroll : Autocompletion when linking on android phone.

2020-09-14 Thread majid majidi

I just wonder whether* Stroll's autocompletion when linking *works on 
android phone or not and if so how can I fix that.I'm curently using 
Quinoid but when I type [[ autocompletion doesn't work  and nothing 
appears.I would be grateful if anyone could possibly walk me through that 
and help me to solve that.

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/98910a1e-f41c-4861-ac90-0aea3a479ab7n%40googlegroups.com.


[tw5] Please critique my solution

2020-09-14 Thread talha131
What’s the objective? 

Show a list of tiddlers that link to the current tiddler, using either soft 
or hard links, and show the tiddlers current tiddler links to.
My solution 

Create a template with the following code



! What Links here>


! Outbound links
>


! Search Result
<]">>


Problem 1 

I could not find an operator that lists soft-links. So I relied on the 
search operator. What do you think of the following code?

<]">>

Problem 2 

I could not figure out how to show the soft-links used in the current 
tiddler. I guess that I would have to use regex and search operators. 

I am not sure what the perfect regex expression would be because you can 
create a soft-link in a number of ways, like using """ or using {{. Also, 
how to know that the text inside """ or {{ is part of a soft-link.
Request 

Kindly review my code and let me know if I missed something or if it can be 
improved.

Also, please share a solution if you know a way to solve problem 2 reliably.
​

-- 
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/29de45ed-cdeb-466d-95ad-67fc03878c53o%40googlegroups.com.


[tw5] Re: How to create hard link using macro?

2020-09-14 Thread talha131
Tejasvi, did you find a solution to the issue? 

I also need a way to get soft links to a tiddler.

-- 
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/9cbf5926-86ff-4d20-a611-5689253eb1ebo%40googlegroups.com.


Re: [tw5] Re: TiddlyWiki toolmap submissions

2020-09-14 Thread TW Tones
Thanks david,

Will Do

Tones

On Monday, 14 September 2020 22:38:41 UTC+10, David Gifford wrote:
>
> Hi TW Tones
>
> I try to qualify entries in the description, but ultimately people like 
> experimenting hands on with the different plugins to see what best suits 
> them. If you send me a link to the datepicker you mentioned, I will add it 
> and describe it however you want so it stands out.
>
> Blessings, Dave
>
>
> On Sun, Sep 13, 2020 at 6:02 PM TW Tones  > wrote:
>
>> David,
>>
>> I do not want to saturate the tools list 
>>
>>- but I discovered a simple way to provide a date picker that returns 
>>the Tiddlywiki serial number.
>>- Perhaps we need to Qualify some of the items on the tools links so 
>>they can be differentiated. 
>>
>> Regards
>> Tones
>>
>> On Sunday, 13 September 2020 22:08:58 UTC+10, David Gifford wrote:
>>>
>>> I added both versions on one line of the toolmap, here: 
>>> https://dynalist.io/d/zUP-nIWu2FFoXH-oM7L7d9DM#z=KD7kUsUIFmx3Us0teMLUILMI
>>>
>>> Thanks for catching this! Happy to add overlooked items as people point 
>>> them out to me.
>>>
>>> On Sunday, September 13, 2020 at 6:25:16 AM UTC-5 strikke...@gmail.com 
>>> wrote:
>>>
  Tobias Beer mentions GSD5 and the datepicker, but the GSD5 wiki and 
 the datepicker was created by Roma Hicks as far as I remember.
 Link for the wiki with the datepicker http://gsd5.tiddlyspot.com/
 A later version of the wiki can be found here: 
 https://gitlab.com/gsd5-tiddlywiki

 Birthe

>>> -- 
>> 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/-uH3JhUTKwg/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> tiddl...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/b4b64831-abdc-4f10-be61-b9cf40789681o%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/9db5c7e8-5707-4978-925e-161a41e64c8eo%40googlegroups.com.


Re: [tw5] Re: one to many relationship

2020-09-14 Thread TW Tones
Bob,

If the tiddlers title is unique it could be as simple as  artworkname, 
artworkname 1 ...

However if you set the caption, captions need not be unique. They show in 
lists.

In your source example I could only see a one to many relationship.

Truth is tags are good at this, but I too try not to use them so as to not 
pollute the tag space and leave them for as needed relationships.

Mario published a gen tags, or alt tags plugin that allows additional tags 
like fields that are helpful in cases like this. But you can effectivly 
craft you own, the listops functions help with this.

Regards
Tones



On Tuesday, 15 September 2020 00:06:07 UTC+10, Dr Bob Jansen wrote:
>
> Felicia 
>
> Thank you for your detailed reply. I will study it in the morning and make 
> sure I follow what you are saying.
>
> BobJ
>
> ---
>
> Dr Bob Jansen
>
> The Cultural Conversations project 
>
> Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral History
>
> 122 Cameron St, Rockdale NSW 2216, Australia 
>
> Ph (Korea): +82 10-4494-0328 
>
> Ph (Australia) +61 414 297 448 
>
> Resume: http://au.linkedin.com/in/bobjan 
>
> Skype: bobjtls 
>
> KakaoTalk: bobjtls 
>
> http://www.cultconv.com 
>
>
>  In line with the Australian anti-spam legislation, if you wish to receive no 
> further email from me, please send me an email with the subject "No Spam"
>
>
> On 14 Sep 2020, at 22:39, Felicia Crow > 
> wrote:
>
> Hi,
> so to extend Jed's solution I assume three things: Each tiddler for a 
> person has a buyer-id field, each tiddler for an artwork has an artwork-id 
> field and each person tiddler has an bought-artwork field that contains a 
> space separated list of artwork-ids. If the artwork ids don't contain 
> spaces themselves it is enough to just write the id otherwise you have to 
> wrap the id in double square brackets like a link. Basically looking like 
> what Jed had in his answer for the artwork names, but with your ids instead.
>
> To show what artworks a person has bought you would use this triple list - 
> probably preferably in a macro with the buyer-id being a macro parameter - 
> to set the buyer-id, get the list of bought artwork and list out the 
> artwork titles:
> <$list filter="[!has[draft.of]field:buyer-id[specific_id_here]]">
> <$list filter="[list[!!bought-artwork]sort[title]]" variable="artwork-id">
> <$list filter="[!has[draft.of]field:artwork-id]">
> <>
> 
> 
> 
>
> The outer most list just sets the currentTiddler to that of the person 
> having this specific id as the list operator only works with either fixed 
> references or the currentTiddler.
> The next list takes the content of the bought-artwork field and turns it 
> into an actual list of (pseudo) tiddlers. While the field passed to sort is 
> title due to how things work, it actually essentially sorts by id. Setting 
> the result to a variable in this step isn't essential, but may helps to 
> make the readabilty of the next filter better.
> The inner most list finally takes each id one after the other and looks 
> for a tiddler that has a field artwork-id with the same value as the 
> artwork-id it currently processes. If it finds such a tiddler it displays 
> it.
>
> In the other direction you would have this far smaller one list - once 
> again could be put in a macro, just this time with the art-id being a 
> parameter:
> <$list filter="[!has[draft.of]
> has[buyer-id]contains:bought-artwork[specific_id_here]]">
> <>
> 
>
> The filter here gets every tiddler that has a field buyer-id and then 
> looks up for every one of them if the bought-artwork field contains the 
> artwork-id.
>
> Hope this helps!
>
> Kind Regards,
> Felicia
>
>
> On Monday, 14 September 2020 13:32:07 UTC+2, Bob Jansen wrote:
>>
>> Jed
>>
>> Thanks for your email 
>>
>> I can’t use titles as they can not be guaranteed to be unique. That’s why 
>> every tiddler has a unique id.
>>
>> I was thinking about a filed in the name riddler with the ids of the 
>> artworks but then how to display the titles?
>>
>> Bobj
>>
>> Dr. Bob Jansen
>> 122 Cameron St, Rockdale NSW 2216, Australia
>> Ph: +61 414 297 448
>> Skype: bobjtls
>>
>>
>> On 14 Sep 2020, at 21:15, Jed Carty  wrote:
>>
>> Do these relations need to be bi-directional? That makes things difficult 
>> enough that I made a plugin for it 
>> https://ooktech-tw.gitlab.io/plugins/relations/
>>
>> if it only needs to go person -> artwork the easiest way is to use a list 
>> field in the persons tiddler that lists each artwork associated with them.
>>
>> So in the tiddler for Person A you create a field called list
>> In the field you put in the title for each artwork to associate with the 
>> person, it would look something like this:
>>
>> [[La Joconde]] Sphinx [[Elvis on Black Velvet]]
>>
>> then to list the artwork associated with a person in the tiddler for that 
>> person you could use
>>
>> <$list filter='[list[]]'>
>>
>>
>> 
>>
>>
>> or to list the artwork associated with Person A in any tid

[tw5] Re: How To: altering TiddlyWiki appearance based on context (URL parameters at StartUp, and via radio buttons after StartUp)

2020-09-14 Thread Charlie Veniot
Holy guacamole, that is a thing of beauty.

I think I get it.  Seeing a macro and filter in the context of some thing I 
want to do, that kind of practical perspective makes things pretty clear.

Thank-you so much !  I have to figure out how to intertwingle some studying 
time (for all of this) with all of my little projects.

FUN!

On Monday, September 14, 2020 at 8:31:27 AM UTC-3, Felicia Crow wrote:
>
> Hi,
> so actually the answer is probably not going to be much longer it just 
> contains a macro example and an explanation of how it works. The macro 
> itself can live in any tiddler tagged with $:/tags/Macro.
>
> So first here is the actual macro:
> \define RenderContent(id)
> <$vars purpose={{{[has[purpose]get[purpose]]}}} id="$id$">
> <$list filter="[!has[draft.of]field:tiddler-idfield:context]"
> >
> <$transclude tiddler=<> mode="block"/>
> 
> 
> \end
>
> And while it is a more configureable version of my former solution here is 
> a breakdown of how it works
>
>- First the macro sets two variables: Purpose via an inline filter and 
>id which it gets from the macro parameter. For the inline filter all it 
>does is looking for a tiddler with the field purpose and then gets this 
>fields value. This stops the reliance on title, but you will have to 
> ensure 
>that there is always only one purpose field within the wiki.
>- The list filter then looks for a tiddler that is not currently being 
>in editmode - the !has[draft.of] part - and has two fields matching the 
>values from the variables. For one the context field being the same as 
>whatever is currently in purpose and the tiddler-id field being the same 
> as 
>the id passed to the macro.
>- When a tiddler fullfilling these conditions is found it is 
>transcluded at the place the macro was called from.
>
>
> To use the macro here is an example using Contents, but it is the exact 
> same process for Title, Subtitle, every future tiddler having different 
> text depending on context just with a different id.
>
>- In the Contents tiddler you replace your line with the two 
>transclusions with <>.
>- In Contents (Product Reviews) you add two fields. One is called 
>context and has a value of ProductReviews the other is called tiddler-id 
>and gets a value of Contents.
>- In Contents (Urban Off Gridding) the same two fields are added, just 
>that context now has a value of OffGridding.
>
> That's it, nothing changes visually, but if you decide that Contents - 
> Product Reviews is a better title for instance the macro still works as 
> expected.
>
> Since I worked with a local copy of your wiki to ensure that the macro is 
> working as intended with the wiki it is inteded for I attached a json file 
> containing the ten tiddlers - the macro itself plus the changed versions of 
> Contents, Title, Subtitle - that you can just import and everything is set 
> up as I described above should you prefer this route.
>
> Kind Regards,
> Felicia
>
>
> On Monday, 14 September 2020 04:00:09 UTC+2, Felicia Crow wrote:
>>
>> Seeing how I may should eventually remember that sleeping at night is a 
>> thing a short answer for now, but I will return with a longer answer and 
>> possible examples later.
>>
>> The solution was mostly to keep it within the current framework and not 
>> changing too much around. For a more centralised approach to the whole 
>> system tags and or fields will probably get a more prominent role, both for 
>> minimizing code duplication as well as dropping a reliance on titles.
>> For instance the Content and Title tiddler could call the same macro with 
>> their type - content and title respectively in this case - and the macro 
>> filters for a tiddler with two fields: one named tiddler-type matching what 
>> was send to the macro and the other named context matching the context 
>> currently in your purpose field. Since this match is made via the two 
>> fields the title also doesn't matter. This tiddler or more correctly its 
>> title is returned to the tiddler which then transcludes the result.
>>
>> I will write a more concrete example when my brain isn't on standby but 
>> actually working again, but I hope that this may give you some idea already.
>>
>>
>>
>> On Monday, 14 September 2020 02:58:31 UTC+2, Charlie Veniot wrote:
>>>
>>> That looks A-1 to do on one tiddler needing to decide what content to 
>>> show based on context, but how to do that once so that it can be used for a 
>>> plethora of tiddlers that show different content based on context?
>>>
>>> I would not want to put that kind of code on each of my 
>>> multi-context-handling tiddlers.
>>>
>>> For that code to exist generically once, I imagine each 
>>> multi-context-tiddler would need some kind of macro call like:  
>>> <>> Tiddler Name">>
>>>
>>> Aside from not doing that myself (for lack of macro and filter 
>>> knowledge), I didn't want to go there because I often get tripped up 
>>> setti

[tw5] Re: Design Idea: Tiddler title generator

2020-09-14 Thread TW Tones
Further,

The tiddler type, Tags, fields and title of the parent even siblings can 
all be brought into the naming heuristics.

Tones

On Monday, 14 September 2020 14:08:04 UTC+10, TW Tones wrote:
>
> Folks,
>
> Inspired elsewhere, I had this idea, and wonder if some of you are 
> familiar with techniques that may help build a  "Tiddler title generator"
>
>- Has anyone worked out a way to use heuristics from the text in a 
>tiddler, to come up with a *caption or title *that reflects the 
>content?
>- If we could generate suggested unique titles from the content and 
>other values that would be Fab
>- Users could modify the suggestion before committing
>- It would reduce the cognitive load when capturing pieces of data in 
>tiddlers.
>
> For example perhaps the tiddler or its parents has particular tags, 
> keywords or categories perhaps we could some how find larger words in the 
> text and combine them to generate a possible name for a child tiddler?
>
> This could be boosted by allowing the tiddler author to highlight words 
> within the text that are representative of the tiddler and as a result may 
> be of use in a title.
>
>
>- A Popup could provide half a dozen possible titles and you can click 
>one or enter the final title.
>- Some would be simple like "parent tiddler + N", 
>- others could be "child of parent tiddler N" or A
>- Yet smarter ones may suggest "Parent (keywords)"
>- or other heuristically sources values
>
>
> Advanced
>
>- In the title selection dialogue we could also add features to prompt 
>the user to provide relevant tags categories or keywords.
>- In effect supporting the author of a tiddler to make use of standard 
>or existing methods based on what the know about the information at time 
> of 
>creation.
>
>
> 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/8cedc0e7-e9a5-4bb6-af25-3c186f047bceo%40googlegroups.com.


[tw5] Re: one to many relationship

2020-09-14 Thread Jed Carty
The title field of the tiddler must be unique, so while the buyers may have 
a name field that does not need to be unique, it can not be the tiddler 
title. So use the tiddler titles as the unique field because they must be 
unique anyway.

-- 
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/685175bd-6cf5-4f65-b200-0d7cc68cce8eo%40googlegroups.com.


[tw5] Re: [Tiddly Research] Public release

2020-09-14 Thread TW Tones
Kebi,

Generating captions for single node tiddlers is not a viable solution, 
> tiddlers can contain a lot of other formats (images, transclusions, code 
> blocks, etc) othen than text and that would create a lot of mess.
>
 
When it is not text, Not related to a parent or has some key fields, you 
can make use of, such as the type field then the suggested name would be 
simpler

Any way I will pursue this idea in my new topic.

Thanks
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/18a0492d-b4a9-4ead-af1a-39bdfe6dc9dbo%40googlegroups.com.


Re: [tw5] Re: one to many relationship

2020-09-14 Thread Dr Bob Jansen
Felicia 

Thank you for your detailed reply. I will study it in the morning and make sure 
I follow what you are saying.

BobJ

---
Dr Bob Jansen
The Cultural Conversations project 
Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral History
122 Cameron St, Rockdale NSW 2216, Australia 
Ph (Korea): +82 10-4494-0328 
Ph (Australia) +61 414 297 448 
Resume: http://au.linkedin.com/in/bobjan 
Skype: bobjtls 
KakaoTalk: bobjtls 
http://www.cultconv.com 

 In line with the Australian anti-spam legislation, if you wish to receive no 
further email from me, please send me an email with the subject "No Spam"

> On 14 Sep 2020, at 22:39, Felicia Crow  wrote:
> 
> Hi,
> so to extend Jed's solution I assume three things: Each tiddler for a person 
> has a buyer-id field, each tiddler for an artwork has an artwork-id field and 
> each person tiddler has an bought-artwork field that contains a space 
> separated list of artwork-ids. If the artwork ids don't contain spaces 
> themselves it is enough to just write the id otherwise you have to wrap the 
> id in double square brackets like a link. Basically looking like what Jed had 
> in his answer for the artwork names, but with your ids instead.
> 
> To show what artworks a person has bought you would use this triple list - 
> probably preferably in a macro with the buyer-id being a macro parameter - to 
> set the buyer-id, get the list of bought artwork and list out the artwork 
> titles:
> <$list filter="[!has[draft.of]field:buyer-id[specific_id_here]]">
> <$list filter="[list[!!bought-artwork]sort[title]]" variable="artwork-id">
> <$list filter="[!has[draft.of]field:artwork-id]">
> <>
> 
> 
> 
> 
> The outer most list just sets the currentTiddler to that of the person having 
> this specific id as the list operator only works with either fixed references 
> or the currentTiddler.
> The next list takes the content of the bought-artwork field and turns it into 
> an actual list of (pseudo) tiddlers. While the field passed to sort is title 
> due to how things work, it actually essentially sorts by id. Setting the 
> result to a variable in this step isn't essential, but may helps to make the 
> readabilty of the next filter better.
> The inner most list finally takes each id one after the other and looks for a 
> tiddler that has a field artwork-id with the same value as the artwork-id it 
> currently processes. If it finds such a tiddler it displays it.
> 
> In the other direction you would have this far smaller one list - once again 
> could be put in a macro, just this time with the art-id being a parameter:
> <$list 
> filter="[!has[draft.of]has[buyer-id]contains:bought-artwork[specific_id_here]]">
> <>
> 
> 
> The filter here gets every tiddler that has a field buyer-id and then looks 
> up for every one of them if the bought-artwork field contains the artwork-id.
> 
> Hope this helps!
> 
> Kind Regards,
> Felicia
> 
> 
>> On Monday, 14 September 2020 13:32:07 UTC+2, Bob Jansen wrote:
>> Jed
>> 
>> Thanks for your email 
>> 
>> I can’t use titles as they can not be guaranteed to be unique. That’s why 
>> every tiddler has a unique id.
>> 
>> I was thinking about a filed in the name riddler with the ids of the 
>> artworks but then how to display the titles?
>> 
>> Bobj
>> 
>> Dr. Bob Jansen
>> 122 Cameron St, Rockdale NSW 2216, Australia
>> Ph: +61 414 297 448
>> Skype: bobjtls
>> 
>> 
>>> On 14 Sep 2020, at 21:15, Jed Carty  wrote:
>>> 
>>> Do these relations need to be bi-directional? That makes things difficult 
>>> enough that I made a plugin for it 
>>> https://ooktech-tw.gitlab.io/plugins/relations/
>>> 
>>> if it only needs to go person -> artwork the easiest way is to use a list 
>>> field in the persons tiddler that lists each artwork associated with them.
>>> 
>>> So in the tiddler for Person A you create a field called list
>>> In the field you put in the title for each artwork to associate with the 
>>> person, it would look something like this:
>>> 
>>> [[La Joconde]] Sphinx [[Elvis on Black Velvet]]
>>> 
>>> then to list the artwork associated with a person in the tiddler for that 
>>> person you could use
>>> 
>>> <$list filter='[list[]]'>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> or to list the artwork associated with Person A in any tiddler you would use
>>> 
>>> <$list filter='[list[Person A]]'>
>>> 
>>> 
>>> 
>>> 
>>> there are other methods, using a data tiddler could also be a good choice 
>>> but that may require more work to set up.
>>> -- 
>>> 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/6I60ywWH5Fo/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> tiddl...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/94bf5445-6dfe-447b-864c-ac220aab8437o%40googlegroups.com.
> 
> -

Re: [tw5] Re: one to many relationship

2020-09-14 Thread Felicia Crow
Hi,
so to extend Jed's solution I assume three things: Each tiddler for a 
person has a buyer-id field, each tiddler for an artwork has an artwork-id 
field and each person tiddler has an bought-artwork field that contains a 
space separated list of artwork-ids. If the artwork ids don't contain 
spaces themselves it is enough to just write the id otherwise you have to 
wrap the id in double square brackets like a link. Basically looking like 
what Jed had in his answer for the artwork names, but with your ids instead.

To show what artworks a person has bought you would use this triple list - 
probably preferably in a macro with the buyer-id being a macro parameter - 
to set the buyer-id, get the list of bought artwork and list out the 
artwork titles:
<$list filter="[!has[draft.of]field:buyer-id[specific_id_here]]">
<$list filter="[list[!!bought-artwork]sort[title]]" variable="artwork-id">
<$list filter="[!has[draft.of]field:artwork-id]">
<>




The outer most list just sets the currentTiddler to that of the person 
having this specific id as the list operator only works with either fixed 
references or the currentTiddler.
The next list takes the content of the bought-artwork field and turns it 
into an actual list of (pseudo) tiddlers. While the field passed to sort is 
title due to how things work, it actually essentially sorts by id. Setting 
the result to a variable in this step isn't essential, but may helps to 
make the readabilty of the next filter better.
The inner most list finally takes each id one after the other and looks for 
a tiddler that has a field artwork-id with the same value as the artwork-id 
it currently processes. If it finds such a tiddler it displays it.

In the other direction you would have this far smaller one list - once 
again could be put in a macro, just this time with the art-id being a 
parameter:
<$list filter="[!has[draft.of]
has[buyer-id]contains:bought-artwork[specific_id_here]]">
<>


The filter here gets every tiddler that has a field buyer-id and then looks 
up for every one of them if the bought-artwork field contains the 
artwork-id.

Hope this helps!

Kind Regards,
Felicia


On Monday, 14 September 2020 13:32:07 UTC+2, Bob Jansen wrote:
>
> Jed
>
> Thanks for your email 
>
> I can’t use titles as they can not be guaranteed to be unique. That’s why 
> every tiddler has a unique id.
>
> I was thinking about a filed in the name riddler with the ids of the 
> artworks but then how to display the titles?
>
> Bobj
>
> Dr. Bob Jansen
> 122 Cameron St, Rockdale NSW 2216, Australia
> Ph: +61 414 297 448
> Skype: bobjtls
>
>
> On 14 Sep 2020, at 21:15, Jed Carty > 
> wrote:
>
> Do these relations need to be bi-directional? That makes things difficult 
> enough that I made a plugin for it 
> https://ooktech-tw.gitlab.io/plugins/relations/
>
> if it only needs to go person -> artwork the easiest way is to use a list 
> field in the persons tiddler that lists each artwork associated with them.
>
> So in the tiddler for Person A you create a field called list
> In the field you put in the title for each artwork to associate with the 
> person, it would look something like this:
>
> [[La Joconde]] Sphinx [[Elvis on Black Velvet]]
>
> then to list the artwork associated with a person in the tiddler for that 
> person you could use
>
> <$list filter='[list[]]'>
>
>
> 
>
>
> or to list the artwork associated with Person A in any tiddler you would 
> use
>
> <$list filter='[list[Person A]]'>
>
>
> 
>
> there are other methods, using a data tiddler could also be a good choice 
> but that may require more work to set up.
>
> -- 
> 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/6I60ywWH5Fo/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> tiddl...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/94bf5445-6dfe-447b-864c-ac220aab8437o%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/2da4b35d-c3ed-478d-8149-1fa7960d7bf6o%40googlegroups.com.


Re: [tw5] Re: TiddlyWiki toolmap submissions

2020-09-14 Thread David Gifford
Hi TW Tones

I try to qualify entries in the description, but ultimately people like
experimenting hands on with the different plugins to see what best suits
them. If you send me a link to the datepicker you mentioned, I will add it
and describe it however you want so it stands out.

Blessings, Dave


On Sun, Sep 13, 2020 at 6:02 PM TW Tones  wrote:

> David,
>
> I do not want to saturate the tools list
>
>- but I discovered a simple way to provide a date picker that returns
>the Tiddlywiki serial number.
>- Perhaps we need to Qualify some of the items on the tools links so
>they can be differentiated.
>
> Regards
> Tones
>
> On Sunday, 13 September 2020 22:08:58 UTC+10, David Gifford wrote:
>>
>> I added both versions on one line of the toolmap, here:
>> https://dynalist.io/d/zUP-nIWu2FFoXH-oM7L7d9DM#z=KD7kUsUIFmx3Us0teMLUILMI
>>
>> Thanks for catching this! Happy to add overlooked items as people point
>> them out to me.
>>
>> On Sunday, September 13, 2020 at 6:25:16 AM UTC-5 strikke...@gmail.com
>> wrote:
>>
>>>  Tobias Beer mentions GSD5 and the datepicker, but the GSD5 wiki and the
>>> datepicker was created by Roma Hicks as far as I remember.
>>> Link for the wiki with the datepicker http://gsd5.tiddlyspot.com/
>>> A later version of the wiki can be found here:
>>> https://gitlab.com/gsd5-tiddlywiki
>>>
>>> Birthe
>>>
>> --
> 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/-uH3JhUTKwg/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/b4b64831-abdc-4f10-be61-b9cf40789681o%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%3DBFLsU%3DB8QgxyP7sTHW-9fpFknA2FTZhJBc1xAvzE8bzG8Q%40mail.gmail.com.


[tw5] Re: [Tiddly Research] Public release

2020-09-14 Thread kebi
Thanks Tony for your suggestions.

Did you know if you give those tiddlers "caption"s, they will display the 
> caption not the convoluted number?
>
 
I think that generating captions for single node tiddlers is not a viable 
solution, tiddlers can contain a lot of other formats (images, 
transclusions, code blocks, ecc) othen than text and that would create a 
lot of mess.
I also think that having an ID of the same lenght for every node reference 
makes the experience simplier and cleaner.

- kebi

-- 
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/3a0855c6-3a63-4424-9534-e71a4878a641o%40googlegroups.com.


Re: [tw5] Re: one to many relationship

2020-09-14 Thread Bob Jansen
Jed

Thanks for your email 

I can’t use titles as they can not be guaranteed to be unique. That’s why every 
tiddler has a unique id.

I was thinking about a filed in the name riddler with the ids of the artworks 
but then how to display the titles?

Bobj

Dr. Bob Jansen
122 Cameron St, Rockdale NSW 2216, Australia
Ph: +61 414 297 448
Skype: bobjtls


> On 14 Sep 2020, at 21:15, Jed Carty  wrote:
> 
> Do these relations need to be bi-directional? That makes things difficult 
> enough that I made a plugin for it 
> https://ooktech-tw.gitlab.io/plugins/relations/
> 
> if it only needs to go person -> artwork the easiest way is to use a list 
> field in the persons tiddler that lists each artwork associated with them.
> 
> So in the tiddler for Person A you create a field called list
> In the field you put in the title for each artwork to associate with the 
> person, it would look something like this:
> 
> [[La Joconde]] Sphinx [[Elvis on Black Velvet]]
> 
> then to list the artwork associated with a person in the tiddler for that 
> person you could use
> 
> <$list filter='[list[]]'>
> 
> 
> 
> 
> 
> or to list the artwork associated with Person A in any tiddler you would use
> 
> <$list filter='[list[Person A]]'>
> 
> 
> 
> 
> there are other methods, using a data tiddler could also be a good choice but 
> that may require more work to set up.
> -- 
> 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/6I60ywWH5Fo/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/94bf5445-6dfe-447b-864c-ac220aab8437o%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/B6E80E38-89A2-4A08-A7A6-C37150BEA2B0%40gmail.com.


[tw5] Re: How To: altering TiddlyWiki appearance based on context (URL parameters at StartUp, and via radio buttons after StartUp)

2020-09-14 Thread Felicia Crow
Hi,
so actually the answer is probably not going to be much longer it just 
contains a macro example and an explanation of how it works. The macro 
itself can live in any tiddler tagged with $:/tags/Macro.

So first here is the actual macro:
\define RenderContent(id)
<$vars purpose={{{[has[purpose]get[purpose]]}}} id="$id$">
<$list filter="[!has[draft.of]field:tiddler-idfield:context]">
<$transclude tiddler=<> mode="block"/>


\end

And while it is a more configureable version of my former solution here is 
a breakdown of how it works

   - First the macro sets two variables: Purpose via an inline filter and 
   id which it gets from the macro parameter. For the inline filter all it 
   does is looking for a tiddler with the field purpose and then gets this 
   fields value. This stops the reliance on title, but you will have to ensure 
   that there is always only one purpose field within the wiki.
   - The list filter then looks for a tiddler that is not currently being 
   in editmode - the !has[draft.of] part - and has two fields matching the 
   values from the variables. For one the context field being the same as 
   whatever is currently in purpose and the tiddler-id field being the same as 
   the id passed to the macro.
   - When a tiddler fullfilling these conditions is found it is transcluded 
   at the place the macro was called from.


To use the macro here is an example using Contents, but it is the exact 
same process for Title, Subtitle, every future tiddler having different 
text depending on context just with a different id.

   - In the Contents tiddler you replace your line with the two 
   transclusions with <>.
   - In Contents (Product Reviews) you add two fields. One is called 
   context and has a value of ProductReviews the other is called tiddler-id 
   and gets a value of Contents.
   - In Contents (Urban Off Gridding) the same two fields are added, just 
   that context now has a value of OffGridding.

That's it, nothing changes visually, but if you decide that Contents - 
Product Reviews is a better title for instance the macro still works as 
expected.

Since I worked with a local copy of your wiki to ensure that the macro is 
working as intended with the wiki it is inteded for I attached a json file 
containing the ten tiddlers - the macro itself plus the changed versions of 
Contents, Title, Subtitle - that you can just import and everything is set 
up as I described above should you prefer this route.

Kind Regards,
Felicia


On Monday, 14 September 2020 04:00:09 UTC+2, Felicia Crow wrote:
>
> Seeing how I may should eventually remember that sleeping at night is a 
> thing a short answer for now, but I will return with a longer answer and 
> possible examples later.
>
> The solution was mostly to keep it within the current framework and not 
> changing too much around. For a more centralised approach to the whole 
> system tags and or fields will probably get a more prominent role, both for 
> minimizing code duplication as well as dropping a reliance on titles.
> For instance the Content and Title tiddler could call the same macro with 
> their type - content and title respectively in this case - and the macro 
> filters for a tiddler with two fields: one named tiddler-type matching what 
> was send to the macro and the other named context matching the context 
> currently in your purpose field. Since this match is made via the two 
> fields the title also doesn't matter. This tiddler or more correctly its 
> title is returned to the tiddler which then transcludes the result.
>
> I will write a more concrete example when my brain isn't on standby but 
> actually working again, but I hope that this may give you some idea already.
>
>
>
> On Monday, 14 September 2020 02:58:31 UTC+2, Charlie Veniot wrote:
>>
>> That looks A-1 to do on one tiddler needing to decide what content to 
>> show based on context, but how to do that once so that it can be used for a 
>> plethora of tiddlers that show different content based on context?
>>
>> I would not want to put that kind of code on each of my 
>> multi-context-handling tiddlers.
>>
>> For that code to exist generically once, I imagine each 
>> multi-context-tiddler would need some kind of macro call like:  
>> <> Tiddler Name">>
>>
>> Aside from not doing that myself (for lack of macro and filter 
>> knowledge), I didn't want to go there because I often get tripped up 
>> setting these things up to not get screwed up every time I change tiddler 
>> titles (which I do repeatedly trying to get titles juust right.)
>>
>> Thoughts?  (i.e. how to do that so that both "Contents" tiddler and 
>> "Title" tiddler can call some macro that does what your code does, but 
>> works generically for every tiddler that needs it?)
>>
>> On Sunday, September 13, 2020 at 9:22:13 PM UTC-3, Felicia Crow wrote:
>>>
>>> Charlie,
>>>
>>> so first things first here is my version. This specific code would go 
>>> into Content, but it would look nearl

[tw5] Re: one to many relationship

2020-09-14 Thread Jed Carty
Do these relations need to be bi-directional? That makes things difficult 
enough that I made a plugin for 
it https://ooktech-tw.gitlab.io/plugins/relations/

if it only needs to go person -> artwork the easiest way is to use a list 
field in the persons tiddler that lists each artwork associated with them.

So in the tiddler for Person A you create a field called list
In the field you put in the title for each artwork to associate with the 
person, it would look something like this:

[[La Joconde]] Sphinx [[Elvis on Black Velvet]]

then to list the artwork associated with a person in the tiddler for that 
person you could use

<$list filter='[list[]]'>





or to list the artwork associated with Person A in any tiddler you would use

<$list filter='[list[Person A]]'>




there are other methods, using a data tiddler could also be a good choice 
but that may require more work to set up.

-- 
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/94bf5445-6dfe-447b-864c-ac220aab8437o%40googlegroups.com.


[tw5] Re: New TiddlyTools time feature: "inline EditDate control"

2020-09-14 Thread Hans Wobbe
Eric: 

Thank you very much for this contribution !

The "edit-in-place" feature is very useful for me since it reduces the need 
to use a second "remote" tiddler to easily edit a field.

Cheers,
Hans


On Sunday, September 13, 2020 at 11:14:03 PM UTC-4 Eric Shulman wrote:

> http://tiddlytools.com/timer.html#TiddlyTools%2FTimer%2FEditDate
>
> Introduction
>
> The edit-date macro provides a user interface that combines the features 
> of a text input (<$edit-text> widget) with "edit-in-place" 
> (save/cancel/delete) buttons and a popup monthly calendar. This allows you 
> to enter custom text or select and format a date from the calendar.
>
> Parameters
>
> The macro supports a subset of the parameters allowed by the <$edit-text>
>  widget:
> Parameter Description
> tiddler The tiddler in which to save the input (default=<>
> )
> field The field in which to save the input (default=date)
> format The TiddlyWiki Date Format  used 
> to store a date selected from the calendar (default=/0MM/0DD)
> default text to be used when the target field doesn't exist
> placeholder text to display when the target field is empty 
> (default="select or enter a date")
> size The size of the input field in characters (default=20)
> focus Set to "yes" or "true" to automatically focus the input after 
> creation
> class A CSS class to be assigned to the generated HTML editing element
>
> Notes
>
>
>- Use <> to embed a date input field in 
>tiddler content.
>- Unlike the <$edit-text> widget, the <> macro allows you 
>to input values that are stored in the current tiddler.
>- When the field receives the input focus, a set of "edit-in-place" 
>buttons and a monthly calendar are displayed.
>
>
>- [checkmark] saves changes to the field value. [X] cancels changes to 
>the field value. [trashcan] deletes the field value.
>
>
>- [<<] displays the previous month. [>>] displays the next month.
>
>
>- Click a date to set the edit field contents using the indicated 
> TiddlyWiki 
>Date Format codes .
>- You can override the default date format (/0MM/0DD) by entering 
>a new format directly in the calendar popup.
>- Note: if TiddlyTools/Timer/Calendar 
> is 
>not installed, the calendar popup is not displayed.
>
>
> enjoy,
> -e 
>

-- 
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/341623d6-6ae9-4e35-a078-8aadd005b2f0n%40googlegroups.com.


[tw5] one to many relationship

2020-09-14 Thread Bob Jansen
could someone help me and advise on how to implement a one-to-many 
relationship in TW without the use of tags.

assume person buys many artworks. Each person and each artwork has a unique 
id since you cannot guarantee the uniqueness of titles.

I have been pondering for some days how to do this using either data 
structures, ie. intermediate tiddlers, or $list structures. The problem for 
me is that I do not yet fully understand $list structures, especially how 
to include a variable into the filter. I can get things to work with hard 
coded ids but not using a variable in the filter. And anyway, my method may 
not be optimum. 

All advice appreciated.

bobj

-- 
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/a68190fe-bfcb-4cb1-8bae-c08fb02b6ff8n%40googlegroups.com.