[tw5] Re: ISO week date format template

2021-09-10 Thread Charlie Veniot
G'day,

Just to get the conversation started, try this in a new tiddler in some 
tiddlywiki:

<$vars dateNow= <>>

{{{ 
[search-replace:[Mon],[1]search-replace:[Tue],[2]search-replace:[Wed],[3]search-replace:[Thu],[4]search-replace:[Fri],[5]search-replace:[Sat],[6]search-replace:[Thu],[7]]
 
}}}



On Thursday, September 9, 2021 at 4:57:30 PM UTC-3 J N wrote:

> A correction of the example given for a week date in TiddlyWiki is that 
> the template should use the w token for the ISO week-numbering year, 
> not , since weeks may cross the traditional year boundary with some 
> days of the week falling outside the year the week belongs to. It is a bit 
> surprising that the final element of the week day number is missing when 
> the other parts of the ISO standard are supported.
>
> torsdag 9 september 2021 kl. 21:31:46 UTC+2 skrev J N:
>
>> I would like to use the ISO week date format for the title of new journal 
>> tiddlers and elsewhere, since I find it practical to be aware of the week 
>> day in combination with a sortable date format.
>>
>> https://en.wikipedia.org/wiki/ISO_8601#Week_dates
>> -Www-D or WwwD
>>
>> E.g. 2021-w36-4 for thursday of week 36, 2021-09-09.
>>
>> I can not see a way to get the week day number in the built in date 
>> format tokens.
>>
>> https://tiddlywiki.com/#DateFormat
>>
>> The closest I've got is -W0WW-ddd, but that renders as 2021-W36-Thu, 
>> which will not sort alphanumerically in date order like an ISO date would.
>>
>> I can see that the template tokens are implemented in a system tiddler 
>> named $:/core/modules/utils/utils.js.
>>
>> Getting the day of week is trivial in JavaScript, e.g. adding a token 
>> matching a single "D" for this:
>>
>> [/^D/, function() {
>> return date.getDay() || 7;
>> }]
>>
>> The utils.js tiddler seems to contain a lot of other stuff however, and I 
>> guess local changes would have to be merged on achieving updates of 
>> TiddlyWiki.
>>
>> Maybe there are other ways to achieve custom date formatting of this kind 
>> in TiddlyWiki?
>>
>

-- 
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/8698d89e-e3c4-4e35-b7a5-20fc61f5e9c1n%40googlegroups.com.


[tw5] Re: Very basic EditTextWidget tutorial and how I often specify target tiddler name

2021-09-10 Thread Charlie Veniot
Thank-you for the 5.2.0 info !

I added info about that in the comments section of the video.

On Friday, September 10, 2021 at 5:37:18 PM UTC-3 amreus wrote:

> Simplified work-flow videos like this would have shortened my TiddlyWiki 
> learning curve considerably. Please keep it up if you can. 
>
> Note that in 5.2.0 the EditTextWidget *can* edit fields in the same 
> tiddler as the widget without losing focus. 
>
> On Friday, September 10, 2021 at 2:43:05 AM UTC-4 strikke...@gmail.com 
> wrote:
>
>> Please Charlie, do not be harsh on yourself. You do know, that videos 
>> about Tiddlywiki and what we can do in tiddlywiki is our all time 
>> favourites.
>> I like that you are creating several smaller videos on the subject, that 
>> makes it easier to understand and follow - and keep up the concentration. 
>> That makes it easier for me - and I would guess others  - suffering some 
>> degree of a language barrier. 
>>
>>
>> On Friday, September 10, 2021 at 5:23:23 AM UTC+2 cj.v...@gmail.com 
>> wrote:
>>
>>> https://youtu.be/qOJc2sFiPd8
>>>
>>> Not much of an award-winning video.  Although I really don't like 
>>> recording myself, I strangely had fun doing this one.
>>>
>>> Maybe because I wasn't tripping all over myself quite as badly as my 
>>> norm.  Well, the outtakes of my first three tries would prove otherwise...
>>>
>>

