[tw5]

2019-04-05 Thread TonyM
it will effect the whole wiki as long as the tiddler it is in is displayed. Css 
redefines the class for all its use ie cascades.

I recomend moving the css definition to a stylesheet tiddler and tagging it as 
a stylesheet then it is reusable as a class only when needed.

Regards

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5f4727d4-68f0-4297-8ce8-35cb6d08e6f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: $list filter with empty tiddler values - interesting behaviour to know

2019-04-05 Thread TonyM
Step 2 filterinput is defoned as a variable.

Thus the final  is [subfilter]

Regards
tony

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/75184ecf-3100-43a1-a787-0dc95bcd8ee7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re:

2019-04-05 Thread barrowgloom

Hope this is the right way to do it. Seems to work fine (so far!)

Looks right

that how i operate-- it seems to work, nothing is crashing... yet. : )

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9c76c6a6-ac2b-4e79-9b6d-25b2a617c717%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] How to listing indexes/values for multiple data tiddlers?

2019-04-05 Thread barrowgloom
The question:  How to display values of indexes in a single list 
indexes/values for multiple data tiddlers.  Details below.

What I'm attempting to do is display indexes/values for a single list 
displaying indexes/values from multiple data tiddlers using a filter run to 
select the data tiddlers.  The data tiddlers are all taggged "dataset" and 
are spread through different groups (different monsters) and each group has 
several different data tiddlers that have different suffixes (like monsters 
mobs/hau used in the code example below).  These suffixes are used in all 
the groups, so there would be 10 data tiddlers with the suffix mobs/hau.

First part of code is the data tiddler suffix selection for the filter 
run.  Only one select is shown.  It selects the suffix, in this case 
mobs/hau.  It passes the suffix value to a filter run in the display table.

Select a monster category <$select field='filter-field2'>
Monsters and their haunts

<$set name="data" value={{!!filter-field2}}>
Monster (index title)Haunt (value)<$list filter="[tag[#dataset]suffixindexes[all]]">
{{!!title}}<$transclude tiddler=<> index=<<
currentTiddler>>/>



The standard code for the display table works for displaying indexes/values 
for single data tiddlers but when I pass a filter run (to list multiple 
data tiddlers) to it, it will display index titles but not the values.  I 
figure it's the transclude widget which uses a tiddler name instead of a 
filter parameter.

I probably should be using the tiddler widget instead of the transclude 
widget?  I've seen others using it for data tiddlers.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/20b9511b-3562-40da-b146-c12fb5f06e0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: $list filter with empty tiddler values - interesting behaviour to know

2019-04-05 Thread 'LorenzGL' via TiddlyWiki
Since I have the filter experts in this thread: I've been struggling with a 
somewhat similar problem that I have tried solving using the enlist 
operator... unfortunately without success. I have to accomplish the 
following task:

   1. While in TiddlerZ Read text from TiddlerA
   2. Remove a prefix from text to derive name of TiddlerB
   3. Look up a field value from TiddlerB
   4. Plug field value into another filter

My approach for solving this is essentially composed of 

   1. <$set name="fieldValue" 
   filter="[[tiddlerA]removeprefix[prefix]get[fieldName]]">
   2. <$set name="filterInput" value="[listed]">
   3. [subfilter[filterInput]...]

These steps do what they are supposed to do, however, they fail when the 
field value in Tiddler is referencing a tiddler with a space, e.g. 
[[FirstName LastName]]. In this case, the value gets parsed as 
"[[fieldValue]]" which then messes up the subsequent filters. Any tips on 
the proper way of dealing with bracketed Tiddler names (if using camel case 
is not an option)?

Thanks,

Lorenz

On Friday, April 5, 2019 at 7:29:53 AM UTC-7, Mohammad wrote:
>
> Added to TW-Scripts with the explanation by Matt!
>
> --Mohammad
>
> On Friday, April 5, 2019 at 3:48:16 PM UTC+4:30, S. S. wrote:
>>
>>
>> When trying to test for an *either/or* parameter, I used a filter, and 
>> found this interesting behaviour:
>>
>> \define test1(a b)
>> <$list filter="[[$a$]] [[$b$]] +[limit[1]]" emptyMessage="c">
>> \end
>> \define test2(a b)
>> <$list filter="[enlist[$a$]] [enlist[$b$]] +[limit[1]]" emptyMessage="c"
>> >
>> \end
>>
>> !! Test 1
>> 1. <>   
>> 2. <>  
>> 3. <>   
>> 4. <>  
>>
>> !!Test 2
>> 1. <>   
>> 2. <>  
>> 3. <>   
>> 4. <>  
>>
>>
>> Test 1
>>
>> 1. A
>> 2. A
>> 3.
>> 4.
>>
>> Test 2
>>
>> 1. A
>> 2. A
>> 3. B
>> 4. c
>>
>> Perhaps useful too keep in mind!
>>
>> Cheers
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2ae4d9b3-bc96-4252-a673-347716de67f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: A quiet Date

2019-04-05 Thread S. S.
Well, 

I was playing with the Set Widget Tester for attribute precedence 
 
tiddler that I posted a few days ago, and realized that in the *$set* 
widget, the *field* attribute takes precedence over the *index* attribute, 
so perhaps it would be too difficult to add in the *index* parameter to the 
*date 
Macro*, which really was an oversight as data tiddlers are such an integral 
part of TiddlyWiki.

