[tw5] TiddlyTools/timer.html - major update

2020-09-23 Thread Eric Shulman
Hi all,

Just a quick announcement that http://TiddlyTools.com/timer.html has had a 
major overhaul:

*TiddlyTools/Timer* has a new, vastly improved interface and has been 
renamed *TiddlyTools/Time/Timer*
In addition, all other tiddlers have also been renamed from: 
*TiddlyTools/Timer/* *to: *TiddlyTools/Time/**
Of course, this also includes changes to all internal references to 
"TiddlyTools/Timer".

I know this may seem like a somewhat gratuitous name change with relatively 
little real value,
but it makes for better overall naming consistency and will help me in the 
future as I continue
to enhance and extend the "TiddlyTool/Time" functions and prepare to 
package it as a plugin.

*If you have already installed the "TiddlyTools/Timer/*" tiddlers, you 
should discard those old*
*tiddlers and import the newly renamed versions.*  Of course, you will also 
need to update any
existing references (i.e., transclusions) of these tiddlers in your own 
document.

Sorry for the big change, but I've been meaning to do this for quite a 
while and it was getting
on my nerves.  I promise not to do anything like this again!

-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/6ae8c99f-1f08-4e65-bfbb-24f26bd16fbdo%40googlegroups.com.


[tw5] Re: JsonMangler - get all values of an nested index

2020-09-23 Thread Joshua Fontany
Aaah, that's a bit trickier. We need to collect and de-duplicate the list 
of Cultures in all Data tiddlers, and then setup a nested pair of 
<$list> .. .

You could use the technique I showed you for the first list to gather the 
data, and then set it into a new Tiddler field or JSON Tiddler, and then 
use that to drive the outer list. I would make a $button that when pressed 
ran a macro where a $list widget and $action-listops widgets to add each 
Culture to a master List.

Best,
Joshua F

On Wednesday, September 23, 2020 at 10:35:53 AM UTC-7 Darek Bobak wrote:

> and, which is more elaborated, make a reverse list: group names by 
> cultures:
>
> * Magdalenian
> ** Abri Fuchskirche
> ** Adlerova
> * Epigravettian
> ** Abri Fuchskirche
> * Gravettian
> ** Adlerova
>
> cheers,
> Darek
>
> środa, 23 września 2020 o 11:50:55 UTC+2 Darek Bobak napisał(a):
>
>> And still bothering you...
>>
>> I'd like to get a list in the following form:
>>
>> * Abri Fuchskirche
>>** Magdalenian
>>** Epigravettian
>> * Adlerowa
>>** Magdalenian
>>** Gravettian
>>
>> The source json tiddler is:
>>
>> {
>>   "type": "FeatureCollection",
>>   "features": [
>> {
>>   "id": 445,
>>   "type": "Feature",
>>   "geometry": {
>> "type": "Point",
>> "coordinates": [
>>   11.203903189,
>>   50.653401032
>> ]
>>   },
>>   "properties": {
>> "name": "Abri Fuchskirche",
>> "site_id": 445,
>> "cultures": [
>>   "Magdalenian",
>>   "Epigravettian"
>> ],
>> "elevation": 308
>>   }
>> },
>> {
>>   "id": 452,
>>   "type": "Feature",
>>   "geometry": {
>> "type": "Point",
>> "coordinates": [
>>   16.749868297,
>>   49.242753593
>> ]
>>   },
>>   "properties": {
>> "name": "Adlerova",
>> "site_id": 452,
>> "cultures": [
>>   "Magdalenian",
>>   "Gravettian"
>> ],
>> "elevation": 371
>>   }
>> }
>>   ]
>> }
>>
>> thank you all for the help
>> Darek
>>
>> środa, 23 września 2020 o 02:20:01 UTC+2 joshua@gmail.com napisał(a):
>>
>>> This gets into "wikitext shortcuts" but you could simplify it with an 
>>> "trancluded filter" inside the list, wrapped in triple-curly-braces. TW 
>>> would be creating another widget in the background to handle transcluding 
>>> the final value.
>>> ```
>>> <$list filter="[[test]indexes[/cultures]addprefix[/cultures/]]" 
>>> variable="index">
>>>
>>> {{{ [[test]getindex] }}}
>>>
>>> 
>>> ```
>>>
>>> You could even use the $transclude widget like so:
>>>
>>> ```
>>> <$list filter="[[test]indexes[/cultures]addprefix[/cultures/]]" 
>>> variable="index">
>>>
>>> <$transclude tiddler="test" index=<> />
>>>
>>> 
>>> ```
>>>
>>> Best,
>>> Joshua Fontany
>>>
>>> On Tuesday, September 22, 2020 at 5:07:04 PM UTC-7 Joshua Fontany wrote:
>>>
 Thanks Saq!

 Yes, you could with this list construction (note the additional slash 
 when we add the prefix back to the index numbers):

 ```
 <$list filter="[[test]indexes[/cultures]addprefix[/cultures/]]" 
 variable="index">

 <$list filter="[[test]getindex]">

 

 
 ```

 Best,
 Joshua F

 On Tuesday, September 22, 2020 at 1:53:14 PM UTC-7 Darek Bobak wrote:

> Saq, thanks  for your help, the method works well. And would it be 
> possible to get all the values from the property which is not a single 
> value but array of the values. Cultures in the sample below:
>
> {
> "name": "Pilszcz 64",
> "region": "Silesia",
> "country": "PL",
> "site_id": 2,
> "cultures": [
>   "Szeletian",
>   "Early Upper Palaeolithic"
> ]
>   }
>
> cheers,
> Darek
>
> wtorek, 22 września 2020 o 12:21:02 UTC+2 saq.i...@gmail.com 
> napisał(a):
>
>> @Darek
>>
>> I've never used jsonmangler so I am unsure if you can get this done 
>> in a singular expression.
>> I do think something like this should work if your JSON is in a 
>> tiddler called test
>>
>> <$list filter="[[test]indexes:all[]suffix[properties/name]]" 
>> variable="index">
>>
>> <$list filter="[[test]getindex]">
>>
>> 
>>
>>  
>>
>>
>> On Tuesday, September 22, 2020 at 11:21:57 AM UTC+2, Darek Bobak 
>> wrote:
>>>
>>>
>>> Is it possible to list all the values of the specified index in 
>>> filter expression? I would like to get all the values of the "name" 
>>> (ie, 
>>> Albersdorf and Pfellnkofen) from the sample json tiddler:
>>>
>>> {
>>>   "type": "FeatureCollection",
>>>   "features": [
>>> {
>>>   "type": "Feature",
>>>   "properties": {
>>> "name": "Albersdorf",
>>> "type": "Open",

[tw5] Re: JsonMangler - get all values of an nested index

2020-09-23 Thread Joshua Fontany
I've an interest in ancient cultures. Happy to help.
We create an "outer" $list to give us the path to all objects in the 
/features array. Then, we create some variables via $set that allow us to 
access properties. Another $list gives us the paths to the /cultures 
objects (strings), and then we transclude the data into view. I wrapped 
this in an couple of s, and each item in its own  tag. Note that we 
always double-line-break after opeing a $list if we want it to be "block 
formatted".
```

<$list variable="feature_path" 
filter="[[MyDataTiddler]indexes[/features]addprefix[/features/]]">

<$set name="feature_name" 
filter="[addsuffix[/properties/name]]" >
<$set name="feature_cultures" 
filter="[addsuffix[/properties/cultures]]" >  

<$transclude tiddler="MyDataTiddler" index=<> />

<$list variable="culture" 
filter="[[MyDataTiddler]indexesaddprefix[/]addprefix]">
  

<$transclude tiddler="MyDataTiddler" index=<> />  
 


  


```

Best,
Joshua F
On Wednesday, September 23, 2020 at 2:50:55 AM UTC-7 Darek Bobak wrote:

> And still bothering you...
>
> I'd like to get a list in the following form:
>
> * Abri Fuchskirche
>** Magdalenian
>** Epigravettian
> * Adlerowa
>** Magdalenian
>** Gravettian
>
> The source json tiddler is:
>
> {
>   "type": "FeatureCollection",
>   "features": [
> {
>   "id": 445,
>   "type": "Feature",
>   "geometry": {
> "type": "Point",
> "coordinates": [
>   11.203903189,
>   50.653401032
> ]
>   },
>   "properties": {
> "name": "Abri Fuchskirche",
> "site_id": 445,
> "cultures": [
>   "Magdalenian",
>   "Epigravettian"
> ],
> "elevation": 308
>   }
> },
> {
>   "id": 452,
>   "type": "Feature",
>   "geometry": {
> "type": "Point",
> "coordinates": [
>   16.749868297,
>   49.242753593
> ]
>   },
>   "properties": {
> "name": "Adlerova",
> "site_id": 452,
> "cultures": [
>   "Magdalenian",
>   "Gravettian"
> ],
> "elevation": 371
>   }
> }
>   ]
> }
>
> thank you all for the help
> Darek
>
> środa, 23 września 2020 o 02:20:01 UTC+2 joshua@gmail.com napisał(a):
>
>> This gets into "wikitext shortcuts" but you could simplify it with an 
>> "trancluded filter" inside the list, wrapped in triple-curly-braces. TW 
>> would be creating another widget in the background to handle transcluding 
>> the final value.
>> ```
>> <$list filter="[[test]indexes[/cultures]addprefix[/cultures/]]" 
>> variable="index">
>>
>> {{{ [[test]getindex] }}}
>>
>> 
>> ```
>>
>> You could even use the $transclude widget like so:
>>
>> ```
>> <$list filter="[[test]indexes[/cultures]addprefix[/cultures/]]" 
>> variable="index">
>>
>> <$transclude tiddler="test" index=<> />
>>
>> 
>> ```
>>
>> Best,
>> Joshua Fontany
>>
>> On Tuesday, September 22, 2020 at 5:07:04 PM UTC-7 Joshua Fontany wrote:
>>
>>> Thanks Saq!
>>>
>>> Yes, you could with this list construction (note the additional slash 
>>> when we add the prefix back to the index numbers):
>>>
>>> ```
>>> <$list filter="[[test]indexes[/cultures]addprefix[/cultures/]]" 
>>> variable="index">
>>>
>>> <$list filter="[[test]getindex]">
>>>
>>> 
>>>
>>> 
>>> ```
>>>
>>> Best,
>>> Joshua F
>>>
>>> On Tuesday, September 22, 2020 at 1:53:14 PM UTC-7 Darek Bobak wrote:
>>>
 Saq, thanks  for your help, the method works well. And would it be 
 possible to get all the values from the property which is not a single 
 value but array of the values. Cultures in the sample below:

 {
 "name": "Pilszcz 64",
 "region": "Silesia",
 "country": "PL",
 "site_id": 2,
 "cultures": [
   "Szeletian",
   "Early Upper Palaeolithic"
 ]
   }

 cheers,
 Darek

 wtorek, 22 września 2020 o 12:21:02 UTC+2 saq.i...@gmail.com 
 napisał(a):

> @Darek
>
> I've never used jsonmangler so I am unsure if you can get this done in 
> a singular expression.
> I do think something like this should work if your JSON is in a 
> tiddler called test
>
> <$list filter="[[test]indexes:all[]suffix[properties/name]]" 
> variable="index">
>
> <$list filter="[[test]getindex]">
>
> 
>
>  
>
>
> On Tuesday, September 22, 2020 at 11:21:57 AM UTC+2, Darek Bobak wrote:
>>
>>
>> Is it possible to list all the values of the specified index in 
>> filter expression? I would like to get all the values of the "name" (ie, 
>> Albersdorf and Pfellnkofen) from the sample json tiddler:
>>
>> {
>>   "type": "FeatureCollection",
>>   "features": [
>> {
>>   "type": "Feature",
>>   "properties": {
>> "name": "Albersdorf",
>> "type": "Open",
>> 

[tw5] Re: [plugin][annuncement] login for multi user wikis: LoginCurtain-mod

2020-09-23 Thread TW Tones
HC,

Love it, as usual someone beat me to it. and did a better job.

I was making something similar or even more complex when I realised as you 
have just forcing a user name is important.

I was going to call this, than login "WHO ARE YOU?"

Thanks for doing this
Tones

On Tuesday, 22 September 2020 17:22:14 UTC+10, HC Haase wrote:
>
>
> *Announcement*: LoginCurtain-mod 
>  
> *Date*: 2020/09/22
> *Release*: 1.0.0
>
> Download: LoginCurtain-mod 
> 
>
> Hi everyone 
> I just want to announce my mod of the loginCurtain mod. This is a mod of 
> the very cool logincurtain plugin 
>  by 
> Jan (JJ).
>
> Audience: For multi user wiki's
>
> Function: blocks the wiki until a username is set. This way no one forgets 
> to set a username before editing the wiki. NB: this is not a lock or 
> encryption of the wiki.
>
> Jan's made the hard work with his plugin by blocking the UI until the 
> username is set in a login prompt.
>
> In this mod, I 
>
>- make the UI more professional (e.g. boring) for use in the workplace 
>- present an interface for picking a pre-made user.
>- provide a user management tab in Control Panel/Info/login-settings.
>- a button to create a user tiddler that also shows what tiddlers the 
>user has made or modified.
>- customisations of buttons, text and icons in Control 
>Panel/Info/login-settings.
>
> [image: capture.PNG]
>
> [image: Capture2.PNG]
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/605407fb-decf-42b7-a284-2bacb171000eo%40googlegroups.com.


[tw5] Re: Styling list in columns - top alignment

2020-09-23 Thread PMario
On Wednesday, September 23, 2020 at 9:11:13 PM UTC+2, Cade Roux wrote:
>
> A ha!  Thanks so much.


You are welcome. .. I did have the same problem once :)
-m

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/48a6ed08-c615-4354-b478-589a5f44eba4o%40googlegroups.com.


[tw5] Re: Styling list in columns - top alignment

2020-09-23 Thread Cade Roux
A ha!  Thanks so much.

Cade

On Wednesday, September 23, 2020 at 12:35:16 PM UTC-5 PMario wrote:

> Hi,
>
> The list UL element has a margin-top and a margin-bottom. If you remove 
> it, it should be OK.
>
> So if you add 
>
> .threecolumns ul {
>   margin-top: 0;
>   margin-bottom: 0;
> }
>
> you should be fine. 
>
> -mario
>

-- 
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/aecb5646-1e15-49aa-aa8a-bb20b6cae456n%40googlegroups.com.


[tw5] Re: Struggling with reveal

2020-09-23 Thread Simon
Awesome folks - once again some great help!
Very much appreciated
Simon

On Tuesday, September 22, 2020 at 8:34:51 PM UTC-4 Eric Shulman wrote:

> On Tuesday, September 22, 2020 at 4:46:26 PM UTC-7, Simon wrote:
>
>> I have set a time stamp
>>
> <$set name="timestamp" value="<
>>
> >">
>>
>
>> <$reveal type='lt' state='!!gsd_duedate' text='<
>>
> >' >
>>
> I have tried single angle brackets: , double angle 
>> <>, {{!!timestamp} and {!!timestamp} - all to no avail
>>
>
> When specifying a widget parameter, the enclosing syntax is used to 
> indicate the kind of parameter parsing to use:
>
>- "..." (or '...' or """...""" or [[...]]) is for literal values
>- <<...>> is for variables/macros
>- {{...}} is for tiddler/field references
>- {{{ [...] }}} is for filters
>
> Thus, since <> is a macro, and <> is a variable, they 
> should not be enclosed in quotes:
> <$set name="timestamp" value=<>>
> <$reveal type='lt' state='!!gsd_duedate' text=<> >
>
> Note that for simple assignments, you can use <$vars> instead of <$set>
> <$vars timestamp=<>>
>
> <$reveal type='lt' state='!!gsd_duedate' text=<> >
>
> The advantage of <$vars> is that you can do multiple variable assignments 
> in a single widget:
> <$vars foo="literal" bar=<> baz={{!!field}} mumble={{{ [filter] 
> }}}>
>
> Note that the {{{ [filter] }}} syntax will only return one item from the 
> filter (the *first* item).
> To assign the results of a filter with multiple items, use <$set> with the 
> "filter" parameter, like this:
> <$set name="foo" filter="[...]">
> also, you can use <$set> to perform "conditional assignment":
> <$set name="foo" filter="[...]" value="has a result" emptyValue="no 
> results">
> If the filter returns a result, the specified value is used, if the filter 
> returns no result, the emptyValue is used.
>
> 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/a267c806-51c8-4ce0-8cb7-b2f7822a0536n%40googlegroups.com.


[tw5] Re: When running on node, disabling the Filesystem plugin has really nasty effects

2020-09-23 Thread PMario
On Wednesday, September 23, 2020 at 1:19:42 PM UTC+2, Michael Borgwardt 
wrote:

I think it would be a good idea at minimum to change the plugin 
> description, or even make it impossible to disable.
>

Hi Michael,

Which exact text would have helped you to avoid the problem. I'll create a 
pull-request, if you come up with a good text. 

The same is true for the TiddlyWeb plugin. Filesystem and TiddlyWeb always 
work together at the moment. 

-mario

-- 
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/445102f6-902a-48a7-9ed8-49660cfdee6co%40googlegroups.com.


[tw5] Re: Styling list in columns - top alignment

2020-09-23 Thread PMario
Hi,

The list UL element has a margin-top and a margin-bottom. If you remove it, 
it should be OK.

So if you add 

.threecolumns ul {
  margion-top: 0;
  margion-bottom: 0;
}

you should be fine. 

-mario

-- 
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/ebed75b2-4275-4a2e-b181-fb35a894a2d3o%40googlegroups.com.


[tw5] Re: JsonMangler - get all values of an nested index

2020-09-23 Thread Darek Bobak
and, which is more elaborated, make a reverse list: group names by cultures:

* Magdalenian
** Abri Fuchskirche
** Adlerova
* Epigravettian
** Abri Fuchskirche
* Gravettian
** Adlerova

cheers,
Darek

środa, 23 września 2020 o 11:50:55 UTC+2 Darek Bobak napisał(a):

> And still bothering you...
>
> I'd like to get a list in the following form:
>
> * Abri Fuchskirche
>** Magdalenian
>** Epigravettian
> * Adlerowa
>** Magdalenian
>** Gravettian
>
> The source json tiddler is:
>
> {
>   "type": "FeatureCollection",
>   "features": [
> {
>   "id": 445,
>   "type": "Feature",
>   "geometry": {
> "type": "Point",
> "coordinates": [
>   11.203903189,
>   50.653401032
> ]
>   },
>   "properties": {
> "name": "Abri Fuchskirche",
> "site_id": 445,
> "cultures": [
>   "Magdalenian",
>   "Epigravettian"
> ],
> "elevation": 308
>   }
> },
> {
>   "id": 452,
>   "type": "Feature",
>   "geometry": {
> "type": "Point",
> "coordinates": [
>   16.749868297,
>   49.242753593
> ]
>   },
>   "properties": {
> "name": "Adlerova",
> "site_id": 452,
> "cultures": [
>   "Magdalenian",
>   "Gravettian"
> ],
> "elevation": 371
>   }
> }
>   ]
> }
>
> thank you all for the help
> Darek
>
> środa, 23 września 2020 o 02:20:01 UTC+2 joshua@gmail.com napisał(a):
>
>> This gets into "wikitext shortcuts" but you could simplify it with an 
>> "trancluded filter" inside the list, wrapped in triple-curly-braces. TW 
>> would be creating another widget in the background to handle transcluding 
>> the final value.
>> ```
>> <$list filter="[[test]indexes[/cultures]addprefix[/cultures/]]" 
>> variable="index">
>>
>> {{{ [[test]getindex] }}}
>>
>> 
>> ```
>>
>> You could even use the $transclude widget like so:
>>
>> ```
>> <$list filter="[[test]indexes[/cultures]addprefix[/cultures/]]" 
>> variable="index">
>>
>> <$transclude tiddler="test" index=<> />
>>
>> 
>> ```
>>
>> Best,
>> Joshua Fontany
>>
>> On Tuesday, September 22, 2020 at 5:07:04 PM UTC-7 Joshua Fontany wrote:
>>
>>> Thanks Saq!
>>>
>>> Yes, you could with this list construction (note the additional slash 
>>> when we add the prefix back to the index numbers):
>>>
>>> ```
>>> <$list filter="[[test]indexes[/cultures]addprefix[/cultures/]]" 
>>> variable="index">
>>>
>>> <$list filter="[[test]getindex]">
>>>
>>> 
>>>
>>> 
>>> ```
>>>
>>> Best,
>>> Joshua F
>>>
>>> On Tuesday, September 22, 2020 at 1:53:14 PM UTC-7 Darek Bobak wrote:
>>>
 Saq, thanks  for your help, the method works well. And would it be 
 possible to get all the values from the property which is not a single 
 value but array of the values. Cultures in the sample below:

 {
 "name": "Pilszcz 64",
 "region": "Silesia",
 "country": "PL",
 "site_id": 2,
 "cultures": [
   "Szeletian",
   "Early Upper Palaeolithic"
 ]
   }

 cheers,
 Darek

 wtorek, 22 września 2020 o 12:21:02 UTC+2 saq.i...@gmail.com 
 napisał(a):

> @Darek
>
> I've never used jsonmangler so I am unsure if you can get this done in 
> a singular expression.
> I do think something like this should work if your JSON is in a 
> tiddler called test
>
> <$list filter="[[test]indexes:all[]suffix[properties/name]]" 
> variable="index">
>
> <$list filter="[[test]getindex]">
>
> 
>
>  
>
>
> On Tuesday, September 22, 2020 at 11:21:57 AM UTC+2, Darek Bobak wrote:
>>
>>
>> Is it possible to list all the values of the specified index in 
>> filter expression? I would like to get all the values of the "name" (ie, 
>> Albersdorf and Pfellnkofen) from the sample json tiddler:
>>
>> {
>>   "type": "FeatureCollection",
>>   "features": [
>> {
>>   "type": "Feature",
>>   "properties": {
>> "name": "Albersdorf",
>> "type": "Open",
>> "elevation": ""
>>   },
>>   "geometry": {
>> "type": "Point",
>> "coordinates": [
>>   13.190206,
>>   48.649078
>> ]
>>   }
>> },
>> {
>>   "type": "Feature",
>>   "properties": {
>> "name": "Pfellnkofen",
>> "type": "Open",
>> "elevation": ""
>>   },
>>   "geometry": {
>> "type": "Point",
>> "coordinates": [
>>   12.190206,
>>   48.649078
>> ]
>>   }
>> }
>>   ]
>> }
>>
>>
>> best
>> Darek
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 

[tw5] Re: [ Streams ] : feedback and issues

2020-09-23 Thread Saq Imtiaz
Hi Mike,

In exploring the context menu option I mentioned, it seems to be extremely 
> easy to implement. Using your instructions 
> 
>  
> as a guide
>

That is good to hear. The individual keyboard shortcut tiddlers were added 
only in the last plugin update, and this was one of the use cases in mind. 
You're the first one to actually use them in this way, so this is good 
feedback.

The default context menu items are currently hardcoded. I would like to 
move those into separate tiddlers and offer a settings panel for the 
content menu, before adding more items to the context menu by default.

Cheers,
Saq

-- 
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/138f0a69-cd70-4ec7-af67-3eea3f5784cdo%40googlegroups.com.


[tw5] Re: [plugin][annuncement] login for multi user wikis: LoginCurtain-mod

2020-09-23 Thread HC Haase


> Nice work! 
>

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/70a11c33-a3c7-4aaa-8e70-e4aef4702144n%40googlegroups.com.


[tw5] When running on node, disabling the Filesystem plugin has really nasty effects

2020-09-23 Thread Michael Borgwardt
So this just cost me about 3 hours and I was really lucky to lose only a 
few changes to tiddlers.

The plugin is described as "Synchronise changes to the local filesystem" so 
I thought it had something to do with running TW locally as a single file. 
But it's actually the mechanism that the node server uses to save tiddlers.

The insidious thing is that it only becomes effective the next time the 
server is restarted - which could be *months* after you made the change in 
the settings and have forgotten about it completely. And then you *still* 
don't notice anything wrong because the server keeps changes in memory - 
until you restart it the next time and all changes in between are lost! 

I think it would be a good idea at minimum to change the plugin 
description, or even make it impossible to disable.

-- 
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/47946e49-7608-48a5-87c3-7a7103c221cbn%40googlegroups.com.


[tw5] Re: How to run two or more wikis on Nodejs?

2020-09-23 Thread jin
Thank you for the replies! I downloaded Bob already and I am currently 
reading what's on it. I'll check out Tiddlyserver soon 
On Wednesday, 23 September 2020 at 00:58:27 UTC+8 Darek Bobak wrote:

> This is my sample cofiguration for three wikis. I hope this will help you. 
> The folder structure is:
>
> TiddlyWiki
>.config
>public_html
>
> The configuration files (tiddlyserver.json, tiddlyserver-2-2.schema.json) 
> are in the .config folder, wiki folders are in public_html.
>
> {
> //The JSON5 parser allows comments!
> //All relative paths are relative to this file.
> //The user directory prefix ~ is allowed.
>
> //remove one of these
> // "tree": "../webroot", //this tree is just going to mount a folder as 
> root: ../webroot
>
> "tree": { //this tree is going to mount a group containing folders and 
> another group
> "zettelkasten": {
> "$element": "folder",
> "path": "../public_html/zettel",
> },
> "research notes": {
> "$element": "folder",
> "path": "../public_html/rn",
> },
> "test": {
> "$element": "folder",
> "path": "../public_html/test",
> },
> },
> "bindInfo": {
> // bind to localhost only (you can specify any other ip address in this 
> array, and it will bind to all available addresses)
> "port": 8080,
> "bindAddress": ["127.0.0.1"]
>
> //bind to 0.0.0.0
> // "bindWildcard": true
>
> //workaround for android devices (bind to all available private ip 
> addresses on startup)
> // "bindWildcard": false, "bindAddress": ["192.168.0.0/16", "10.0.0.0/8", 
> "172.31.0.0/16"], "filterBindAddress": true,
> },
> "putsaver": {
> //single file wikis will backup to this directory on every save
> // "backupFolder": "./backups" // comment out or set to "" to disable 
> backups
> },
> "$schema": "./tiddlyserver-2-2.schema.json"
> }
>
> cheers,
> Darek
>
>
> wtorek, 22 września 2020 o 12:30:54 UTC+2 justinehe...@gmail.com 
> napisał(a):
>
>> I have read some threads regarding this and I encountered Bob and 
>> Tiddlyserver which can help me run multiple wikis as far as I know. The 
>> problem its too overwhelming and I don't know how to create the 
>> settings.json file in Tiddlyserver. So what should I do?
>>
>

-- 
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/c8160caf-5afc-4db1-abb9-07c593d16c28n%40googlegroups.com.


[tw5] Re: JsonMangler - get all values of an nested index

2020-09-23 Thread Darek Bobak
And still bothering you...

I'd like to get a list in the following form:

* Abri Fuchskirche
   ** Magdalenian
   ** Epigravettian
* Adlerowa
   ** Magdalenian
   ** Gravettian

The source json tiddler is:

{
  "type": "FeatureCollection",
  "features": [
{
  "id": 445,
  "type": "Feature",
  "geometry": {
"type": "Point",
"coordinates": [
  11.203903189,
  50.653401032
]
  },
  "properties": {
"name": "Abri Fuchskirche",
"site_id": 445,
"cultures": [
  "Magdalenian",
  "Epigravettian"
],
"elevation": 308
  }
},
{
  "id": 452,
  "type": "Feature",
  "geometry": {
"type": "Point",
"coordinates": [
  16.749868297,
  49.242753593
]
  },
  "properties": {
"name": "Adlerova",
"site_id": 452,
"cultures": [
  "Magdalenian",
  "Gravettian"
],
"elevation": 371
  }
}
  ]
}

thank you all for the help
Darek

środa, 23 września 2020 o 02:20:01 UTC+2 joshua@gmail.com napisał(a):

> This gets into "wikitext shortcuts" but you could simplify it with an 
> "trancluded filter" inside the list, wrapped in triple-curly-braces. TW 
> would be creating another widget in the background to handle transcluding 
> the final value.
> ```
> <$list filter="[[test]indexes[/cultures]addprefix[/cultures/]]" 
> variable="index">
>
> {{{ [[test]getindex] }}}
>
> 
> ```
>
> You could even use the $transclude widget like so:
>
> ```
> <$list filter="[[test]indexes[/cultures]addprefix[/cultures/]]" 
> variable="index">
>
> <$transclude tiddler="test" index=<> />
>
> 
> ```
>
> Best,
> Joshua Fontany
>
> On Tuesday, September 22, 2020 at 5:07:04 PM UTC-7 Joshua Fontany wrote:
>
>> Thanks Saq!
>>
>> Yes, you could with this list construction (note the additional slash 
>> when we add the prefix back to the index numbers):
>>
>> ```
>> <$list filter="[[test]indexes[/cultures]addprefix[/cultures/]]" 
>> variable="index">
>>
>> <$list filter="[[test]getindex]">
>>
>> 
>>
>> 
>> ```
>>
>> Best,
>> Joshua F
>>
>> On Tuesday, September 22, 2020 at 1:53:14 PM UTC-7 Darek Bobak wrote:
>>
>>> Saq, thanks  for your help, the method works well. And would it be 
>>> possible to get all the values from the property which is not a single 
>>> value but array of the values. Cultures in the sample below:
>>>
>>> {
>>> "name": "Pilszcz 64",
>>> "region": "Silesia",
>>> "country": "PL",
>>> "site_id": 2,
>>> "cultures": [
>>>   "Szeletian",
>>>   "Early Upper Palaeolithic"
>>> ]
>>>   }
>>>
>>> cheers,
>>> Darek
>>>
>>> wtorek, 22 września 2020 o 12:21:02 UTC+2 saq.i...@gmail.com napisał(a):
>>>
 @Darek

 I've never used jsonmangler so I am unsure if you can get this done in 
 a singular expression.
 I do think something like this should work if your JSON is in a tiddler 
 called test

 <$list filter="[[test]indexes:all[]suffix[properties/name]]" 
 variable="index">

 <$list filter="[[test]getindex]">

 

  


 On Tuesday, September 22, 2020 at 11:21:57 AM UTC+2, Darek Bobak wrote:
>
>
> Is it possible to list all the values of the specified index in filter 
> expression? I would like to get all the values of the "name" (ie, 
> Albersdorf and Pfellnkofen) from the sample json tiddler:
>
> {
>   "type": "FeatureCollection",
>   "features": [
> {
>   "type": "Feature",
>   "properties": {
> "name": "Albersdorf",
> "type": "Open",
> "elevation": ""
>   },
>   "geometry": {
> "type": "Point",
> "coordinates": [
>   13.190206,
>   48.649078
> ]
>   }
> },
> {
>   "type": "Feature",
>   "properties": {
> "name": "Pfellnkofen",
> "type": "Open",
> "elevation": ""
>   },
>   "geometry": {
> "type": "Point",
> "coordinates": [
>   12.190206,
>   48.649078
> ]
>   }
> }
>   ]
> }
>
>
> best
> Darek
>


-- 
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/097d233c-6559-4d64-97d6-f1b4179626d7n%40googlegroups.com.


[tw5] Re: current DataTiddler ???

2020-09-23 Thread Eric Shulman
On Wednesday, September 23, 2020 at 1:59:09 AM UTC-7, Jean-Pierre Rivière 
wrote:
>
> ... how one could set a current data tiddler within a regular 
> tiddler/macro tiddler!
>

There are several widgets that can be used to set the value of 
<>.  One of the most frequently used is the $list widget.

For example, suppose you have several data tiddlers, each tagged with 
"MyData" and containing an index named "purpose" and another index named 
"priority"
Then, to list the purpose and priority for each data tiddler, you could 
write something like this:
<$list filter="[tag[MyData]]">
   <$link /> was created on <$view field="modified"/> for {{##purpose}} 
with a priority of {{##priority}}

or, you could create a template tiddler (e.g., "MyTemplate") containing:
<$link /> was created on <$view field="modified"/> for {{##purpose}} with a 
priority of {{##priority}}
and then invoke it via transclusion like this:
<$list filter="[tag[MyData]]"> {{||MyTemplate}} 

Another example...
suppose you have just one data tiddler named "MyData", and you want to show 
several index values from that tiddler.  Then, you could use the $tiddler 
widget, like this:
<$tiddler tiddler="MyData">
   <$link /> was created on <$view field="modified"/> for {{##purpose}} 
with a priority of {{##priority}}

or with the same template as defined above:
{{MyData||MyTemplate}}

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/2adc0c19-dd66-4928-a89b-b1002c1b0cebo%40googlegroups.com.


[tw5] [solved] Re: confused by URL generation

2020-09-23 Thread Jean-Pierre Rivière
marked the thread as [solved] (or tried to mark it so! ;-)

Le lundi 21 septembre 2020 à 00:30:48 UTC+2, Jean-Pierre Rivière a écrit :

> I want to generate URL. The aim would be to generate something like that:
> [[G8|https://www.w3.org/WAI/WCAG21/Techniques/general/G8]]
> [[H96|https://www.w3.org/WAI/WCAG21/Techniques/html/H96]]
>
> with G8 or H96 a input.
>
> At first, I tried 
>
> \define wcagTechUrl(ref)
> <$set name="place01" filter="[[$ref$]prefix[G]then[general]]">
> <$set name="place02" filter="[[$ref$]prefix[H]then[html]]">
> <$set name="url" filter="https://www.w3.org/WAI/WCAG21/Techniques/ 
> <> <> / $ref$ +[join[]]">
> [[$ref$|<>]] link to <>
> 
> \end
>
> and this gives me that kind of things : bug-01.jpeg
> * there is a G8 link but it links to #<>
> * the link outside of the "a" tag is treated as a link but only until 
> "Techniques/" corresponding to the URL I added during the join operation.
>
> I trie the following new code:
>
> \define wcagTechUrl(ref)
> <$set name="place01" filter="[[$ref$]prefix[G]then[general]]">
> <$set name="place02" filter="[[$ref$]prefix[H]then[html]]">
> <$set name="url" filter="https://www.w3.org/WAI/WCAG21/Techniques/ 
> <> <> / $ref$ +[join[]]">
> <$wikify name="urlw" type="text" text=<> >
> <>
> 
> 
> \end
> \define wcagTech(ref) [[$ref$|<>]] vers < $ref$>>
>
> which I use thus: <> and I get bug-02.jpeg
> * the macrocall widget is no better that the simple macro calling, same 
> result
> * but the printed url is shown as a complete URL, that which I want, and 
> redirect to that URL.
>
> So, I'm really confused. the URL in the [[ | ]] link syntax is always raw, 
> I can't use a macro or a variable to speicy it, which ruins my second 
> attempts and similar tries. And my first try was also very strange.
>
> Could a guru explain me waht's going on or how to do it properly please? 
> Many thanks in advance!!!
>
>
>
> but the result is that one
>
>

-- 
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/f7f72bcc-e448-46be-8ea6-d2a2ec749f39n%40googlegroups.com.


[tw5] current DataTiddler ???

2020-09-23 Thread Jean-Pierre Rivière
In the "Transclusion in WikiText" doc, it's wriiten:

{{##index}} transcludes a specified indexed property of the current 
DataTiddler

A data tiddler of that kind is a collection of "key:value" lines or a json 
text to the same purpose.

So, how could a data tiddler use {{##index}} ? I think it cannot (or that 
would be weird)

Then, since the ##index transclusion method cannot/shouldn't be used within 
a data tiddler, the very notion of "current data tiddler" seems completely 
out of order. So either {{##index}} should be forbidden or the explication 
state that it's of no use or... state how one could set a current data 
tiddler within a regular tiddler/macro tiddler!

Best 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a5a1da14-25ab-4cfd-9f37-9704394a19ccn%40googlegroups.com.


[tw5] Re: filter: replace with regexp?

2020-09-23 Thread Jean-Pierre Rivière
Thanks to an other post on the list, I've been able to solve my problem.

First, the solution: using the splitregexp filter operator!

example: (transform something like "SVR203" into "SVR")

<$set name="codeFamily" filter="[[$ref$]splitregexp[\d+]join[]]">

Now, the cause of my trouble: Looking for a regexp, I seartch into the 
string operators. Only had a glance at other operator afterwards. Missed 
that splitregexp operator in the middle of the first batch of operator 
(which have no general purpose given like strings operators for instance). 
Only saw the regexp operator, which was not what I needed.

Suggestion: the regexp operator notice could hint at the splitregexp 
operator!

Le mardi 22 septembre 2020 à 23:55:48 UTC+2, Jean-Pierre Rivière a écrit :

> I'd like to modify some titles via a filter using a regexp. More 
> precisely, I'd like to transform things like R42 or TH37 in R or TH.
>
> in bash I would do
> echo $title | sed -e 's/\d+$//'
>
> in TW I found rgexp to match titles but nothing to modify via a regexp. Or 
> anything that could be used for my purpose. How should I proceed?
>
> One I got those suffix like R or TH, I pla to use a dictionnary to 
> transform them into the bits of URL I am trying to build.
>
> In my previous attempts, I used the prefix operator, but this imply to 
> know the prefix. Here, I don't want to know it and so cannot use the prefix 
> operator.
>
> TIA!
>
>

-- 
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/0b14d8f7-157b-49a9-88ed-a9cf26579679n%40googlegroups.com.


[tw5] Re: confused by URL generation

2020-09-23 Thread Jean-Pierre Rivière
@Tones: Many thanks for this tip. I was not aware of such a use for the 
"target" attributes. This is indeed very appropriate to my use case! And to 
get it on a different tab, I can click with the middle mouse button. That's 
a winner!

Le mercredi 23 septembre 2020 à 07:16:27 UTC+2, TW Tones a écrit :

> Just a general suggestion;
>
> When providing a large number of links to similar resources on the same 
> external website/wiki I personally construct links based on the html a 
> element. The key reason is we have access to the target parameter.
>
> You still use similar techniques to create the links but the result can be 
> something like this;
>
> https://www.w3.org/WAI/WCAG21/Techniques/general/G8; *target=w3.org 
> *>G8
> https://www.w3.org/WAI/WCAG21/Techniques/html/H96 
> "
>  
> *target=w3.org *>H96
>
> The key advantage is it keeps opening in the same tab/window rather than 
> opening too many tabs/windows, yes one replaces the other but this can be 
> appropriate.
>
> Regards
> Tones
>
>
> On Monday, 21 September 2020 08:30:48 UTC+10, Jean-Pierre Rivière wrote:
>>
>> I want to generate URL. The aim would be to generate something like that:
>> [[G8|https://www.w3.org/WAI/WCAG21/Techniques/general/G8]]
>> [[H96|https://www.w3.org/WAI/WCAG21/Techniques/html/H96 
>> 
>> ]]
>>
>> with G8 or H96 a input.
>>
>> At first, I tried 
>>
>> \define wcagTechUrl(ref)
>> <$set name="place01" filter="[[$ref$]prefix[G]then[general]]">
>> <$set name="place02" filter="[[$ref$]prefix[H]then[html]]">
>> <$set name="url" filter="https://www.w3.org/WAI/WCAG21/Techniques/ 
>> <> <> / $ref$ +[join[]]">
>> [[$ref$|<>]] link to <>
>> 
>> \end
>>
>> and this gives me that kind of things : bug-01.jpeg
>> * there is a G8 link but it links to #<>
>> * the link outside of the "a" tag is treated as a link but only until 
>> "Techniques/" corresponding to the URL I added during the join operation.
>>
>> I trie the following new code:
>>
>> \define wcagTechUrl(ref)
>> <$set name="place01" filter="[[$ref$]prefix[G]then[general]]">
>> <$set name="place02" filter="[[$ref$]prefix[H]then[html]]">
>> <$set name="url" filter="https://www.w3.org/WAI/WCAG21/Techniques/ 
>> <> <> / $ref$ +[join[]]">
>> <$wikify name="urlw" type="text" text=<> >
>> <>
>> 
>> 
>> \end
>> \define wcagTech(ref) [[$ref$|<>]] vers <> $ref$>>
>>
>> which I use thus: <> and I get bug-02.jpeg
>> * the macrocall widget is no better that the simple macro calling, same 
>> result
>> * but the printed url is shown as a complete URL, that which I want, and 
>> redirect to that URL.
>>
>> So, I'm really confused. the URL in the [[ | ]] link syntax is always 
>> raw, I can't use a macro or a variable to speicy it, which ruins my second 
>> attempts and similar tries. And my first try was also very strange.
>>
>> Could a guru explain me waht's going on or how to do it properly please? 
>> Many thanks in advance!!!
>>
>>
>>
>> but the result is that one
>>
>>

-- 
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/a02d6456-cced-4159-a6ee-d83426266625n%40googlegroups.com.


Re: [tw5] Re: How to get simple balance spreadsheet in TiddlyWiki?

2020-09-23 Thread Atronoush Parsi
In the example in Shiraz if you click on the edit button (top left of
Table) you see the footer and you see it has some rows and calling to some
functions like <> or < ,...
These are the function calls to calculate sum of column values, maximum,
etc...

In my opinion Shiraz Dynamic Table is among the simplest! of course it is
NOT a spreadsheet.

If you failed, send me your wiki (remove your private data,...) and let me
have a look.

Atro


On Tue, Sep 22, 2020 at 5:14 PM Sapphireslinger 
wrote:

> Atronoush,
>
> Thank you! I used the example in your link to make my table:
>
> <$macrocall $name=table-dynamic filter="[tag[expense]]"
> class="table-hover-yellow" fields="date category description notes debit
> credit balance" class="table-center" stateTiddler="202002130935"
> caption="''Expenses''" footerRows="7"/>
>
> And successfully made 2 expense tiddlers with it. (For newbies: For
> instance, for one of the expense tiddlers I made a tiddler titled
> "2020.09.15" tagged "expense" and saved it. Then I was able to click in the
> table directly and add the info in the appropriate boxes. The info also
> automatically showed up back in the 2020.09.15 tiddler as fields.)
>
> *However, no footerRows are showing up.  :(*
>
> On Tuesday, September 22, 2020 at 8:25:41 PM UTC+8 Atronoush wrote:
>
>> As Ste advised one tool is Shiraz Dynamic table
>>
>> See example here:
>> https://kookma.github.io/TW-Shiraz/#demo%2Fdynamic-tables-numerical-summary
>>
>> Each item can be a tiddler with suitable fields. Then you can use a
>> Dynamic Table to summarize all and calculate the balance.
>> Shiraz has some good tutorials for dynamic tables.
>>
>> Atro
>>
>>
>>
>>
>> On Tue, Sep 22, 2020 at 3:44 PM Sapphireslinger 
>> wrote:
>>
>>> 1. Has anybody ever used Tiddlywiki to keep track of their daily
>>> expenses?
>>>
>>> 2. Is there a demo anywhere of a simple expense sheet with 6 columns for
>>> Date, Category, Description, Debit, Credit, Balance?
>>>
>>> I have looked at the links provided above more than once but can not
>>> seem to figure out how to make them work.
>>>
>>>
>>> On Thursday, May 14, 2020 at 8:52:47 PM UTC+8 Ste wrote:
>>>
 https://github.com/EvanBalster/TiddlyWikiFormula

 http://tiddlytables.tiddlyspot.com/

 https://kookma.github.io/TW-Shiraz/

 And more at https://dynalist.io/d/zUP-nIWu2FFoXH-oM7L7d9DM#q=Tables

 --
>>> 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/4bad96dc-35cf-4da3-8ebd-dda442db939cn%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/cd180930-b408-4375-b605-bea11e3ac45an%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/CAKHVXmqRiLi1J4UXQTuvX6Y0JPE2-zXCXKK9zaLUHaRASdvC7A%40mail.gmail.com.


[tw5] Re: New TiddlyTools time feature: **Interactive Calendar**

2020-09-23 Thread danraymond
Eric,

Thank you, solution works for me here also!



On Saturday, September 19, 2020 at 6:34:09 PM UTC+10, Eric Shulman wrote:
>
> On Friday, September 18, 2020 at 10:52:18 PM UTC-7, danraymond wrote:
>>
>> Happy to send to you privately. How to do that?
>>
>
> Dan,
>
> I got your file (sent privately)... and I've found (and fixed) the problem!
>
> The problem:
> As I previously suspected, this line was not working properly in your file:
> <$list filter="[adddivide[7]split[.]count[]match[1]]">
> 
>
> This filter checks to see if the current day number  (plus start of 
> month offset ) is evenly divisible by 7.  It does this by splitting 
> the number at the decimal point and then checking to see if there is only 
> one part (i.e., an integer value with no fractional remainder).
>
> The reason this doesn't work in your file is that your file has 
> $:/plugins/tobibeer/split installed.  This plugin, which was published long 
> ago (30th December 2015), defines a custom "split[...]" filter, while the 
> TWCore added its own built-in split[...] filter in version 5.1.20 (Released 
> 9th August 2019).  The difference between these two versions of split[...] 
> is that if the filter operand (i.e., a decimal point "[.]") does not exist 
> in the input, the TWCore version returns the input unchanged, while 
> tobibeer's version returns a blank result.  Thus, when my code uses 
> "split[.]count[]match[1]" to check for a whole number, the TWCore version 
> yields a count of 1, while tobibeer's version yields a count of 0.
>
> Unfortunately, tobibeer's plugin overrides the built-in version of 
> split[...].  As a result, the calendar never detects the "end of week" 
> condition, and no  is ever output and the entire month is shown in one 
> long line, rather than weekly rows.  To correct this, you might try just 
> removing tobibeer's plugin, but this could possibly break something else in 
> the other custom stuff you've installed if it depends on tobibeer's 
> split[...] filter.
>
> In any event, I've updated my code to make it compatible with both the 
> TWCore and tobibeer's plugin, by using the following:
> <$list filter="[adddivide[7]split[.]count[]!match[2]]">
> 
> (i.e., check to see if the calculation *doesn't have 2 parts*, rather 
> than checking to see if it *only has 1 part*)
>
> I used this same code pattern in a few places (Calendar, Clocks, and 
> Alarms), so I've updated all three of those tiddlers.
>
> The latest revision is now posted at http://TiddlyTools.com/timer.html.  
> Please download the fixes and confirm that the calendar display in your 
> document now works as its supposed to.
>
> 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/c00b790d-8978-48f8-b622-724ad43b4823o%40googlegroups.com.