-- 
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/6c348bb6-6c02-43d0-911d-793c1cf3e97cn%40googlegroups.com.


[tw5] Re: Very basic EditTextWidget tutorial and how I often specify target tiddler name

2021-09-10 Thread amreus
Simplified work-flow videos like this would have shortened my TiddlyWiki 
learning curve considerably. Please keep it up if you can. 

Note that in 5.2.0 the EditTextWidget *can* edit fields in the same tiddler 
as the widget without losing focus. 

On Friday, September 10, 2021 at 2:43:05 AM UTC-4 strikke...@gmail.com 
wrote:

> Please Charlie, do not be harsh on yourself. You do know, that videos 
> about Tiddlywiki and what we can do in tiddlywiki is our all time 
> favourites.
> I like that you are creating several smaller videos on the subject, that 
> makes it easier to understand and follow - and keep up the concentration. 
> That makes it easier for me - and I would guess others  - suffering some 
> degree of a language barrier. 
>
>
> On Friday, September 10, 2021 at 5:23:23 AM UTC+2 cj.v...@gmail.com wrote:
>
>> https://youtu.be/qOJc2sFiPd8
>>
>> Not much of an award-winning video.  Although I really don't like 
>> recording myself, I strangely had fun doing this one.
>>
>> Maybe because I wasn't tripping all over myself quite as badly as my 
>> norm.  Well, the outtakes of my first three tries would prove otherwise...
>>
>

-- 
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/db649e50-cc4b-46c1-a95a-7c7a344b5ff7n%40googlegroups.com.


Re: [tw5] Re: How to start TW5 with sidebar collapsed

2021-09-10 Thread CJ Veniot
Yeah, that tiddler is in my attachment.  Just needs an unrelated line taken
out.

On Fri, Sep 10, 2021 at 4:30 PM Stefan H.  wrote:

> Hello,
>
> put the line
> <$action-setfield $tiddler="$:/state/sidebar" text="no" />
>
> in a tiddler with the label "$:/tags/StartupAction" .
>
> Greetings
>
> Faber schrieb am Freitag, 10. September 2021 um 19:18:34 UTC+2:
>
>> Hello, it's possible to start TW5 with sidebar collapsed, or autclick the
>> "hide sidebar" when TW5 is opening?
>>
>> Thanks!
>>
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/yaNmbvE9104/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/7d33358c-f899-48be-a2a0-f49c5a0ed70fn%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/CAMu8EfOe%2BRexpNXAdpR0BLXadmRKB0ZaBYQ9Tak%2BS12zMYcB-Q%40mail.gmail.com.


[tw5] Re: How to start TW5 with sidebar collapsed

2021-09-10 Thread Stefan H.
Hello,

put the line
<$action-setfield $tiddler="$:/state/sidebar" text="no" />

in a tiddler with the label "$:/tags/StartupAction" .

Greetings

Faber schrieb am Freitag, 10. September 2021 um 19:18:34 UTC+2:

> Hello, it's possible to start TW5 with sidebar collapsed, or autclick the 
> "hide sidebar" when TW5 is opening?
>
> 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/7d33358c-f899-48be-a2a0-f49c5a0ed70fn%40googlegroups.com.


[tw5] Re: How to start TW5 with sidebar collapsed

2021-09-10 Thread strikke...@gmail.com
It is possible - just go to Hide Sidebar On Startup 
 . 
You will find the necessary tiddlers and explanation there.

On Friday, September 10, 2021 at 7:18:34 PM UTC+2 Faber wrote:

> Hello, it's possible to start TW5 with sidebar collapsed, or autclick the 
> "hide sidebar" when TW5 is opening?
>
> 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/34ddb1b4-c1c2-4556-beff-f81b77b68e58n%40googlegroups.com.


[tw5] Re: How to start TW5 with sidebar collapsed

2021-09-10 Thread Charlie Veniot
Hello,