And so it was easy, with just a minor tweak to 2 lines of the code! Took 
the opportunity to brush up a little, with the following changes:

   1. Corrected mistakes in the  Examples section, Macro column: removed 
   redundant sep parameter. Changed *date* to *invalid-date* 
   2. Changed some single quote delimiters to triple 
   3. Added fields for version number & issues & release-notes
   4. Added missing *empty-message* field to "set to default" macro 
   5. Added *code-black* style for  
   6. Added *index* parameter & its documentation

So here it is - version 1.02 attached below :
 
The date macro takes a string in a Common Date Format and returns it in a 
specified Date Format.

Regards



On Wednesday, April 3, 2019 at 11:07:43 AM UTC+7, Mohammad wrote:
>
> Hi S.S,
>  Great job!  well documented.
> Good flexibility to adopt many formats users may like.
>
> Cheers
> Mohammad
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/59f1b125-c646-4ab3-8823-075afdb955db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


date Macro ver.1.02.tid
Description: Binary data


[tw5] Re:

2019-04-05 Thread S. S.

Wow! Why is CSS so difficult to understand (for me)!

.code-black code { color:black; } 


`code`


Hope this is the right way to do it. Seems to work fine (so far!)

Cheers!

On Saturday, April 6, 2019 at 8:07:08 AM UTC+7, S. S. wrote:
>
>
> I don't like the way this looks   -   I like this better!
>
>
> I personally find the red colour of the text within a code block a little 
> too intrusive and abrasive on the eyes, so in one particular tiddler I 
> tried to change it using:
>
> code { color:black; } 
>
> This works perfectly, except now every code block in every tiddler in the 
> TiddlyWiki gets affected.
>
> Two questions:
>
> 1) How do I restrict the change to just the one tiddler into which I tried 
> with the: *code { color:black; } *
>
> 2) Why is it affecting the whole TiddlyWiki?
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/40fc9887-5859-4ba3-83ee-5d7d054a76c5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re:

2019-04-05 Thread barrowgloom


> 2) Why is it affecting the whole TiddlyWiki?
>
> I had the same happen and I can't remember now what it was but I was 
suspecting it involved certain html elements, most in tiddler styling i see 
uses class names.

I usually use custom data tags for styling individual tiddlers --  
https://tiddlywiki.com/#Custom%20data-styles

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0f11d7b6-792f-422b-9ca6-d8fb2faf1ad8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5]

2019-04-05 Thread S. S.



I don't like the way this looks   -   I like this better!


I personally find the red colour of the text within a code block a little 
too intrusive and abrasive on the eyes, so in one particular tiddler I 
tried to change it using:

code { color:black; } 

This works perfectly, except now every code block in every tiddler in the 
TiddlyWiki gets affected.

Two questions:

1) How do I restrict the change to just the one tiddler into which I tried 
with the: *code { color:black; } *

2) Why is it affecting the whole TiddlyWiki?

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f8899016-315a-422c-a9c0-aab2e0f98c55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] [Off Topic] Laser cut Motovun Jack

2019-04-05 Thread TonyM
Thanks for sharing Jed

Nice to know what others are doing.

Tony

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5ebd50d6-494e-4993-8c29-9edc7a613018%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: [Off Topic] Laser cut Motovun Jack

2019-04-05 Thread TonyM
Alex

I thihk it is healthy for both community members, tiddlywiki itself and the 
community as a whole to include divergent ideas. 

After all the applications of tiddlywiki is not restricted.

Keeping such divergent convesations in its own thread and taking it out of the 
group if it is generating a lot of traffic would be wise.

Regards
tony 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dfb0af9c-76c1-4ec1-9192-f7c0c6909560%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Accessibility trick - displaying colors when html/css colors are disabled

2019-04-05 Thread TonyM
Thanks for sharing this with the community.

Tony

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8214c87c-1f11-4861-b958-8d087421f216%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Global Macro or Local

2019-04-05 Thread TonyM
mohammad

I tend to use global macros even in complex wikis without any impact noted yet. 
You can use dumpvariables to gauge how large this impact is.

We can use import variables to include macros that are not global.

Depending on how macros are written the size of the included code on every 
tiddler can be quite different as I understand it. Using conditions in 
templates tagged for the view template or the reveal widget will change what is 
included with the rendered tiddler.

Because of these various factors I tend to write with a view to being brief and 
minimalist with conditions but let myself use globals whenever the use is broad.

Regards
tony

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8774dd74-1c56-417e-9561-d3c54efa303b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [Off Topic] Laser cut Motovun Jack

2019-04-05 Thread Jed Carty
Jeremy,

After getting the focus worked out we have had some much better results. 
Next week I will cut out another one that has better lines and isn't 
missing a tail and get Ben (the resident photography person) to get a good 
photo of it for tiddlywiki.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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/53c624bb-19ff-4f7f-9ce0-961348e65190%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [Off Topic] Laser cut Motovun Jack

2019-04-05 Thread barrowgloom
The cat strikes again, long live the cat...

Motovun Jack and TW be KAOS approved

[image: kapprv.jpg]


This message was paid for by human pets and approved by Kats Against 
Organization & Sanity
(formerly Kittens Against Organization & Sanity)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c1fa9380-5d3f-4ab9-9e74-be9baee52d1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] [Off Topic] Laser cut Motovun Jack

2019-04-05 Thread Jeremy Ruston
Hi Jed

