Re: [tw5] Still frustrated

2020-09-27 Thread Bob Jansen
Atro,

you are right, the problems are in writing wikitext. The real problem, as 
far as I can understand it, is that the documentation is incomplete and 
messy AND that there seems to be no consistency in the parsing of wikitext. 
That may be because different people write different widgets, macros, etc, 
but this does not help the naive user like me.

I am a programmer, have been programming for over 40 years. So it is not an 
issue with how to program or its concepts. Like other programming 
languages, there is an expectation of consistency, but  may be this is not 
an attribute of web applications.

Still, we keep trying and getting better...slowely :-)

bobj

On Monday, 28 September 2020 at 14:13:47 UTC+10 Atronoush wrote:

> Bob,
>  Most of your problems come from how to write Tiddlywiki scripts (e.g. 
> wikitext). One the best resource in this regards is
> https://kookma.github.io/TW-Scripts/ from Mohammad
>
> For example what you asked in this post has been addressed in TW-Scripts
> Look at: Syntax Summary 
> 
>
> You are quite right, the documentation in Tiddlywiki.com is nonlinear and 
> confusing for newbies. Perhaps a linear A to Z step by step tutorial is 
> better.
>
> Atro
>
> On Sun, Sep 27, 2020 at 10:22 AM Bob Jansen  wrote:
>
>> I know and am very thankful of the many items of advice I have received 
>> in the past. But I am still frustrated - there must be some core element I 
>> am not understanding.
>>
>> The main issue is how to address items in wikitext, {{ [[ {{{ << <  etc. 
>> I know this all depends on how the item is being used but a simple cheat 
>> sheet with many examples would be really useful. I don't find the 
>> Tiddlywiki documentation easy to follow, bits are all over the place and 
>> none of the examples address my problems I find.
>>
>> For example, why does this not work?
>>
>> <$button>
>> <$action-setfield
>>  $tiddler="$:/TLS/exhibition_id"
>>  $value={{!!exhibition_id}}
>> />
>> 
>> <$list filter="[tag[Mark]]">
>>  <$action-setfield 
>>   $field="exhibition_id" 
>>   $value=<> {{$:/TLS/exhibition_id}}>>
>>  /> 
>> 
>>
>> Link Artworks to Exhibition
>> 
>>
>>
>> The result is the string {{!!exhibition_id}} {{$:/TLS/exhibition_id}} 
>> stored in the exhibition_id field of each artwork selected and not the 
>> transcluded values.
>>
>> TLSconcatenate is a simple macro to concatenate two strings
>>
>> \define TLSconcatenate(head tail) $head$$tail$
>>
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/4cc4b26e-250b-4c7f-8590-fc0ae5dd7db0n%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/f62ee094-6404-450c-8d7b-e13b7f7982e9n%40googlegroups.com.


Re: [tw5] Still frustrated

2020-09-27 Thread Atronoush Parsi
Bob,
 Most of your problems come from how to write Tiddlywiki scripts (e.g.
wikitext). One the best resource in this regards is
https://kookma.github.io/TW-Scripts/ from Mohammad

For example what you asked in this post has been addressed in TW-Scripts
Look at: Syntax Summary


You are quite right, the documentation in Tiddlywiki.com is nonlinear and
confusing for newbies. Perhaps a linear A to Z step by step tutorial is
better.

Atro

On Sun, Sep 27, 2020 at 10:22 AM Bob Jansen  wrote:

> I know and am very thankful of the many items of advice I have received in
> the past. But I am still frustrated - there must be some core element I am
> not understanding.
>
> The main issue is how to address items in wikitext, {{ [[ {{{ << <  etc. I
> know this all depends on how the item is being used but a simple cheat
> sheet with many examples would be really useful. I don't find the
> Tiddlywiki documentation easy to follow, bits are all over the place and
> none of the examples address my problems I find.
>
> For example, why does this not work?
>
> <$button>
> <$action-setfield
>  $tiddler="$:/TLS/exhibition_id"
>  $value={{!!exhibition_id}}
> />
> 
> <$list filter="[tag[Mark]]">
>  <$action-setfield
>   $field="exhibition_id"
>   $value=< {{$:/TLS/exhibition_id}}>>
>  />
> 
>
> Link Artworks to Exhibition
> 
>
>
> The result is the string {{!!exhibition_id}} {{$:/TLS/exhibition_id}}
> stored in the exhibition_id field of each artwork selected and not the
> transcluded values.
>
> TLSconcatenate is a simple macro to concatenate two strings
>
> \define TLSconcatenate(head tail) $head$$tail$
>
> 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/4cc4b26e-250b-4c7f-8590-fc0ae5dd7db0n%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/CAKHVXmomoC7W4vVGGFOQLAzrpEq5XwT3PuZ8sb2qDzsQxEVDSw%40mail.gmail.com.


[tw5] Re: Still frustrated

2020-09-27 Thread TW Tones
Eric,

So true. I owe a lot to you and some regulars, unfortunately many of these 
issues are only addressed when the right question is asked. 

For some time there are just a few questions that people do not even know 
how to ask.

This does high light not just the facts are missing from the doco but a 
place to record these "principal" issues.

Hopefully my attached tiddler and its current version helps. I don't doubt 
it contains information gleaned from you too.

Regards
Tony

On Monday, 28 September 2020 11:43:11 UTC+10, Eric Shulman wrote:
>
> On Sunday, September 27, 2020 at 6:22:53 PM UTC-7, TW Tones wrote:
>>
>> Oh,
>>
>> One big leap in my understanding occurred when I learned this...
>>
>
> *snip* 
>
> Wow... It's been quite a while since I wrote that explanation!   ... and 
> I'm still explaining the same stuff to people who are new to TW.
> Seems to me that it should be rolled into the "official" documentation on 
> TiddlyWiki.com, since it keeps coming up.
>
> -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/f002e7b9-e695-4dab-a02e-65cfbcd86036o%40googlegroups.com.


[tw5] Re: Still frustrated

2020-09-27 Thread Eric Shulman
On Sunday, September 27, 2020 at 6:22:53 PM UTC-7, TW Tones wrote:
>
> Oh,
>
> One big leap in my understanding occurred when I learned this...
>

*snip* 

Wow... It's been quite a while since I wrote that explanation!   ... and 
I'm still explaining the same stuff to people who are new to TW.
Seems to me that it should be rolled into the "official" documentation on 
TiddlyWiki.com, since it keeps coming up.

-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/7c9275da-7484-485f-b1d3-ce6e2dc2412co%40googlegroups.com.


Re: [tw5] Re: Still frustrated

2020-09-27 Thread Dr. Bob Jansen

Thanks Tones

tried addsuffix[ ] and it worked!

bobj

On 28/9/20 11:26 am, TW Tones wrote:

Bob,

My updated cheat sheet is in progress. Attached, Final to be published 
first here https://anthonymuscio.github.io/


to add a space
|
addprefix[]
|

or you can use it in
|
join[]
addsuffix[]
|
and possibly other places

Dont kick yourself.

Tones


On Monday, 28 September 2020 10:11:29 UTC+10, Bob Jansen wrote:

Eric and Tones,

your explanation makes things clearer and the cheat sheet helps.
It just adds to my argument though, the documentation needs to be
updated. For example, searching for concatenation provides the
tiddler on using macros for this but no mention of when using in a
filter. Tones, I think your cheat sheet should be included in the
Tiddlywiki wiki documentation right up front to make things
clearer for naive users like me.

One more thing, is there a way to append a space character in the
filter? I've tried
<$action-setfield
          $field="exhibition_id"
          $value={{{ [{!!exhibition_id}addsuffix{"
"}addsuffix{$:/TLS/exhibition_id}] }}}

Also tried

<$list filter="[tag[Mark]]">
     <$set name="spaceChar" value=" ">
     <$action-setfield
          $field="exhibition_id"
          $value={{{
[{!!exhibition_id}addsuffix{}addsuffix{$:/TLS/exhibition_id}]
}}}
     />


but the space character does not seem to be added to the field. I
need a space character between each id value.

bobj

On Monday, 28 September 2020 at 08:49:11 UTC+10 TW Tones wrote:

Bob,

There is an older resource on this here
http://pv5.tiddlyspot.com  however
I will update my own abridged version and share a cheat sheet
today.

Regards
Tony

On Sunday, 27 September 2020 16:52:29 UTC+10, Bob Jansen wrote:

I know and am very thankful of the many items of advice I
have received in the past. But I am still frustrated -
there must be some core element I am not understanding.

The main issue is how to address items in wikitext, {{ [[
{{{ << <  etc. I know this all depends on how the item is
being used but a simple cheat sheet with many examples
would be really useful. I don't find the Tiddlywiki
documentation easy to follow, bits are all over the place
and none of the examples address my problems I find.

For example, why does this not work?

<$button>
<$action-setfield
     $tiddler="$:/TLS/exhibition_id"
     $value={{!!exhibition_id}}
/>

<$list filter="[tag[Mark]]">
     <$action-setfield
          $field="exhibition_id"
          $value=<>
     />


Link Artworks to Exhibition



The result is the string {{!!exhibition_id}}
{{$:/TLS/exhibition_id}} stored in the exhibition_id field
of each artwork selected and not the transcluded values.

TLSconcatenate is a simple macro to concatenate two strings

\define TLSconcatenate(head tail) $head$$tail$

bobj

--
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/jQpUdgQQQWc/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/11241312-f1b5-499e-828e-b8a1d7f1a7ebo%40googlegroups.com 
.


--

Dr Bob Jansen
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://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"

--
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/d1829109-7878-588a-e77b-2ecab039075f%40gmail.com.


[tw5] Re: Still frustrated

2020-09-27 Thread TW Tones
Sorry attached DRAFT cheat sheet

Tones


On Monday, 28 September 2020 11:26:32 UTC+10, TW Tones wrote:
>
> Bob,
>
> My updated cheat sheet is in progress. Attached, Final to be published 
> first here https://anthonymuscio.github.io/
>
> to add a space
> addprefix[ ]
>
> or you can use it in 
> join[ ]
> addsuffix[ ]
> and possibly other places
>
> Dont kick yourself.
>
> Tones
>
>
> On Monday, 28 September 2020 10:11:29 UTC+10, Bob Jansen wrote:
>>
>> Eric and Tones,
>>
>> your explanation makes things clearer and the cheat sheet helps. It just 
>> adds to my argument though, the documentation needs to be updated. For 
>> example, searching for concatenation provides the tiddler on using macros 
>> for this but no mention of when using in a filter. Tones, I think your 
>> cheat sheet should be included in the Tiddlywiki wiki documentation right 
>> up front to make things clearer for naive users like me.
>>
>> One more thing, is there a way to append a space character in the filter? 
>> I've tried
>> <$action-setfield 
>>   $field="exhibition_id" 
>>   $value={{{ [{!!exhibition_id}addsuffix{" 
>> "}addsuffix{$:/TLS/exhibition_id}] }}}
>>
>> Also tried
>>
>> <$list filter="[tag[Mark]]">
>>  <$set name="spaceChar" value=" "> 
>>  <$action-setfield 
>>   $field="exhibition_id" 
>>   $value={{{ 
>> [{!!exhibition_id}addsuffix{}addsuffix{$:/TLS/exhibition_id}] }}}
>>  />
>> 
>>
>> but the space character does not seem to be added to the field. I need a 
>> space character between each id value.
>>
>> bobj
>>
>> On Monday, 28 September 2020 at 08:49:11 UTC+10 TW Tones wrote:
>>
>>> Bob,
>>>
>>> There is an older resource on this here http://pv5.tiddlyspot.com however 
>>> I will update my own abridged version and share a cheat sheet today.
>>>
>>> Regards
>>> Tony
>>>
>>> On Sunday, 27 September 2020 16:52:29 UTC+10, Bob Jansen wrote:

 I know and am very thankful of the many items of advice I have received 
 in the past. But I am still frustrated - there must be some core element I 
 am not understanding.

 The main issue is how to address items in wikitext, {{ [[ {{{ << < 
  etc. I know this all depends on how the item is being used but a simple 
 cheat sheet with many examples would be really useful. I don't find the 
 Tiddlywiki documentation easy to follow, bits are all over the place and 
 none of the examples address my problems I find.

 For example, why does this not work?

 <$button>
 <$action-setfield
  $tiddler="$:/TLS/exhibition_id"
  $value={{!!exhibition_id}}
 />
 
 <$list filter="[tag[Mark]]">
  <$action-setfield 
   $field="exhibition_id" 
   $value=<>>> {{$:/TLS/exhibition_id}}>>
  /> 
 

 Link Artworks to Exhibition
 


 The result is the string {{!!exhibition_id}} {{$:/TLS/exhibition_id}} 
 stored in the exhibition_id field of each artwork selected and not the 
 transcluded values.

 TLSconcatenate is a simple macro to concatenate two strings

 \define TLSconcatenate(head tail) $head$$tail$

 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/b08440bc-770c-4e01-b26a-7789748831c6o%40googlegroups.com.


Standard Nomenclature.json
Description: application/json


[tw5] Re: Still frustrated

2020-09-27 Thread TW Tones
Bob,

My updated cheat sheet is in progress. Attached, Final to be published 
first here https://anthonymuscio.github.io/

to add a space
addprefix[ ]

or you can use it in 
join[ ]
addsuffix[ ]
and possibly other places

Dont kick yourself.

Tones


On Monday, 28 September 2020 10:11:29 UTC+10, Bob Jansen wrote:
>
> Eric and Tones,
>
> your explanation makes things clearer and the cheat sheet helps. It just 
> adds to my argument though, the documentation needs to be updated. For 
> example, searching for concatenation provides the tiddler on using macros 
> for this but no mention of when using in a filter. Tones, I think your 
> cheat sheet should be included in the Tiddlywiki wiki documentation right 
> up front to make things clearer for naive users like me.
>
> One more thing, is there a way to append a space character in the filter? 
> I've tried
> <$action-setfield 
>   $field="exhibition_id" 
>   $value={{{ [{!!exhibition_id}addsuffix{" 
> "}addsuffix{$:/TLS/exhibition_id}] }}}
>
> Also tried
>
> <$list filter="[tag[Mark]]">
>  <$set name="spaceChar" value=" "> 
>  <$action-setfield 
>   $field="exhibition_id" 
>   $value={{{ 
> [{!!exhibition_id}addsuffix{}addsuffix{$:/TLS/exhibition_id}] }}}
>  />
> 
>
> but the space character does not seem to be added to the field. I need a 
> space character between each id value.
>
> bobj
>
> On Monday, 28 September 2020 at 08:49:11 UTC+10 TW Tones wrote:
>
>> Bob,
>>
>> There is an older resource on this here http://pv5.tiddlyspot.com however 
>> I will update my own abridged version and share a cheat sheet today.
>>
>> Regards
>> Tony
>>
>> On Sunday, 27 September 2020 16:52:29 UTC+10, Bob Jansen wrote:
>>>
>>> I know and am very thankful of the many items of advice I have received 
>>> in the past. But I am still frustrated - there must be some core element I 
>>> am not understanding.
>>>
>>> The main issue is how to address items in wikitext, {{ [[ {{{ << <  etc. 
>>> I know this all depends on how the item is being used but a simple cheat 
>>> sheet with many examples would be really useful. I don't find the 
>>> Tiddlywiki documentation easy to follow, bits are all over the place and 
>>> none of the examples address my problems I find.
>>>
>>> For example, why does this not work?
>>>
>>> <$button>
>>> <$action-setfield
>>>  $tiddler="$:/TLS/exhibition_id"
>>>  $value={{!!exhibition_id}}
>>> />
>>> 
>>> <$list filter="[tag[Mark]]">
>>>  <$action-setfield 
>>>   $field="exhibition_id" 
>>>   $value=<>> {{$:/TLS/exhibition_id}}>>
>>>  /> 
>>> 
>>>
>>> Link Artworks to Exhibition
>>> 
>>>
>>>
>>> The result is the string {{!!exhibition_id}} {{$:/TLS/exhibition_id}} 
>>> stored in the exhibition_id field of each artwork selected and not the 
>>> transcluded values.
>>>
>>> TLSconcatenate is a simple macro to concatenate two strings
>>>
>>> \define TLSconcatenate(head tail) $head$$tail$
>>>
>>> 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/11241312-f1b5-499e-828e-b8a1d7f1a7ebo%40googlegroups.com.


[tw5] Re: Still frustrated

2020-09-27 Thread TW Tones
Oh,

One big leap in my understanding occurred when I learned this

*However, within TiddlyWiki *filters*, there is no need doubling the brackets*, 
as HTML is not allowed *within* the filter, so only single  is 
used.

...and why I don't have to wrap  with [] before giving it 
to split? 

Think of the brackets in filters as part of the operand itself rather than a 
"container" for the operand.  The type of bracket indicates the type of operand 
being used:
   use [...] for literal values, e.g., [texthere] 
   use {...} for field references, e.g., {!!fieldname}
   use <...> for variables e.g. 

Thus, to split the literal text, "sometext", you could write:
   [title[sometext]splitbefore[t]removesuffix[t]]
you would get "some" as a result.

If the value "sometext" is stored in a field named "somefield" in the current 
tiddler, you could write:
  [{!!somefield}splitbefore[t]removesuffix[t]]

and, if the value "sometext" is stored in a variable named "somevariable", you 
could write:
  [splitbefore[t]removesuffix[t]]

As a slightly more complex example, suppose the value to split on was also 
stored in a variable.  Then you could write:
  [splitbeforeremovesuffix]


Regards

Tony


On Monday, 28 September 2020 08:49:11 UTC+10, TW Tones wrote:
>
> Bob,
>
> There is an older resource on this here http://pv5.tiddlyspot.com however 
> I will update my own abridged version and share a cheat sheet today.
>
> Regards
> Tony
>
> On Sunday, 27 September 2020 16:52:29 UTC+10, Bob Jansen wrote:
>>
>> I know and am very thankful of the many items of advice I have received 
>> in the past. But I am still frustrated - there must be some core element I 
>> am not understanding.
>>
>> The main issue is how to address items in wikitext, {{ [[ {{{ << <  etc. 
>> I know this all depends on how the item is being used but a simple cheat 
>> sheet with many examples would be really useful. I don't find the 
>> Tiddlywiki documentation easy to follow, bits are all over the place and 
>> none of the examples address my problems I find.
>>
>> For example, why does this not work?
>>
>> <$button>
>> <$action-setfield
>>  $tiddler="$:/TLS/exhibition_id"
>>  $value={{!!exhibition_id}}
>> />
>> 
>> <$list filter="[tag[Mark]]">
>>  <$action-setfield 
>>   $field="exhibition_id" 
>>   $value=<> {{$:/TLS/exhibition_id}}>>
>>  /> 
>> 
>>
>> Link Artworks to Exhibition
>> 
>>
>>
>> The result is the string {{!!exhibition_id}} {{$:/TLS/exhibition_id}} 
>> stored in the exhibition_id field of each artwork selected and not the 
>> transcluded values.
>>
>> TLSconcatenate is a simple macro to concatenate two strings
>>
>> \define TLSconcatenate(head tail) $head$$tail$
>>
>> 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/68868f04-4b32-4f1f-902c-ccd48fd3e582o%40googlegroups.com.


[tw5] Re: ViewTemplate Filter?

2020-09-27 Thread amreus
Yep that got it - sometimes it helps just asking the question.


On Sunday, September 27, 2020 at 8:35:50 PM UTC-4 amreus wrote:

> Hmm, I think the button may need to store the name of the current tiddler 
> somewhere to use in the view template filter. I'll try that tomorrow. 
>
>
> On Sunday, September 27, 2020 at 8:23:13 PM UTC-4 amreus wrote:
>
>> Good evening,
>>
>> I made a preview button for the view toolbar. It works but... it shows a 
>> preview for all tiddlers in the story.  Can make it preview only the text 
>> of the tiddler on which the button is clicked?
>>
>>
>> http://amreus.tiddlyspot.com/#preview-button:preview-button%20preview-viewtemplate
>>
>> 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/efa1e273-577d-410c-9448-54a5fdf8d975n%40googlegroups.com.


[tw5] Re: ViewTemplate Filter?

2020-09-27 Thread amreus
Hmm, I think the button may need to store the name of the current tiddler 
somewhere to use in the view template filter. I'll try that tomorrow. 


On Sunday, September 27, 2020 at 8:23:13 PM UTC-4 amreus wrote:

> Good evening,
>
> I made a preview button for the view toolbar. It works but... it shows a 
> preview for all tiddlers in the story.  Can make it preview only the text 
> of the tiddler on which the button is clicked?
>
>
> http://amreus.tiddlyspot.com/#preview-button:preview-button%20preview-viewtemplate
>
> 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/7c60d4fa-383b-46eb-a16d-aaff09d1b2b3n%40googlegroups.com.


[tw5] ViewTemplate Filter?

2020-09-27 Thread amreus
Good evening,

I made a preview button for the view toolbar. It works but... it shows a 
preview for all tiddlers in the story.  Can make it preview only the text 
of the tiddler on which the button is clicked?

http://amreus.tiddlyspot.com/#preview-button:preview-button%20preview-viewtemplate

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/3049cfd1-1d89-4d59-9fbd-f8789c73b99an%40googlegroups.com.


[tw5] Re: Still frustrated

2020-09-27 Thread Bob Jansen
Eric and Tones,

your explanation makes things clearer and the cheat sheet helps. It just 
adds to my argument though, the documentation needs to be updated. For 
example, searching for concatenation provides the tiddler on using macros 
for this but no mention of when using in a filter. Tones, I think your 
cheat sheet should be included in the Tiddlywiki wiki documentation right 
up front to make things clearer for naive users like me.

One more thing, is there a way to append a space character in the filter? 
I've tried
<$action-setfield 
  $field="exhibition_id" 
  $value={{{ [{!!exhibition_id}addsuffix{" 
"}addsuffix{$:/TLS/exhibition_id}] }}}

Also tried

<$list filter="[tag[Mark]]">
 <$set name="spaceChar" value=" "> 
 <$action-setfield 
  $field="exhibition_id" 
  $value={{{ 
[{!!exhibition_id}addsuffix{}addsuffix{$:/TLS/exhibition_id}] }}}
 />


but the space character does not seem to be added to the field. I need a 
space character between each id value.

bobj

On Monday, 28 September 2020 at 08:49:11 UTC+10 TW Tones wrote:

> Bob,
>
> There is an older resource on this here http://pv5.tiddlyspot.com however 
> I will update my own abridged version and share a cheat sheet today.
>
> Regards
> Tony
>
> On Sunday, 27 September 2020 16:52:29 UTC+10, Bob Jansen wrote:
>>
>> I know and am very thankful of the many items of advice I have received 
>> in the past. But I am still frustrated - there must be some core element I 
>> am not understanding.
>>
>> The main issue is how to address items in wikitext, {{ [[ {{{ << <  etc. 
>> I know this all depends on how the item is being used but a simple cheat 
>> sheet with many examples would be really useful. I don't find the 
>> Tiddlywiki documentation easy to follow, bits are all over the place and 
>> none of the examples address my problems I find.
>>
>> For example, why does this not work?
>>
>> <$button>
>> <$action-setfield
>>  $tiddler="$:/TLS/exhibition_id"
>>  $value={{!!exhibition_id}}
>> />
>> 
>> <$list filter="[tag[Mark]]">
>>  <$action-setfield 
>>   $field="exhibition_id" 
>>   $value=<> {{$:/TLS/exhibition_id}}>>
>>  /> 
>> 
>>
>> Link Artworks to Exhibition
>> 
>>
>>
>> The result is the string {{!!exhibition_id}} {{$:/TLS/exhibition_id}} 
>> stored in the exhibition_id field of each artwork selected and not the 
>> transcluded values.
>>
>> TLSconcatenate is a simple macro to concatenate two strings
>>
>> \define TLSconcatenate(head tail) $head$$tail$
>>
>> 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/c72577cf-2ca7-42ac-a8b6-69713a971606n%40googlegroups.com.


[tw5] Re: Generic Tags Fields: State Of Play

2020-09-27 Thread Cade Roux
I see what you are saying, but I thought it was starting with a default 
[all[]] operator.  I even tried putting an explicit [all[]] operator on the 
front.

Thanks,

Cade

On Saturday, September 26, 2020 at 11:37:23 AM UTC-5 compa...@gmail.com 
wrote:

> Hi Cade,
>
> you are understanding the mathematical "idea" of intersection correct BUT 
> you are telling TW to throw away everyting that your first run outputted 
> when you are using filter-operators that throw away the input (stated as 
> "input ignored" in the filter operator) in subsequent runs, as *[A]* and 
> *[C]* do. See also: https://tiddlywiki.com/#title%20Operator.
>
> What you actually get is everything that lists *C* in your first <$list> 
> and *A* in your second.
>
> Regards,
> Mirko
>
> Am Samstag, 26. September 2020 17:56:02 UTC+2 schrieb Cade Roux:
>>
>> Thanks, I have started using a field and I am struggling with list 
>> intersections, i.e. lists of items that are tagged both A and C:
>>
>> I thought these would be the intersection and should be equivalent:
>>
>> <$list filter="[[A]listed[my.field]] +[[C]listed[my.field]]" />
>> <$list filter="[[C]listed[my.field]] +[[A]listed[my.field]]" />
>>
>> But not only are they not equivalent, they are not correct lists:
>>
>> [image: Screenshot 2020-09-26 105510.png]
>>
>> What am I not understanding correctly about the filter intersections?
>>
>> Thanks,
>>
>> Cade
>>
>> On Saturday, September 26, 2020 at 1:03:00 AM UTC-5 TW Tones wrote:
>>
>>> Cade,
>>>
>>> As far as I know Gentags is the state of the art for a plugin giving you 
>>> alternative tag fields. 
>>>
>>> Just keep in mind tags are a solution built into the core. 
>>>
>>>- I for one avoid them to keep them free for ad hoc tagging. 
>>>- Instead I tend to use my own fields and list fields that in many 
>>>ways work not unlike tags if you want them to.
>>>   - See listops and other operators and widgets.
>>>- Avoid the use of prefixes on titles, including tag names where 
>>>practical otherwise you will find you need to parse the title to extract 
>>>info.
>>>
>>>
>>> For a small or for purpose wiki do what you want with the tags and 
>>> prefixed titles, its only when you transfer tiddlers or grow wikis it may 
>>> become a problem.
>>>
>>> Regards
>>> Tony
>>>
>>> On Saturday, 26 September 2020 04:48:59 UTC+10, Cade Roux wrote:

 I find myself looking to use this concept in my data mart data 
 dictionary/user manual, as I want to have three types of tags for one set 
 of generated tiddlers and three types of tags for another set of generated 
 tiddlers and putting a prefix on each set and throwing them into tags 
 field 
 is kind of unwieldy and the filters will be really awkward.

 Is https://ooktech.com/jed/ExampleWikis/GenericTagFields/ this the 
 latest thinking on that or is there another plugin I should be looking at 
 (or something that has made it to core?

 Thanks,

 Cade

>>>

-- 
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/8acaf3e4-dc0d-4c0a-bf1c-56c49d1799c8n%40googlegroups.com.


[tw5] Re: Generic Tags Fields: State Of Play

2020-09-27 Thread Cade Roux
Same issue.  Filtering only on C gives me the A/C, B/C items, then 
seemingly when adding the additional filter through the then operator, 
removes the B/C but ADDs an A/B item which wasn't in the first list.  I'm 
clearly missing something in the syntax, including where the runs are 
defined and the which brackets are used as logical grouping delimiters and 
which are used as parameter containers.

I'm using the comments here regarding using the listed operator to find 
tiddlers based on tags in a field 
https://ooktech.com/jed/ExampleWikis/GenericTagFields/#%24%3A%2Fplugins%2Finmysocks%2FGenericTagFields%2FReadMe

[image: then-operator-test.PNG]

Current testing goal: List of all tiddlers which have all specified "tags" 
in a dedicated field "my.field" - i.e. my.field contains 'A' and my.field 
contains 'B' where A and B are tags (potentially containing spaces, so 
delimited in my.field with []_

Ultimate goal for context: Offer a filterable tiddler index of 
cardiovascular observations with dropdowns for Name, Structure, Context.  
Each page of observations will have three fields: observation.name, 
observation.structure, observation.context.  A page which discusses e.g. 
Regurgitation and Stenosis observations might have 
observation.name="[Regurgitation] [Stenosis]", observation.structure="[Left 
ventricle]", observation.context="[History] [Findings]"

This is very similar to the case 
here: 
http://inmysocks.tiddlyspot.com/#%24%3A%2Fplugins%2Finmysocks%2FBookmarks%2FBookmarks%20by%20Tags
 
except all three dropdowns would be present at all times and the tags would 
be restricted to the relevant field - this is why I broke it up into three 
dedicated fields, to avoid having to prefix different tags which only apply 
to certain dropdowns.

In this case, I would always be looking for my list to be the intersection 
of tiddlers matching all three dropdowns (ignoring any dropdowns set to 
Select All)

Thanks in advance.  I know I am rather slow wrapping my head around the 
filter syntax.

On Saturday, September 26, 2020 at 1:10:02 PM UTC-5 Eric Shulman wrote:

>
> On Saturday, September 26, 2020 at 8:56:02 AM UTC-7, Cade Roux wrote:
>>
>> I thought these would be the intersection and should be equivalent:
>>
>> <$list filter="[[A]listed[my.field]] +[[C]listed[my.field]]" />
>> <$list filter="[[C]listed[my.field]] +[[A]listed[my.field]]" />
>>
>> But not only are they not equivalent, they are not correct lists:
>>
>
> Try this:
> <$list filter="[[A]listed[my.field]then[C]listed[my.field]]" />
> <$list filter="[[C]listed[my.field]then[A]listed[my.field]]" />
>
> "if [A] is listed, then test to see if [C] is listed"
> "if [C] is listed, then test to see if [A] is listed"
>
> -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/6c57c7d2-2c8e-487e-96ac-405fe2493a69n%40googlegroups.com.


[tw5] Re: Still frustrated

2020-09-27 Thread TW Tones
Bob,

There is an older resource on this here http://pv5.tiddlyspot.com however I 
will update my own abridged version and share a cheat sheet today.

Regards
Tony

On Sunday, 27 September 2020 16:52:29 UTC+10, Bob Jansen wrote:
>
> I know and am very thankful of the many items of advice I have received in 
> the past. But I am still frustrated - there must be some core element I am 
> not understanding.
>
> The main issue is how to address items in wikitext, {{ [[ {{{ << <  etc. I 
> know this all depends on how the item is being used but a simple cheat 
> sheet with many examples would be really useful. I don't find the 
> Tiddlywiki documentation easy to follow, bits are all over the place and 
> none of the examples address my problems I find.
>
> For example, why does this not work?
>
> <$button>
> <$action-setfield
>  $tiddler="$:/TLS/exhibition_id"
>  $value={{!!exhibition_id}}
> />
> 
> <$list filter="[tag[Mark]]">
>  <$action-setfield 
>   $field="exhibition_id" 
>   $value=< {{$:/TLS/exhibition_id}}>>
>  /> 
> 
>
> Link Artworks to Exhibition
> 
>
>
> The result is the string {{!!exhibition_id}} {{$:/TLS/exhibition_id}} 
> stored in the exhibition_id field of each artwork selected and not the 
> transcluded values.
>
> TLSconcatenate is a simple macro to concatenate two strings
>
> \define TLSconcatenate(head tail) $head$$tail$
>
> 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/0a87e673-8578-4ec5-b9c5-dc876aed24cfo%40googlegroups.com.


[tw5] Re: How to increaase the size of a button image?

2020-09-27 Thread amreus
By trial-and-error I found setting the font-size will size the svg icons as 
well. Not sure if it's correct but it works.  See link above for a image 
clipboard gallery.


On Sunday, September 27, 2020 at 5:40:41 PM UTC-4 amreus wrote:

> Hello,
>
> I made this image clipper: 
> http://amreus.tiddlyspot.com/#Images%20Gallery%20Clipboard
>
> How can I increase the size of the images?  I assume using a Stylesheet 
> but I don't know the correct classes or rules to use. css is still sort of 
> a mystery to me at this stage.
>
> 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/3f74025b-298a-421e-9471-c995702c6a5an%40googlegroups.com.


[tw5] Re: TW5 Hosing issue; requests broadcasting to multiple clients

2020-09-27 Thread Rob Hoelz
Hi Saq - do you happen to know if this bug is tracked on GitHub already?  I 
think it might be helpful to gather links to forum posts related to it over 
there, as well as to start a discussion there oriented around fixing the 
issue.

-Rob

On Sunday, September 27, 2020 at 3:09:40 PM UTC-5 scarab...@gmail.com wrote:

> Great info! Yes, adding the following to the  $:/config/SyncFilter fixed 
> this issue for me:
> >> -[[$:/StoryList ]]
>
> As an aside, I had to make sure the system saved the StoryList with my 
> desired startup Tiddlys on the screen before quickly making the filter 
> change, because a browser refresh from an anonymous user was first showing 
> the tid that is specified in the "Default tiddlers" section of the 
> ControlPanel but immediately navigating itself to the StoryList stack.
>
> Thanks again!
>
> On Sunday, September 27, 2020 at 4:23:06 AM UTC-7 saq.i...@gmail.com 
> wrote:
>
>> @Sean this is a bug introduced in TW 5.1.22
>>
>> Some details here:
>> https://groups.google.com/forum/#!msg/tiddlywiki/ENyfB5ZxPWs/eXcv-96NAgAJ
>>
>>
>> https://groups.google.com/forum/?oldui=1#!searchin/tiddlywiki/$24$3A$2FStoryList$20syncfilter|sort:date/tiddlywiki/22z0Qse3amw/M_0pXIFaAQAJ
>>
>> The easiest solution for now would be to run 5.1.21
>>
>> On Sunday, September 27, 2020 at 1:03:54 AM UTC+2, Sean Hankins wrote:
>>>
>>> Hi! I'm having an interesting problem with my TW5 installation having to 
>>> do with the use of multiple anonymous users and a single editing user. 
>>> Whether logged in or using anonymously, when a user opens a Tiddly on their 
>>> local web browser, it opens the same one in all other users' instances as 
>>> well. This also happens when logged in as an editing user and editing; an 
>>> anonymous user (read-only) will get an editable Tiddly opened in their 
>>> browser, although any changes aren't saved permanently. 
>>>
>>> I have TW5 on my little Linux server that I'm hosting some other node 
>>> services on. It's configured to run on port 8080, whereas my other services 
>>> occupy port 80. I've poked the appropriate port holes through my router and 
>>> I can access the TW5 from anywhere with my IP (e.g., 
>>> http://xx.xx.xx.xx:8080). While testing I was on a computer on a home 
>>> network 10 miles from the server. I've tested multiple computers on the 
>>> same internal network accessing my remote TW5 server, all experience cross 
>>> client requests. I also tested using my phone on the data network (not on 
>>> the same IP or home network, WiFi off). Opening a Tiddly (or more) on the 
>>> phone will also open on other computers.
>>>
>>> The installation is vanilla with just the following start up parameters:
>>> >> tiddlywiki World --listen port=8080 host=10.0.0.2 
>>> credentials=worldUsers.csv anon-username="Adventurer" "readers=(anon)" 
>>> writers=admin
>>> The creds file (worldUsers.csv):
>>> >>username,password
>>> >>admin,pswrd
>>>
>>>
>>> This issue baffled someone in the TW5 unofficial Discord, and they 
>>> suggested I come here, but I still don't know if this is a configuration 
>>> issue, installation issue, bug or working as designed. My idea is to have 
>>> multiple people use it in a read-only fashion and have only one editing 
>>> user, but if it's going disrupt one user having another user browse, maybe 
>>> it's just not the right tool, which is too bad, because I love this tool.
>>>
>>

-- 
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/8b6ee5df-61af-44c1-8da2-5869941ddbf0n%40googlegroups.com.


[tw5] How to increaase the size of a button image?

2020-09-27 Thread amreus
Hello,

I made this image clipper: 
http://amreus.tiddlyspot.com/#Images%20Gallery%20Clipboard

How can I increase the size of the images?  I assume using a Stylesheet but 
I don't know the correct classes or rules to use. css is still sort of a 
mystery to me at this stage.

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/0d26719e-0c31-4ccd-813a-20e12559958an%40googlegroups.com.


[tw5] Another Python Server

2020-09-27 Thread Nathan Warner
Hi all, 

I wanted to share a new project I've been working on. It is a python server 
for hosting/saving tiddlywiki html files.  I started with the Ruby Server 
one, and the "Easy local saving with Python" thread and kind of expanded 
from there. 

https://github.com/itsamenathan/tiddlysaver-python

Thanks
Nathan

-- 
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/a7b4cf9f-9483-4c52-b711-452a4b7b6d8fn%40googlegroups.com.


[tw5] Re: TW5 Hosing issue; requests broadcasting to multiple clients

2020-09-27 Thread Sean Hankins
Great info! Yes, adding the following to the  $:/config/SyncFilter fixed 
this issue for me:
>> -[[$:/StoryList ]]

As an aside, I had to make sure the system saved the StoryList with my 
desired startup Tiddlys on the screen before quickly making the filter 
change, because a browser refresh from an anonymous user was first showing 
the tid that is specified in the "Default tiddlers" section of the 
ControlPanel but immediately navigating itself to the StoryList stack.

Thanks again!

On Sunday, September 27, 2020 at 4:23:06 AM UTC-7 saq.i...@gmail.com wrote:

> @Sean this is a bug introduced in TW 5.1.22
>
> Some details here:
> https://groups.google.com/forum/#!msg/tiddlywiki/ENyfB5ZxPWs/eXcv-96NAgAJ
>
>
> https://groups.google.com/forum/?oldui=1#!searchin/tiddlywiki/$24$3A$2FStoryList$20syncfilter|sort:date/tiddlywiki/22z0Qse3amw/M_0pXIFaAQAJ
>
> The easiest solution for now would be to run 5.1.21
>
> On Sunday, September 27, 2020 at 1:03:54 AM UTC+2, Sean Hankins wrote:
>>
>> Hi! I'm having an interesting problem with my TW5 installation having to 
>> do with the use of multiple anonymous users and a single editing user. 
>> Whether logged in or using anonymously, when a user opens a Tiddly on their 
>> local web browser, it opens the same one in all other users' instances as 
>> well. This also happens when logged in as an editing user and editing; an 
>> anonymous user (read-only) will get an editable Tiddly opened in their 
>> browser, although any changes aren't saved permanently. 
>>
>> I have TW5 on my little Linux server that I'm hosting some other node 
>> services on. It's configured to run on port 8080, whereas my other services 
>> occupy port 80. I've poked the appropriate port holes through my router and 
>> I can access the TW5 from anywhere with my IP (e.g., 
>> http://xx.xx.xx.xx:8080). While testing I was on a computer on a home 
>> network 10 miles from the server. I've tested multiple computers on the 
>> same internal network accessing my remote TW5 server, all experience cross 
>> client requests. I also tested using my phone on the data network (not on 
>> the same IP or home network, WiFi off). Opening a Tiddly (or more) on the 
>> phone will also open on other computers.
>>
>> The installation is vanilla with just the following start up parameters:
>> >> tiddlywiki World --listen port=8080 host=10.0.0.2 
>> credentials=worldUsers.csv anon-username="Adventurer" "readers=(anon)" 
>> writers=admin
>> The creds file (worldUsers.csv):
>> >>username,password
>> >>admin,pswrd
>>
>>
>> This issue baffled someone in the TW5 unofficial Discord, and they 
>> suggested I come here, but I still don't know if this is a configuration 
>> issue, installation issue, bug or working as designed. My idea is to have 
>> multiple people use it in a read-only fashion and have only one editing 
>> user, but if it's going disrupt one user having another user browse, maybe 
>> it's just not the right tool, which is too bad, because I love this tool.
>>
>

-- 
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/082b49c9-5e01-49b9-8a2d-4f9b0665f086n%40googlegroups.com.


[tw5] TiddlyTools/timer.html Calendar *** new options ***

2020-09-27 Thread Eric Shulman
Hi all,

I've just updated http://TiddlyTools.com/timer.html

The Calendar now has new display options.
You can access these settings in a popup directly from the calendar display 
by clicking on the "gear" button.

* show/hide holidays and events
* show/hide tiddler additions and changes
* show/hide system additions and changes

You can select any combination of these checkboxes to determine which items 
will be shown in the date popups.

The options popup also gives you access to the calendar CSS settings 
(colors and font styles)
by clicking the "pencil" icon in the upper right corner of the popup

Note that the style for tiddler/system changes includes both a background 
color (light blue)
and an underline of the date number.  If changes occur on a date that is 
also a holiday
or event, the background color will be light green, but the underline will 
still be displayed
so it indicates both conditions (holiday AND tiddler changes).

Note also that you can easily change the colors and font styles to suit 
your tastes, just
by entering different CSS syntax, and you can add other styles to the color 
values
just by using ";" to separate the styles.

For example, the CSS for "events" is "lightgreen" but you could add a 
border around
the date by changing it to "lightgreen;border:3px solid red;"

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/f82bd43f-84a9-459e-a5d7-c8d6efb717a1o%40googlegroups.com.


[tw5] Re: Dollar sign ($) in widget attributes?

2020-09-27 Thread amreus
On further inspection, is it the action widgets and the macrocall widget 
which use the $attribute.  The rest do not.  That's easier to remember.


-- 
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/6d309ef2-4274-4190-aedc-3b6d461a9ff7n%40googlegroups.com.


[tw5] Dollar sign ($) in widget attributes?

2020-09-27 Thread amreus

I see some widget's attributes start with a $ and some don't.  Does the $ 
have special meaning?





-- 
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/9e26e082-25f6-468e-b868-a9debf149099n%40googlegroups.com.


[tw5] Re: TW5 Hosing issue; requests broadcasting to multiple clients

2020-09-27 Thread Saq Imtiaz
@Sean this is a bug introduced in TW 5.1.22

Some details here:
https://groups.google.com/forum/#!msg/tiddlywiki/ENyfB5ZxPWs/eXcv-96NAgAJ

https://groups.google.com/forum/?oldui=1#!searchin/tiddlywiki/$24$3A$2FStoryList$20syncfilter|sort:date/tiddlywiki/22z0Qse3amw/M_0pXIFaAQAJ

The easiest solution for now would be to run 5.1.21

On Sunday, September 27, 2020 at 1:03:54 AM UTC+2, Sean Hankins wrote:
>
> Hi! I'm having an interesting problem with my TW5 installation having to 
> do with the use of multiple anonymous users and a single editing user. 
> Whether logged in or using anonymously, when a user opens a Tiddly on their 
> local web browser, it opens the same one in all other users' instances as 
> well. This also happens when logged in as an editing user and editing; an 
> anonymous user (read-only) will get an editable Tiddly opened in their 
> browser, although any changes aren't saved permanently. 
>
> I have TW5 on my little Linux server that I'm hosting some other node 
> services on. It's configured to run on port 8080, whereas my other services 
> occupy port 80. I've poked the appropriate port holes through my router and 
> I can access the TW5 from anywhere with my IP (e.g., 
> http://xx.xx.xx.xx:8080). While testing I was on a computer on a home 
> network 10 miles from the server. I've tested multiple computers on the 
> same internal network accessing my remote TW5 server, all experience cross 
> client requests. I also tested using my phone on the data network (not on 
> the same IP or home network, WiFi off). Opening a Tiddly (or more) on the 
> phone will also open on other computers.
>
> The installation is vanilla with just the following start up parameters:
> >> tiddlywiki World --listen port=8080 host=10.0.0.2 
> credentials=worldUsers.csv anon-username="Adventurer" "readers=(anon)" 
> writers=admin
> The creds file (worldUsers.csv):
> >>username,password
> >>admin,pswrd
>
>
> This issue baffled someone in the TW5 unofficial Discord, and they 
> suggested I come here, but I still don't know if this is a configuration 
> issue, installation issue, bug or working as designed. My idea is to have 
> multiple people use it in a read-only fashion and have only one editing 
> user, but if it's going disrupt one user having another user browse, maybe 
> it's just not the right tool, which is too bad, because I love this tool.
>

-- 
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/71aa8bc1-4335-4998-98eb-ebec9cf2e9fbo%40googlegroups.com.


Re: [tw5] TiddlyTools/timer.html - major update

2020-09-27 Thread Anthony
Many thanks Eric... all working well now... I was being daft! I guess a 
while ago I downloaded an empty version of 5.1.17 and used that to start a 
new project rather than 5.1.22 (which I seem to have used for another 
project so I'm not being consistent either).

Thanks for a great project - it's greatly appreciated.

Anthony

On Saturday, 26 September 2020 at 16:24:40 UTC+1 Eric Shulman wrote:

> On Saturday, September 26, 2020 at 8:05:45 AM UTC-7, Anthony wrote:
>>
>> I think I may have figured out the problem... I was using TW 5.1.17 and 
>> note the most recent version is 5.1.22. Having saved this version and after 
>> a very quick look things seem to be working. I'll do more testing later but 
>> I have 'household chores' to do now.
>>
>
> Indeed, TW5.1.17 is much too old.  In particular, most of the timer and 
> calendar filters make use of the math operators (
> https://tiddlywiki.com/#Mathematics%20Operators) that were introduced in 
> TW5.1.20 (August 2019), and the clocks use the compare operator (
> https://tiddlywiki.com/#compare%20Operator) that was introduced in 
> TW5.1.22 (April 2020).
>
> -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/a30ec0a0-75e6-4890-aebb-23957dd790cfn%40googlegroups.com.


[tw5] Re: Still frustrated

2020-09-27 Thread Eric Shulman
On Saturday, September 26, 2020 at 11:52:29 PM UTC-7, Bob Jansen wrote:
>
> For example, why does this not work?
> <$button>
> <$action-setfield
>  $tiddler="$:/TLS/exhibition_id"
>  $value={{!!exhibition_id}}
> />
> 
> <$list filter="[tag[Mark]]">
>  <$action-setfield 
>   $field="exhibition_id" 
>   $value=< {{$:/TLS/exhibition_id}}>>
>  /> 
> 
>
> Link Artworks to Exhibition
> 
>

> The result is the string {{!!exhibition_id}} {{$:/TLS/exhibition_id}} 
> stored in the exhibition_id field of each artwork selected and not the 
> transcluded values.
> TLSconcatenate is a simple macro to concatenate two strings
> \define TLSconcatenate(head tail) $head$$tail$
>

A macro does NOT "parse" anything that you pass to it.  It only does TWO 
things:
   1) replace instances of $param$ with a value passed into the macro
   2) replace instances of $(variable)$ with a value defined outside of the 
macro

Macro calls (<>) do not parse any of the 
parameters before passing them into the macro.
Thus, when you use {{!!exibition_id}} and {{$:/TLS/exhibition_id}}, the 
macro simply appends those two bits of syntax, unchanged.

It is up to the "calling context" to determine what happens with the result 
of a macro.
If the macro occurs directly in wikitext, then the result *is* parsed and 
rendered.
If the macro is used as the value of a widget parameter, it is *not* parsed.

This can lead to some confusion when trying to debug a macro:
If you invoke <> and display the results, the 
{{foo}} and {{bar}} transclusions are parsed
and replaced with their underlying values, so it can look like the macro 
does what you might be expecting.
However, if you use that same macro as a widget parameter (e.g., 
$value=<>) then the
the tranclusions are NOT processed and the macro results are just passed 
along to the widget 'as-is'.

For your specific use-case (concatenating the text from two transclusions), 
forget macros...
Instead, use an "inline filter" to construct the desired widget parameter 
value.

"inline filters" (aka "filtered transclusion") are surrounded by 
tripled-curly braces: {{{ ... }}}
and contain filter syntax, which is itself enclosed in a pair of square 
brackets: [...].

Within the filter syntax, transclusions, variables, and literal text use 
*single* brackets:
   {...} for transclusions
   <...> for variables
   [...] for literal text

Thus, the $value param of your $action-setfield widget could be written 
like this:
<$action-setfield 
   $field="exhibition_id" 
   $value={{{ [{!!exhibition_id}addsuffix{$:/TLS/exhibition_id}] }}}
/>

Hope this helps.

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/c33a122d-1519-44c1-a23b-9ea6617744a3o%40googlegroups.com.


[tw5] Still frustrated

2020-09-27 Thread Bob Jansen
I know and am very thankful of the many items of advice I have received in 
the past. But I am still frustrated - there must be some core element I am 
not understanding.

The main issue is how to address items in wikitext, {{ [[ {{{ << <  etc. I 
know this all depends on how the item is being used but a simple cheat 
sheet with many examples would be really useful. I don't find the 
Tiddlywiki documentation easy to follow, bits are all over the place and 
none of the examples address my problems I find.

For example, why does this not work?

<$button>
<$action-setfield
 $tiddler="$:/TLS/exhibition_id"
 $value={{!!exhibition_id}}
/>

<$list filter="[tag[Mark]]">
 <$action-setfield 
  $field="exhibition_id" 
  $value=<>
 /> 


Link Artworks to Exhibition



The result is the string {{!!exhibition_id}} {{$:/TLS/exhibition_id}} 
stored in the exhibition_id field of each artwork selected and not the 
transcluded values.

TLSconcatenate is a simple macro to concatenate two strings

\define TLSconcatenate(head tail) $head$$tail$

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/4cc4b26e-250b-4c7f-8590-fc0ae5dd7db0n%40googlegroups.com.