Sorry, just taking a quick break at work, so no time to explain details.

Please download and drag the attachment into some tiddlywiki, take a look 
at the one tiddler and alter for your needs.

Cheers!

On Friday, September 10, 2021 at 2:18:34 PM UTC-3 Faber wrote:

> Hello, it's possible to start TW5 with sidebar collapsed, or autclick the 
> "hide sidebar" when TW5 is opening?
>
> 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/c4a665c2-3916-4c4c-825b-aea54a158e25n%40googlegroups.com.


Startup Actions.json
Description: application/json


[tw5] How to start TW5 with sidebar collapsed

2021-09-10 Thread Faber
Hello, it's possible to start TW5 with sidebar collapsed, or autclick the 
"hide sidebar" when TW5 is opening?

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/f3e24165-1f69-433b-b858-b76a9f020b60n%40googlegroups.com.


[tw5] Re: How to make multiple "reveals" in one tiddler so that they work independently?

2021-09-10 Thread Eric Shulman


If there were were simple quotes around the filter, then it would be 
treated as a literal text value. The triple braces indicate that the 
parameter is using a “filtered transclusion” (aka, “inline filter”) and 
needs to be processed to get it’s actual value.

Note that, when used in normal wikitext content, the results of a filtered 
transclusion can return multiple values that are treated as a list of 
links. However, when a filtered transclusion is used as parameter in a 
$widget, only the first item in the list is used as the parameter value.

To see the difference, put the following content into a tiddler at 
http://TiddlyWiki.com …
{{{ [tag[HelloThere]] }}}

<$text text={{{ [tag[HelloThere]] }}}/> 

-e
On Friday, September 10, 2021 at 3:22:52 AM UTC-7 Petri M. wrote:

> Oh my god THANK YOU this was driving me nuts. I read that the popups are 
> dismissed on click but I thought that you need to click the popup itself to 
> dismiss it and I just never realised that you really do not have to.
>
> Just one question, if I understand correclty the setTo=... is just a 
> filter that checks whether the value of test1 is "hide", if it is, it 
> outputs "show", if not then it outputs "hide". However, why do we need the 
> triple braces around the filter? 
>
> BR,
> Petri
>
> On Thursday, September 9, 2021 at 4:31:19 PM UTC+3 Eric Shulman wrote:
>
>> On Thursday, September 9, 2021 at 2:56:13 AM UTC-7 Petri M. wrote:
>>
>>> I can't figure this one out. So, I have a sidebar search tiddler where I 
>>> want to show three different kinds of searches at the same time but I want 
>>> each of them to be collapsable for easy navigation. I got everything else 
>>> working fine but I cannot figure out how to get them to collapse and expand 
>>> independently.
>>>
>>
>> Popups are intended to* appear only when the corresponding state tiddler 
>> has a value* and the TWCore system *automatically dismisses popups when 
>> it detects a click elsewhere.*
>>
>> However, your goal is to have an "anti-popup" that has the inverse 
>> behavior... i.e., it defaults to being visible unless the state tiddler 
>> value is set by a button click, and then remains that way until the button 
>> is clicked again.  The solution is to *not use popups at all.*  Instead, 
>> you want the button to simply toggle the state tiddler between blank and 
>> non-blank and then use that value to determine when to show the associated 
>> content.
>>
>> Here's one way to write this using set/setTo and a "filtered 
>> transclusion" to calculate the desired state value:
>>
>> <$button class="sidebar-collapsible" 
>> selectedClass="sidebar-collapsible-onclick"
>>set="test1" setTo={{{ [{test1}match[hide]then[show]else[hide]] 
>> }}}>Title matches:
>> <$reveal state="test1" type="nomatch" text="hide"> ... t1 
>>
>> <$button class="sidebar-collapsible" 
>> selectedClass="sidebar-collapsible-onclick"
>>set="test2" setTo={{{ [{test2}match[hide]then[show]else[hide]] 
>> }}}>Title matches:
>> <$reveal state="test2" type="nomatch" text="hide"> ... t2 
>>
>> Note: The current value of the state tiddlers will be retained when you 
>> save your file.  However, if you want the state tiddlers to be reset when 
>> you save the file, *name them starting with "$:/state/popup/"*.  By 
>> default, tiddlers with that prefix are not retained when the file is saved.
>>
>> 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/53721910-ad92-4c66-8266-075a2548cfdcn%40googlegroups.com.