This is terrific. If you're interested, I'd be delighted to have an image of 
wooden Jack for tiddlywiki.com to go along with the other versions we've got. 
We'd just need a clean photo on a white background.

Best wishes

Jeremy.

--
Jeremy Ruston
jer...@jermolene.com
https://jermolene.com

> On 5 Apr 2019, at 10:32, Jed Carty  wrote:
> 
> In my other work I designed and build a laser cutter. I needed something to 
> test focus so I used the Motovun Jack svg from tiddlywiki.
> 
> I am sure that there will be more later.
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/785ed75f-36d9-4c07-878e-a851577e288e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> <20190405_112324.jpg>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/20AB9630-CC0C-449E-97F1-D2C418B53B2D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: [Off Topic] Laser cut Motovun Jack

2019-04-05 Thread Ste Wilson
Awesome :)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bc14da38-b088-45a1-81b8-57213284d627%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Tiddlywiki on Node.js: Backup

2019-04-05 Thread Mohammad
Thanks MidnightLightning !

I will have a look, specially now I am experimenting with Node.js version 
of TW and GitHub!
Of course I use GitHub Desktop version!

--Mohammad

On Friday, April 5, 2019 at 6:15:57 PM UTC+4:30, MidnightLightning wrote:
>
> I use git  to track changes to my tiddlers, which 
> is a more common developer workflow, but definitely do-able for 
> non-developers as well. Using git to track your wiki changes is mentioned 
> in the TiddlyWiki documentation as a means to create documentation 
> 
>  
> for other projects, and developing plugins for TiddlyWiki 
> ,
>  
> though just tracking changes to your own tiddlers works well too.
>
>
>
>
> On Saturday, March 30, 2019 at 12:25:49 AM UTC-5, Mohammad wrote:
>>
>> This may be a redundant question:
>>  Working with Tiddlywiki on Node.js, on every change a Saving action is 
>> triggered, but the modified tiddler is overwrite!
>> As I used to work with Tiddlydesktop and Timimi, I can create backups or 
>> save on demand!
>>
>> is there any way to have backup or save on demand when working on Node.js?
>>
>> --Mohammad
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/50c26448-39d8-4e71-b493-d6dd2b76e7a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: $list filter with empty tiddler values - interesting behaviour to know

2019-04-05 Thread Mohammad
Added to TW-Scripts with the explanation by Matt!

--Mohammad

On Friday, April 5, 2019 at 3:48:16 PM UTC+4:30, S. S. wrote:
>
>
> When trying to test for an *either/or* parameter, I used a filter, and 
> found this interesting behaviour:
>
> \define test1(a b)
> <$list filter="[[$a$]] [[$b$]] +[limit[1]]" emptyMessage="c">
> \end
> \define test2(a b)
> <$list filter="[enlist[$a$]] [enlist[$b$]] +[limit[1]]" emptyMessage="c"
> >
> \end
>
> !! Test 1
> 1. <>   
> 2. <>  
> 3. <>   
> 4. <>  
>
> !!Test 2
> 1. <>   
> 2. <>  
> 3. <>   
> 4. <>  
>
>
> Test 1
>
> 1. A
> 2. A
> 3.
> 4.
>
> Test 2
>
> 1. A
> 2. A
> 3. B
> 4. c
>
> Perhaps useful too keep in mind!
>
> Cheers
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/de230c2c-c435-4080-a782-a888af42b9e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: $list filter with empty tiddler values - interesting behaviour to know

2019-04-05 Thread Mohammad
Thanks Matt!

I got the point!

Cheers
Mohammad

On Friday, April 5, 2019 at 6:16:12 PM UTC+4:30, Matthew Lauber wrote:
>
> Two filter runs sequentially means {result of filter run 1} followed by 
> {result of filter run 2} (dominantly appended I believe) which isn't 
> exactly the same as OR.  The other thing is that [[]] isn't a false/invalid 
> value, as far as filters are concerned.  So, the list generated is "[[]] 
> [[B]]" which are both valid inputs to the following filter run.  And so 
> [limit[1]] takes the first value passed to it, which is [[]].
>
> Matt
>
>
> On Friday, April 5, 2019 at 9:22:19 AM UTC-4, Mohammad wrote:
>>
>> Mat,
>>  I expect the macro test1 returns B for test 3, becuase while a param is 
>> empty but b has value and [[$a$]] [[$b$]] means OR
>>  Am I right?
>>
>> --Mohammad
>>
>> On Friday, April 5, 2019 at 5:48:35 PM UTC+4:30, Matthew Lauber wrote:
>>>
>>> The difference is due to the enlist filter.  In the first test case, 
>>> [[]] is parsed as a tiddler title with the empty string "" as it's value.  
>>> Weird, but it's still added to the input title list of the filter.  But in 
>>> the enlist filter, it does string parsing to determine all the titles in 
>>> the parameter, and it determines there aren't any in the param, so it 
>>> doesn't add anything to the list of input tiddlers titles.
>>>
>>> On Friday, April 5, 2019 at 8:46:40 AM UTC-4, Mohammad wrote:

 Hi S.S.,
  Thank you for sharing! 
 I don't understand the result of test 3 in two cases! Why they are 
 different?

 --Mohammad



 On Friday, April 5, 2019 at 3:48:16 PM UTC+4:30, S. S. wrote:
>
>
> When trying to test for an *either/or* parameter, I used a filter, 
> and found this interesting behaviour:
>
> \define test1(a b)
> <$list filter="[[$a$]] [[$b$]] +[limit[1]]" emptyMessage="c">
> \end
> \define test2(a b)
> <$list filter="[enlist[$a$]] [enlist[$b$]] +[limit[1]]" emptyMessage=
> "c">
> \end
>
> !! Test 1
> 1. <>   
> 2. <>  
> 3. <>   
> 4. <>  
>
> !!Test 2
> 1. <>   
> 2. <>  
> 3. <>   
> 4. <>  
>
>
> Test 1
>
> 1. A
> 2. A
> 3.
> 4.
>
> Test 2
>
> 1. A
> 2. A
> 3. B
> 4. c
>
> Perhaps useful too keep in mind!
>
> Cheers
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4f4b1169-0971-49fc-88be-47cfe3427fc2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Tiddlywiki on Node.js: Backup

2019-04-05 Thread MidnightLightning
I use git  to track changes to my tiddlers, which is 
a more common developer workflow, but definitely do-able for non-developers 
as well. Using git to track your wiki changes is mentioned in the 
TiddlyWiki documentation as a means to create documentation 

 
for other projects, and developing plugins for TiddlyWiki 
,
 
though just tracking changes to your own tiddlers works well too.




On Saturday, March 30, 2019 at 12:25:49 AM UTC-5, Mohammad wrote:
>
> This may be a redundant question:
>  Working with Tiddlywiki on Node.js, on every change a Saving action is 
> triggered, but the modified tiddler is overwrite!
> As I used to work with Tiddlydesktop and Timimi, I can create backups or 
> save on demand!
>
> is there any way to have backup or save on demand when working on Node.js?
>
> --Mohammad
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8f2485a2-4192-4806-94cf-fe8625911bbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: $list filter with empty tiddler values - interesting behaviour to know

2019-04-05 Thread Matthew Lauber
Two filter runs sequentially means {result of filter run 1} followed by 
{result of filter run 2} (dominantly appended I believe) which isn't 
exactly the same as OR.  The other thing is that [[]] isn't a false/invalid 
value, as far as filters are concerned.  So, the list generated is "[[]] 
[[B]]" which are both valid inputs to the following filter run.  And so 
[limit[1]] takes the first value passed to it, which is [[]].

Matt


On Friday, April 5, 2019 at 9:22:19 AM UTC-4, Mohammad wrote:
>
> Mat,
>  I expect the macro test1 returns B for test 3, becuase while a param is 
> empty but b has value and [[$a$]] [[$b$]] means OR
>  Am I right?
>
> --Mohammad
>
> On Friday, April 5, 2019 at 5:48:35 PM UTC+4:30, Matthew Lauber wrote:
>>
>> The difference is due to the enlist filter.  In the first test case, [[]] 
>> is parsed as a tiddler title with the empty string "" as it's value.  
>> Weird, but it's still added to the input title list of the filter.  But in 
>> the enlist filter, it does string parsing to determine all the titles in 
>> the parameter, and it determines there aren't any in the param, so it 
>> doesn't add anything to the list of input tiddlers titles.
>>
>> On Friday, April 5, 2019 at 8:46:40 AM UTC-4, Mohammad wrote:
>>>
>>> Hi S.S.,
>>>  Thank you for sharing! 
>>> I don't understand the result of test 3 in two cases! Why they are 
>>> different?
>>>
>>> --Mohammad
>>>
>>>
>>>
>>> On Friday, April 5, 2019 at 3:48:16 PM UTC+4:30, S. S. wrote:


 When trying to test for an *either/or* parameter, I used a filter, and 
 found this interesting behaviour:

 \define test1(a b)
 <$list filter="[[$a$]] [[$b$]] +[limit[1]]" emptyMessage="c">
 \end
 \define test2(a b)
 <$list filter="[enlist[$a$]] [enlist[$b$]] +[limit[1]]" emptyMessage=
 "c">
 \end

 !! Test 1
 1. <>   
 2. <>  
 3. <>   
 4. <>  

 !!Test 2
 1. <>   
 2. <>  
 3. <>   
 4. <>  


 Test 1

 1. A
 2. A
 3.
 4.

 Test 2

 1. A
 2. A
 3. B
 4. c

 Perhaps useful too keep in mind!

 Cheers





-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/38039f03-c243-447b-bc93-03d24d23bf9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: $list filter with empty tiddler values - interesting behaviour to know

2019-04-05 Thread Mohammad
Mat,
 I expect the macro test1 returns B for test 3, becuase while a param is 
empty but b has value and [[$a$]] [[$b$]] means OR
 Am I right?

--Mohammad

On Friday, April 5, 2019 at 5:48:35 PM UTC+4:30, Matthew Lauber wrote:
>
> The difference is due to the enlist filter.  In the first test case, [[]] 
> is parsed as a tiddler title with the empty string "" as it's value.  
> Weird, but it's still added to the input title list of the filter.  But in 
> the enlist filter, it does string parsing to determine all the titles in 
> the parameter, and it determines there aren't any in the param, so it 
> doesn't add anything to the list of input tiddlers titles.
>
> On Friday, April 5, 2019 at 8:46:40 AM UTC-4, Mohammad wrote:
>>
>> Hi S.S.,
>>  Thank you for sharing! 
>> I don't understand the result of test 3 in two cases! Why they are 
>> different?
>>
>> --Mohammad
>>
>>
>>
>> On Friday, April 5, 2019 at 3:48:16 PM UTC+4:30, S. S. wrote:
>>>
>>>
>>> When trying to test for an *either/or* parameter, I used a filter, and 
>>> found this interesting behaviour:
>>>
>>> \define test1(a b)
>>> <$list filter="[[$a$]] [[$b$]] +[limit[1]]" emptyMessage="c">
>>> \end
>>> \define test2(a b)
>>> <$list filter="[enlist[$a$]] [enlist[$b$]] +[limit[1]]" emptyMessage="c"
>>> >
>>> \end
>>>
>>> !! Test 1
>>> 1. <>   
>>> 2. <>  
>>> 3. <>   
>>> 4. <>  
>>>
>>> !!Test 2
>>> 1. <>   
>>> 2. <>  
>>> 3. <>   
>>> 4. <>  
>>>
>>>
>>> Test 1
>>>
>>> 1. A
>>> 2. A
>>> 3.
>>> 4.
>>>
>>> Test 2
>>>
>>> 1. A
>>> 2. A
>>> 3. B
>>> 4. c
>>>
>>> Perhaps useful too keep in mind!
>>>
>>> Cheers
>>>
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/65caf201-cff7-4d77-a5dc-46eff86f9e57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: $list filter with empty tiddler values - interesting behaviour to know

2019-04-05 Thread Matthew Lauber
The difference is due to the enlist filter.  In the first test case, [[]] 
is parsed as a tiddler title with the empty string "" as it's value.  
Weird, but it's still added to the input title list of the filter.  But in 
the enlist filter, it does string parsing to determine all the titles in 
the parameter, and it determines there aren't any in the param, so it 
doesn't add anything to the list of input tiddlers titles.

On Friday, April 5, 2019 at 8:46:40 AM UTC-4, Mohammad wrote:
>
> Hi S.S.,
>  Thank you for sharing! 
> I don't understand the result of test 3 in two cases! Why they are 
> different?
>
> --Mohammad
>
>
>
> On Friday, April 5, 2019 at 3:48:16 PM UTC+4:30, S. S. wrote:
>>
>>
>> When trying to test for an *either/or* parameter, I used a filter, and 
>> found this interesting behaviour:
>>
>> \define test1(a b)
>> <$list filter="[[$a$]] [[$b$]] +[limit[1]]" emptyMessage="c">
>> \end
>> \define test2(a b)
>> <$list filter="[enlist[$a$]] [enlist[$b$]] +[limit[1]]" emptyMessage="c"
>> >
>> \end
>>
>> !! Test 1
>> 1. <>   
>> 2. <>  
>> 3. <>   
>> 4. <>  
>>
>> !!Test 2
>> 1. <>   
>> 2. <>  
>> 3. <>   
>> 4. <>  
>>
>>
>> Test 1
>>
>> 1. A
>> 2. A
>> 3.
>> 4.
>>
>> Test 2
>>
>> 1. A
>> 2. A
>> 3. B
>> 4. c
>>
>> Perhaps useful too keep in mind!
>>
>> Cheers
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4e9b82b6-495c-426c-b186-45aed22779b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: $list filter with empty tiddler values - interesting behaviour to know

2019-04-05 Thread Mohammad
Hi S.S.,
 Thank you for sharing! 
I don't understand the result of test 3 in two cases! Why they are 
different?

--Mohammad



On Friday, April 5, 2019 at 3:48:16 PM UTC+4:30, S. S. wrote:
>
>
> When trying to test for an *either/or* parameter, I used a filter, and 
> found this interesting behaviour:
>
> \define test1(a b)
> <$list filter="[[$a$]] [[$b$]] +[limit[1]]" emptyMessage="c">
> \end
> \define test2(a b)
> <$list filter="[enlist[$a$]] [enlist[$b$]] +[limit[1]]" emptyMessage="c"
> >
> \end
>
> !! Test 1
> 1. <>   
> 2. <>  
> 3. <>   
> 4. <>  
>
> !!Test 2
> 1. <>   
> 2. <>  
> 3. <>   
> 4. <>  
>
>
> Test 1
>
> 1. A
> 2. A
> 3.
> 4.
>
> Test 2
>
> 1. A
> 2. A
> 3. B
> 4. c
>
> Perhaps useful too keep in mind!
>
> Cheers
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8de5360a-e010-42c2-8b6c-af160e66c9e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: [Off Topic] Laser cut Motovun Jack

2019-04-05 Thread Alex Hough
Ged,

You designed and built a laser cutter ... tell us more!

I know that we have to keep a focus on TW here on the group, but I think we
can drift into curiosity about what people in the community are are up to.

Of course, no obligation to share i'm just nosy

Alex

On Fri, 5 Apr 2019 at 10:38, Mohammad  wrote:

> :-)
>
>
>
> On Friday, April 5, 2019 at 2:02:34 PM UTC+4:30, Jed Carty wrote:
>>
>> In my other work I designed and build a laser cutter. I needed something
>> to test focus so I used the Motovun Jack svg from tiddlywiki.
>>
>> I am sure that there will be more later.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/950e3985-fcdd-4f20-9ac7-be03cadbe230%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CALc1hYfp0DMRS-5%3DfT%2B_LWqqYwu6urQy3hb8ji3BDdx%3DyCtsUg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] $list filter with empty tiddler values - interesting behaviour to know

2019-04-05 Thread S. S.

When trying to test for an *either/or* parameter, I used a filter, and 
found this interesting behaviour:

\define test1(a b)
<$list filter="[[$a$]] [[$b$]] +[limit[1]]" emptyMessage="c">
\end
\define test2(a b)
<$list filter="[enlist[$a$]] [enlist[$b$]] +[limit[1]]" emptyMessage="c">
\end

!! Test 1
1. <>   
2. <>  
3. <>   
4. <>  

!!Test 2
1. <>   
2. <>  
3. <>   
4. <>  


Test 1

1. A
2. A
3.
4.

Test 2

1. A
2. A
3. B
4. c

Perhaps useful too keep in mind!

Cheers



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8590b387-3925-41c2-9790-3c77dbe483f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to <$list> based on a select widget option value ?

2019-04-05 Thread vpl
Hi

I finally made it running

<$list filter="[search:tags:{!!sortfield}sort[created]reverse[]]">

Rgards

Le vendredi 5 avril 2019 09:52:57 UTC+2, vpl a écrit :
>
> Hi,
>
> My goal
> - A select widget that list all the Tag available in my tiddly
> - A List whose filter is based on the select option value
>
> What is running
> The following code display correctly the widget with the list of available 
> tags. The result is set to the currentTiddler sortfield. FIne !!
> <$select field="sortfield">
> <$list filter='[all[tiddlers]tags[]sort[title]]'>
> >><$view field='title'/>
> 
> 
>
> What is not working is the <$list> ...
> I've tried the following but none is working ...
>
> <$list filter="[search:tags[{!!sortfield}]]sort[created]reverse[]]"/>
> <$list filter="[tag[{!!sortfield}]]sort[created]reverse[]]">
>
> Any help to solve this basic problem ... I guess
>
> Thanks again for your support which is always very efficient !
>
> Regards
>
> Vpl
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ae0053b7-0afb-4f5b-9727-929e16f4d881%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [Off Topic] Laser cut Motovun Jack

2019-04-05 Thread Mohammad
:-)



On Friday, April 5, 2019 at 2:02:34 PM UTC+4:30, Jed Carty wrote:
>
> In my other work I designed and build a laser cutter. I needed something 
> to test focus so I used the Motovun Jack svg from tiddlywiki.
>
> I am sure that there will be more later.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/950e3985-fcdd-4f20-9ac7-be03cadbe230%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to search data tiddler for indexes or values?

2019-04-05 Thread barrowgloom


On Tuesday, March 12, 2019 at 6:26:06 PM UTC-4, Magnus wrote:
>
> Sorry to resurrect an old tread but I can't get this to work. I can get 
> the results from index OR value in the abbreviation data-tiddler but not 
> from both
>
>
I'm experimenting with it for use in my TW and will let you know what I may 
figure out but I'm not as knowledgeable as Mark or the others here. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/acefdfe6-3ec7-47e1-a5a8-f8c3d228ab6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Accessibility trick - displaying colors when html/css colors are disabled

2019-04-05 Thread barrowgloom
For any that use Windows high contrast inverse system color theme and have 
your browser use the system theme you lose html/css color display 
capability for backgrounds, borders, etc unless your play with custom 
browser style sheets (last I saw FF seemed to had dropped that feature).  ( 
Yes, there's browser plugin's and add on's but I got tired of them after 
they would get disabled cause of browser updates or the browser decides 
they have become insecure-- it became too much effort to keep them 
functinal after awhile)

For those familiar with svg's, they will display colors regardless of 
browser onerrides and can be used as inline elements with div's an 
paragraphs ( elements) as horizontal bars and bullet points.  With div's 
and relative and absolute positioning, svg's can be used as background 
color for a div layered under a div of text (or in the same div layered 
under  elements).  Svg's also can displat normal raster images (jpg, 
png) and a way around background image disabling that accessibilty themes 
can have along with negating background colors.  Simple svg's are small in 
code size and can be used as their own tiddler (see the images the TW core 
uses) or their code can be easily inserted into tiddlers along with html or 
wikitext in a tiddler's text field.  I often code simple svg's inside 
tiddler while adding normal content to a tiddler.

A good example of the issue and why I figured out about using svg's is when 
web pages show the color ranges or palettes they will often use background 
colors for div's to show the color instead of using a graphic and my 
browser shows no colors.  So I create svg's with  elements with color 
fills to duplicate the background colored div's.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ccbcf63e-4f10-44d9-a99c-48eaf41c9765%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Global Macro or Local

2019-04-05 Thread Mohammad
I get used to add $:/tags/Macro to each tiddler contains macro. This way I 
can simply use the macros whenever I wish!

Recently, I noted this may cause a performance issue! It seems all those 
tiddlers are loaded when TW is started!

I realized the recent version of TW let me use \import pargma to load them 
on demand!

I like to know your opinion on this! Which method do you recommend


   1. Tag all macro tiddler with $:/tags/Macro! The easy way and simple use
   2. Import macro on a tiddler you wish to use that macro, need a little 
   more elaboration, ... BUT seems this has a positive performance impact!


--Mohammad

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a7b4b064-c427-4bc4-9020-daae07b4b1d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] How to <$list> based on a select widget option value ?

2019-04-05 Thread vpl
Hi,

My goal
- A select widget that list all the Tag available in my tiddly
- A List whose filter is based on the select option value

What is running
The following code display correctly the widget with the list of available 
tags. The result is set to the currentTiddler sortfield. FIne !!
<$select field="sortfield">
<$list filter='[all[tiddlers]tags[]sort[title]]'>
>><$view field='title'/>