[tw5] Re: tw editions and docker questions

2021-09-10 Thread PMario
Hi, 

It would be nice to have some links to the docker file and docs that you 
used. ... Your docker start commands look super strange. 

> docker run -d --rm tiddock wiki --init fr-FR-server
> docker run -d --rm tiddock server host=0.0.0.0

That's not how it should be done. ... the fr-FR-server  is ONLY used for 
development, since it contains an includeWikis parameter, that includes the 
French wiki translatiions and it includes the english original wiki content 
as "read only". ... So  that's a complete m

The whole TW initialisation of your wiki folders should be done with the 
docker build commands. 

The commands you posted won't work at all. The complete volume info is 
missing. ... 

As I wrote, if you give a link to the docker build file it would be easier 
to help. 

-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/7e5591d8-3ae7-4c54-ab56-03b13274dbe2n%40googlegroups.com.


[tw5] Re: How to make multiple "reveals" in one tiddler so that they work independently?

2021-09-10 Thread Petri M.
Oh my god THANK YOU this was driving me nuts. I read that the popups are 
dismissed on click but I thought that you need to click the popup itself to 
dismiss it and I just never realised that you really do not have to.

Just one question, if I understand correclty the setTo=... is just a filter 
that checks whether the value of test1 is "hide", if it is, it outputs 
"show", if not then it outputs "hide". However, why do we need the triple 
braces around the filter? 

BR,
Petri

On Thursday, September 9, 2021 at 4:31:19 PM UTC+3 Eric Shulman wrote:

> On Thursday, September 9, 2021 at 2:56:13 AM UTC-7 Petri M. wrote:
>
>> I can't figure this one out. So, I have a sidebar search tiddler where I 
>> want to show three different kinds of searches at the same time but I want 
>> each of them to be collapsable for easy navigation. I got everything else 
>> working fine but I cannot figure out how to get them to collapse and expand 
>> independently.
>>
>
> Popups are intended to* appear only when the corresponding state tiddler 
> has a value* and the TWCore system *automatically dismisses popups when 
> it detects a click elsewhere.*
>
> However, your goal is to have an "anti-popup" that has the inverse 
> behavior... i.e., it defaults to being visible unless the state tiddler 
> value is set by a button click, and then remains that way until the button 
> is clicked again.  The solution is to *not use popups at all.*  Instead, 
> you want the button to simply toggle the state tiddler between blank and 
> non-blank and then use that value to determine when to show the associated 
> content.
>
> Here's one way to write this using set/setTo and a "filtered transclusion" 
> to calculate the desired state value:
>
> <$button class="sidebar-collapsible" 
> selectedClass="sidebar-collapsible-onclick"
>set="test1" setTo={{{ [{test1}match[hide]then[show]else[hide]] 
> }}}>Title matches:
> <$reveal state="test1" type="nomatch" text="hide"> ... t1 
>
> <$button class="sidebar-collapsible" 
> selectedClass="sidebar-collapsible-onclick"
>set="test2" setTo={{{ [{test2}match[hide]then[show]else[hide]] 
> }}}>Title matches:
> <$reveal state="test2" type="nomatch" text="hide"> ... t2 
>
> Note: The current value of the state tiddlers will be retained when you 
> save your file.  However, if you want the state tiddlers to be reset when 
> you save the file, *name them starting with "$:/state/popup/"*.  By 
> default, tiddlers with that prefix are not retained when the file is saved.
>
> 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/c35dc1d9-e69d-4193-bb69-94010a20bda5n%40googlegroups.com.