What is not working is the <$list> ...
I've tried the following but none is working ...

<$list filter="[search:tags[{!!sortfield}]]sort[created]reverse[]]"/>
<$list filter="[tag[{!!sortfield}]]sort[created]reverse[]]">

Any help to solve this basic problem ... I guess

Thanks again for your support which is always very efficient !

Regards

Vpl


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5ca97ba1-674e-43cd-9af0-9ca5ff979383%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Looking for Tiddlywiki Macros: Good programming style, Documentation

2019-04-05 Thread Mohammad
Hi Tony!
 There is two methods to do this:


   1. Recommended: Fork and create pull request
   2. The other:  download a copy, create a new macro using the provided 
   template, send email to me!


--Mohammad

On Friday, April 5, 2019 at 11:44:11 AM UTC+4:30, TonyM wrote:
>
> Mohammad,
>
> How are we supposed to get the macros we add to the wiki to you, so you 
> can update the master. I would assume here 
> https://github.com/tw-scripts/Yazd
> Using a fork of our own etc...?
>
> However this github location only has a single index.html not the 
> independent tiddlers like on TiddlyWiki5.
>
> Regards
> Tony
>
> On Friday, March 22, 2019 at 5:54:11 AM UTC+11, Mohammad wrote:
>>
>> I am looking for how develop and document Tiddlywiki macros.
>> I am interested in:
>>
>>1. Good programming style
>>2. Macro documentation
>>
>> I appreciate to have your comments, resources and ...
>> If you have your own procedure and methods, I highly appreciate to share 
>> them.
>>
>> Best regards
>> Mohammad
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/96251271-cc5b-45b0-8e99-4d9b23722ea3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Conditionally appending a TOC of Sub tiddlers to a Tiddler (Or how to write Javascript Macros)

2019-04-05 Thread TonyM

And add to the above a filter can be of the form

"FilterList1 ~FilterList2 ~FilterList3"

That is if the first list has no members the second will be used else the 
third. In this case the "for each" changes with each filter.

and much more.



On Friday, April 5, 2019 at 6:36:09 PM UTC+11, Jed Carty wrote:
>
> One thing to remember is that what the list does isn't a loop in the 
> normal programming sense. I think it is more accurately described as list 
> comprehension like in python, something like
>
> output = [ for item in list]
>
> rather than
>
> forEach item in list do
>   
>
> for the most part it wikitext sequential operations on data are done using 
> recursion.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6c3cac2a-37a4-4646-9c51-d875d80d65f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Conditionally appending a TOC of Sub tiddlers to a Tiddler (Or how to write Javascript Macros)

2019-04-05 Thread Jed Carty
One thing to remember is that what the list does isn't a loop in the normal 
programming sense. I think it is more accurately described as list 
comprehension like in python, something like

output = [ for item in list]

rather than

forEach item in list do
  

for the most part it wikitext sequential operations on data are done using 
recursion.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/50ac9fac-2539-470d-9d3a-8a2d7a20369c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Attachment performance with "Folders"

2019-04-05 Thread Jed Carty
If you are using a single file wiki than everything has to be loaded before 
the wiki can function, this includes all embedded pdfs and other media. 
Tiddlywiki can reference and display external media. Either using 
_canonical_uri fields as Tony suggested or by directly linking to the me 
media, the two are mostly equavient and which one you use is just a matter 
of taste. See here https://tiddlywiki.com/#ExternalImages and 
here https://tiddlywiki.com/#Images%20in%20WikiText for some references.

Using either method you can get around much of the problem by letting the 
browser handle the memory management. If you do that than only the media in 
open tiddlers will necessarily be loaded into memory. I think that the 
specifics are up to the browser caching policy.

If you have 1 images than using external images is a better idea.

Depending on your usage of TiddlyWiki you may be better off using the node 
version.

Bob may help with this, is it a plugin for tiddlywiki that I packaged into 
a single executable file that takes care of saving and some management of 
multiple wikis https://github.com/OokTech/TW5-BobEXE/releases

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fc4a46ec-cdd3-43d1-9cc1-8b0215158202%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Conditionally appending a TOC of Sub tiddlers to a Tiddler (Or how to write Javascript Macros)

2019-04-05 Thread TonyM

registrierungs genervter

Give it time and I think you may not think <$for-each>... would 
be a better name for the *list* widget

The filters that drive the ListWidget, SetWidget and Filtered Transclusions 
do a great deal including having their own each[]  operators within. There 
is a very good reason not to call if "for each" because, because there is 
no single thing that you are listing "for each". In common code you may say 
"for each tiddler" or "for each user-field" but in filters you can combine 
these, including retrieving values.

You can write filters that duplicate a for-each structure but these are 
only a subset of what can be achieved.

List is well kept ambiguous if you ask me.

Tony

On Friday, April 5, 2019 at 4:16:56 PM UTC+11, registrierungs genervter 
wrote:
>
> Great! This did the trick - with a small modification. I had to set the 
> *variable* parameter of the *list* widget 
>  to another value:
>
> <$list filter="[all[current]tagging[]limit[1]]" 
> *variable="currentTiddlerInTheList"*>
> <>
> 
>
> This needs to be done because the default name of the *variable* 
> parameter is "currentTiddler". My <> macro also uses that name, 
> expecting it to point to the tiddler where it is used. But the *list* 
> widget invocation changes it to the first tiddler tagged with the current 
> tiddler. If i set the variable to another value, then *currentTiddler* in 
> the <> macro will stay unchanged and it works.
>
> Thanks for pointing me in the right direction.
>
> ---
>
> I didnt fully understand how the list widget works. It executes its 
> content (as a template) for each tiddler in its result list. Also, 
> interesting that
>
> <$list>
> 
>
> and
>
> <$list>
>
> results in two different things. In the first case it uses the linebreak 
> as the template (which results in nothing being shown), in the second it 
> uses a default template (which is a link pointing to the tiddler).
>
> ---
>
> In my opinion <$for-each>... would be a better name for the 
> *list* widget, because *list* is an ambigous name - are we talking about 
> the noun *a list* or about the action *to list something*. but thats 
> another topic.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6487bea6-926e-4dec-93c2-79511c908d85%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Tiddlywiki and GitHub Pages and Travis-CI

2019-04-05 Thread TonyM
Mohammad,

I suppose I understand that, but GITHub is involved and I am trying to both 
understand 

   - the use case for this type of publishing, 
   - and consider the extension of this in the future.

Regards
Tony

On Friday, April 5, 2019 at 4:48:03 PM UTC+11, Mohammad wrote:
>
> Hi Tony!
>  These demos only shows how to have a website hosted on the GitHub Pages!
>
>- The first case just uses a simple index.html no matter how you 
>produce it! but here I used Tiddlywiki
>- The second case uses Tiddlywiki node.js version integrated with 
>Travis to produce the website automatically when you commit any change to 
>your repository!
>
> So, at the end both of them produce an index.html to act as website 
> nothing more!
>
> --Mohammad
>
> On Friday, April 5, 2019 at 6:56:36 AM UTC+4:30, TonyM wrote:
>>
>> Mohammad,
>>
>> This is an invaluable piece of documentation you have created. I have not 
>> followed it yet but will.
>>
>>
>>- Do I understand correctly that the key purpose would be to build 
>>your own tiddlywiki edition or custom build and permit contributions via 
>>github?
>>- I understand it is not really a practical means of maintaining an 
>>online wiki for continuous use because changes would not be saved to the 
>>index.html? or this would be overwritten with an update
>>
>> Of possible interest is with the pre-release the local storage plugin, 
>> edits could be saved locally and overlay those contained in the index.html 
>> (while noting the caveats), thus if the underlying index.html is changed 
>> the user modified tiddlers will still be layered on top of the index.html, 
>> thus an appropriate save button would allow the wiki, modified or default 
>> to be saved to a standalone wiki as required, as such this also acts both 
>> as a distribution method, and a test platform from which the user can save 
>> off their modified version, or just their differences. It is with this in 
>> mind I have been working on ensuring the user is set such that tiddlers 
>> created and modified by the user can be identified with createdby and 
>> modifiedby (Hidden fields).
>>
>> Using a similar method to the above created by and modified by it should 
>> be possible to allow users to add comments (Saved in local storage) then 
>> exported to json file. This file can then be sent to an author and imported 
>> and read by the author and fixes applied to source tids. A slight 
>> adjustment to the import process would make this comment import more 
>> reliable.
>>
>> Regards
>> Tony
>>
>>
>> On Friday, April 5, 2019 at 7:19:01 AM UTC+11, Mohammad wrote:
>>>
>>> *Announcement: New Demo and Documentation to create websites on GitHub 
>>> Pages*
>>> *Date: Apr 5th, 2019*
>>>
>>> Referring to the good works by Danielo, Talha, and Joe, an some other 
>>> people ,
>>> for the documentation purpose, I have prepared two demo wikis with 
>>> documentation to show
>>>
>>>
>>> *Setup websites using Tiddlywiki 5, and Travis-CI hosted on GitHub Pages*
>>>
>>> Code: https://github.com/kookma/Tiddlywiki-Github-Pages-Travis-CI
>>> Demo: https://kookma.github.io/Tiddlywiki-Github-Pages-Travis-CI/
>>>
>>>
>>>
>>> *Setup websites using Tiddlywiki 5, and hosted on GitHub Pages*
>>> Code: https://github.com/kookma/ 
>>> 
>>> Tiddlywiki-and-GitHub-Pages
>>> Demo: https://kookma.github.io/Tiddlywiki-and-GitHub-Pages/
>>>
>>>
>>> I appreciate your comments, help and idea to improve these wikis.
>>>
>>> --Mohammad
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0463d577-c401-487f-adca-771f31f459a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Looking for Tiddlywiki Macros: Good programming style, Documentation

2019-04-05 Thread TonyM
Mohammad,

How are we supposed to get the macros we add to the wiki to you, so you can 
update the master. I would assume here https://github.com/tw-scripts/Yazd
Using a fork of our own etc...?

However this github location only has a single index.html not the 
independent tiddlers like on TiddlyWiki5.

Regards
Tony

On Friday, March 22, 2019 at 5:54:11 AM UTC+11, Mohammad wrote:
>
> I am looking for how develop and document Tiddlywiki macros.
> I am interested in:
>
>1. Good programming style
>2. Macro documentation
>
> I appreciate to have your comments, resources and ...
> If you have your own procedure and methods, I highly appreciate to share 
> them.
>
> Best regards
> Mohammad
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/87d10dbd-7462-435d-9ca4-184e095f02cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.