[tw5] Re: Keyboard shortcut: close tiddler

2021-05-01 Thread PMario
Hi,
Make sure, that the cursor is in the text area. Then try ctrl-Enter. If it 
doesn't work check your plugins, if one of them may change the keyboard 
handling.

There is no shortcut to delete a tiddler. We try to avoid loosing data 
accidentally. At the moment there is no mechanism, that selects tiddlers in 
the story river. If several tiddlers are open, you can't be sure which one 
will be deleted.

-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/0e70f80b-610f-43d8-9f9a-9a7a5bf533cdn%40googlegroups.com.


[tw5] Keyboard shortcut: close tiddler

2021-05-01 Thread Rika Sukenik
hey all, I've set the keyboard shortcut to save a tiddler, but it's not 
working. Has anyone experienced issues with shortcuts? Also, is there a 
shortcut for deleting a tiddler? (I didn't see it in the keyboard shortcuts 
menu in settings). 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/886d3dbc-22d2-4d42-b9e9-3c12935868c4n%40googlegroups.com.


Re: [tw5] Looking for reading material: using javascript libraries in TiddlyWiki

2021-05-01 Thread Brian Theado
https://btheado.github.io/tw-widget-tutorial/ - this is another resource.
It is focused specifically on widgets and doesn't cover any of the other
integration points mentioned by Jeremy. When I wrote it, I ran out of steam
by the time I got to the third-party javascript integration and so there
isn't much there to help answer Charlie's original question. But there are
a few example libraries integrated there.

For the tutorial, I use the innerwiki widget which makes it into a live
playground even for the javascript. You can modify the javascript tiddlers
in the outer wiki and see immediate updates in the innerwikis. In fact, I
developed the entire tutorial inside the browser. If you learn well by
making small modifications to already working code, then it should suit you
well.

On Sat, May 1, 2021 at 3:16 PM PMario  wrote:

> On Saturday, May 1, 2021 at 7:31:35 PM UTC+2 Mark S. wrote:
>
> But if I want to use JS in TW, I'm reduced to maybe two paragraphs of
>> explanatory material. The only documentation I ever found was by (?) Chris
>> Hunt, which pages have now disappeared except on archive. The code examples
>> no longer match existing core.
>>
>
> https://tiddlywiki.com/dev/ is still a very good overview about how TW is
> built.
>
>
>> After 5 years, it would really be great to have a bit of documentation
>> for those of us who understand JS but need some hand-holding for the TW-JS
>> gap.
>>
>
> There are some early TW hangouts, that discuss the internal structure in
> detail.
> Especially No 10 https://www.youtube.com/watch?v=o70TtNIe-L4 which is 2h
> core design and code only.
>
> have fun!
> 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/1bb2059c-4a77-430c-bdb9-e3b052e2b028n%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/CAO5X8CxkOX5jZuqBmJTaOd%2Bh17nEVwwwQNHgOpQObdQG-pT26A%40mail.gmail.com.


Re: [tw5] Re: Links or Backlinks

2021-05-01 Thread Mohammad Rahmani
Big forgotten step in previous post!

You need to add Shiraz to tiddlywiki.com to have the dynamic tables working

*So do this before step 4:* drag and drop from
https://kookma.github.io/TW-Shiraz

Best wishes
Mohammad


On Sun, May 2, 2021 at 12:53 AM Mohammad Rahmani 
wrote:

> More funs
>
> 1. go to tiddlywiki.com
> 2. download attached references
> 3. drag and drop into tiddlywiki.com
> 4. See every tiddler with a very nice reference section with a dynamic
> table showing references (links and backlinks). It shows on demand.
>
> Kudos goes to Soren!
>
> Screenshot
>
>
> [image: image.png]
>
>
> Best wishes
> Mohammad
>
>
> On Sun, May 2, 2021 at 12:36 AM Charlie Veniot 
> wrote:
>
>> I'm in a TiddlyWiki programming mood today.
>>
>> You already have a beautifully concise solution, so I'm just sharing
>> this, solution to a somewhat different problem, for the coding fun of it:
>>
>> <$vars Tiddler1={{Sample Tiddler A!!title}}
>>OtherTiddlers="Sample Tiddler Z;Sample Tiddler B;Sample Tiddler D"
>> >
>> 
>> <$list variable="TiddlerX" filter="[split[;]sort[]]">
>> 
>> <$link to=<>/>
>> 
>> <$text text={{{ [links[]matchthen[-->]]
>> [links[]matchthen[<--]] }}}/>
>> 
>> <$link to=<>/>
>> 
>> 
>> 
>> 
>> 
>>
>> [image: Screenshot 2021-05-01 5.04.16 PM.png]
>>
>> On Saturday, May 1, 2021 at 4:13:48 PM UTC-3 Mohammad wrote:
>>
>>> On Sat, May 1, 2021 at 11:10 PM si  wrote:
>>>
 Not sure if it's the simplest solution, but does this do what you want?

 {{{ [links[]match[Sample tiddler]then[Is a link]else[Is
 a backlink]] }}}

>>>
>>>
>>> Works! Thank you!
>>>
>>>
>>>


 On Saturday, 1 May 2021 at 18:47:42 UTC+1 Mohammad wrote:

> I have a sample tiddler. It is a link or a backlink in my current
> Tiddler, but I do not know this is in advance!
>
> What is the simplest solution to find if this sample tiddler is link
> or backlink with regard to my currentTiddler?
>
>
> Best wishes
> 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+...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/tiddlywiki/aa0184f6-28ce-486d-9832-2c3835cb52adn%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/f1d38ee7-9689-4a4e-9f56-0ec98a2c557fn%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/CAAV1gMBy2mcHmf%2BNAmDZNVFPXCgW7xVmHHn2HwfVgLLVhNdSdQ%40mail.gmail.com.


Re: [tw5] Re: Links or Backlinks

2021-05-01 Thread Mohammad Rahmani
More funs

1. go to tiddlywiki.com
2. download attached references
3. drag and drop into tiddlywiki.com
4. See every tiddler with a very nice reference section with a dynamic
table showing references (links and backlinks). It shows on demand.

Kudos goes to Soren!

Screenshot


[image: image.png]


Best wishes
Mohammad


On Sun, May 2, 2021 at 12:36 AM Charlie Veniot  wrote:

> I'm in a TiddlyWiki programming mood today.
>
> You already have a beautifully concise solution, so I'm just sharing this,
> solution to a somewhat different problem, for the coding fun of it:
>
> <$vars Tiddler1={{Sample Tiddler A!!title}}
>OtherTiddlers="Sample Tiddler Z;Sample Tiddler B;Sample Tiddler D" >
> 
> <$list variable="TiddlerX" filter="[split[;]sort[]]">
> 
> <$link to=<>/>
> 
> <$text text={{{ [links[]matchthen[-->]]
> [links[]matchthen[<--]] }}}/>
> 
> <$link to=<>/>
> 
> 
> 
> 
> 
>
> [image: Screenshot 2021-05-01 5.04.16 PM.png]
>
> On Saturday, May 1, 2021 at 4:13:48 PM UTC-3 Mohammad wrote:
>
>> On Sat, May 1, 2021 at 11:10 PM si  wrote:
>>
>>> Not sure if it's the simplest solution, but does this do what you want?
>>>
>>> {{{ [links[]match[Sample tiddler]then[Is a link]else[Is
>>> a backlink]] }}}
>>>
>>
>>
>> Works! Thank you!
>>
>>
>>
>>>
>>>
>>> On Saturday, 1 May 2021 at 18:47:42 UTC+1 Mohammad wrote:
>>>
 I have a sample tiddler. It is a link or a backlink in my current
 Tiddler, but I do not know this is in advance!

 What is the simplest solution to find if this sample tiddler is link or
 backlink with regard to my currentTiddler?


 Best wishes
 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+...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/aa0184f6-28ce-486d-9832-2c3835cb52adn%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/f1d38ee7-9689-4a4e-9f56-0ec98a2c557fn%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/CAAV1gMAViZQm0p%2BvJQf0fB7-T_xBgCdp5ZL%2B1L0tBXUoaFiMyA%40mail.gmail.com.


references.json
Description: application/json


Re: [tw5] Re: Links or Backlinks

2021-05-01 Thread Mohammad
Very nice solution indeed!
You may use TW-Icons to set beautiful icons instead of  --> <--

Thank you!

On Sunday, May 2, 2021 at 12:36:24 AM UTC+4:30 cj.v...@gmail.com wrote:

> I'm in a TiddlyWiki programming mood today.


I love programming too! 

>
> You already have a beautifully concise solution, so I'm just sharing this, 
> solution to a somewhat different problem, for the coding fun of it:
>


Put this as a ViewTemplate in tiddlywik.com using 
filter="[all[current]links[]] [all[current]backlinks[]]" and then see the 
nice table at the bottom of each tiddler!

I got the original idea from Zettelkasten by Soren!
 

>
> <$vars Tiddler1={{Sample Tiddler A!!title}}
>OtherTiddlers="Sample Tiddler Z;Sample Tiddler B;Sample Tiddler D" >
> 
> <$list variable="TiddlerX" filter="[split[;]sort[]]">
> 
> <$link to=<>/>
> 
> <$text text={{{ [links[]matchthen[-->]] 
> [links[]matchthen[<--]] }}}/>
> 
> <$link to=<>/>
> 
> 
> 
> 
> 
>
> [image: Screenshot 2021-05-01 5.04.16 PM.png]
>
> On Saturday, May 1, 2021 at 4:13:48 PM UTC-3 Mohammad wrote:
>
>> On Sat, May 1, 2021 at 11:10 PM si  wrote:
>>
>>> Not sure if it's the simplest solution, but does this do what you want?
>>>
>>> {{{ [links[]match[Sample tiddler]then[Is a link]else[Is 
>>> a backlink]] }}}
>>>
>>
>>
>> Works! Thank you! 
>>
>>  
>>
>>>
>>>
>>> On Saturday, 1 May 2021 at 18:47:42 UTC+1 Mohammad wrote:
>>>
 I have a sample tiddler. It is a link or a backlink in my current 
 Tiddler, but I do not know this is in advance!

 What is the simplest solution to find if this sample tiddler is link or 
 backlink with regard to my currentTiddler?


 Best wishes
 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+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/aa0184f6-28ce-486d-9832-2c3835cb52adn%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/013ebe40-e347-43b4-89bb-9d19eb3688afn%40googlegroups.com.


Re: [tw5] Re: Links or Backlinks

2021-05-01 Thread Charlie Veniot
I'm in a TiddlyWiki programming mood today.

You already have a beautifully concise solution, so I'm just sharing this, 
solution to a somewhat different problem, for the coding fun of it:

<$vars Tiddler1={{Sample Tiddler A!!title}}
   OtherTiddlers="Sample Tiddler Z;Sample Tiddler B;Sample Tiddler D" >

<$list variable="TiddlerX" filter="[split[;]sort[]]">

<$link to=<>/>

<$text text={{{ [links[]matchthen[-->]] 
[links[]matchthen[<--]] }}}/>

<$link to=<>/>






[image: Screenshot 2021-05-01 5.04.16 PM.png]

On Saturday, May 1, 2021 at 4:13:48 PM UTC-3 Mohammad wrote:

> On Sat, May 1, 2021 at 11:10 PM si  wrote:
>
>> Not sure if it's the simplest solution, but does this do what you want?
>>
>> {{{ [links[]match[Sample tiddler]then[Is a link]else[Is a 
>> backlink]] }}}
>>
>
>
> Works! Thank you! 
>
>  
>
>>
>>
>> On Saturday, 1 May 2021 at 18:47:42 UTC+1 Mohammad wrote:
>>
>>> I have a sample tiddler. It is a link or a backlink in my current 
>>> Tiddler, but I do not know this is in advance!
>>>
>>> What is the simplest solution to find if this sample tiddler is link or 
>>> backlink with regard to my currentTiddler?
>>>
>>>
>>> Best wishes
>>> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/aa0184f6-28ce-486d-9832-2c3835cb52adn%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/f1d38ee7-9689-4a4e-9f56-0ec98a2c557fn%40googlegroups.com.


Re: [tw5] Looking for reading material: using javascript libraries in TiddlyWiki

2021-05-01 Thread PMario
On Saturday, May 1, 2021 at 7:31:35 PM UTC+2 Mark S. wrote:

But if I want to use JS in TW, I'm reduced to maybe two paragraphs of 
> explanatory material. The only documentation I ever found was by (?) Chris 
> Hunt, which pages have now disappeared except on archive. The code examples 
> no longer match existing core.
>

https://tiddlywiki.com/dev/ is still a very good overview about how TW is 
built.
 

> After 5 years, it would really be great to have a bit of documentation for 
> those of us who understand JS but need some hand-holding for the TW-JS gap.
>

There are some early TW hangouts, that discuss the internal structure in 
detail. 
Especially No 10 https://www.youtube.com/watch?v=o70TtNIe-L4 which is 2h 
core design and code only. 

have fun!
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/1bb2059c-4a77-430c-bdb9-e3b052e2b028n%40googlegroups.com.


Re: [tw5] Re: Links or Backlinks

2021-05-01 Thread Mohammad Rahmani
On Sat, May 1, 2021 at 11:10 PM si  wrote:

> Not sure if it's the simplest solution, but does this do what you want?
>
> {{{ [links[]match[Sample tiddler]then[Is a link]else[Is a
> backlink]] }}}
>


Works! Thank you!



>
>
> On Saturday, 1 May 2021 at 18:47:42 UTC+1 Mohammad wrote:
>
>> I have a sample tiddler. It is a link or a backlink in my current
>> Tiddler, but I do not know this is in advance!
>>
>> What is the simplest solution to find if this sample tiddler is link or
>> backlink with regard to my currentTiddler?
>>
>>
>> Best wishes
>> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/aa0184f6-28ce-486d-9832-2c3835cb52adn%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/CAAV1gMAZNBDFsCH_Vhe61nRe-E-c%2B95PRy3WW7rnZ2X1nGN%3DNQ%40mail.gmail.com.


[tw5] Re: Links or Backlinks

2021-05-01 Thread si
Not sure if it's the simplest solution, but does this do what you want?

{{{ [links[]match[Sample tiddler]then[Is a link]else[Is a 
backlink]] }}}

On Saturday, 1 May 2021 at 18:47:42 UTC+1 Mohammad wrote:

> I have a sample tiddler. It is a link or a backlink in my current Tiddler, 
> but I do not know this is in advance!
>
> What is the simplest solution to find if this sample tiddler is link or 
> backlink with regard to my currentTiddler?
>
>
> Best wishes
> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/aa0184f6-28ce-486d-9832-2c3835cb52adn%40googlegroups.com.


[tw5] Links or Backlinks

2021-05-01 Thread Mohammad Rahmani
I have a sample tiddler. It is a link or a backlink in my current Tiddler,
but I do not know this is in advance!

What is the simplest solution to find if this sample tiddler is link or
backlink with regard to my currentTiddler?


Best wishes
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMC2GA49fx5fHMD%2BPK-pwm4%3DwsDPpf73R%3DxDN-qDNhA5WA%40mail.gmail.com.


[tw5] Re: Default Tiddler Configuration

2021-05-01 Thread Charlie Veniot
Hello again,

If I were setting up to do what I think you're looking for, I would use Code 
Pattern: Missing Tiddlers Manager 
 as my starting 
point, likely placing the manager in the sidebar.

If had had a variety of default content for different kinds of tiddlers, I 
think I'd have a series of buttons for each missing tiddler, one "create 
this  tiddler with these defaults" button for each type of tiddler I'd want 
to create, for every missing tiddler.

Something like that.

On Saturday, May 1, 2021 at 11:23:13 AM UTC-3 Charlie Veniot wrote:

> BTW, apologies, I posted before seeing PMario's post.  I'm going into 
> slightly different directions, although we both seem to be leaning towards: 
> you need a button.
>
> On Saturday, May 1, 2021 at 11:01:36 AM UTC-3 Álvaro wrote:
>
>> I don't know if I understand you.
>>
>> When you click in a link you got the tiddler or the empty template of 
>> tiddler, that Mario has shown you.
>>
>> I think that an alternative for it to work with the links, you would have 
>> to use the LinkCatcherWidget 
>>  but I don't have 
>> much idea how it works. Maybe it doesn't work. 
>>
>> El sábado, 1 de mayo de 2021 a las 15:37:39 UTC+2, cj.v...@gmail.com 
>> escribió:
>>
>>> Alternatively, you could add a new button to the tiddler "ViewToolbar" 
>>> that, when clicked after save of your tiddler, finds all links in the text 
>>> of the tiddler that are links to tiddlers that do not yet exist, and then 
>>> creates each one of those tiddlers with default values.  Assuming every 
>>> single new tiddler you ever create gets the same defaults.
>>>
>>> If different tiddlers get different defaults, then you would want the 
>>> links to have something in the tiddler titles to say what kind of tiddlers 
>>> they are.
>>>
>>> For example:
>>>
>>>- [[John Doe s]] to indicate student
>>>- [[John Doe t]] to indicate teacher
>>>- [[Physics 101 c]] to indicate class
>>>- [[D232 cr]] to indicate class room
>>>
>>> So the button goes through each link in the tiddler, determines whether 
>>> or not the tiddler related to the link exists.  If the link is to a tiddler 
>>> that does not exist, then get the last part of the tiddler title to 
>>> determine tiddler "type", and create that tiddler with all of the default 
>>> values for that type.
>>>
>>> On Saturday, May 1, 2021 at 10:28:23 AM UTC-3 Charlie Veniot wrote:
>>>
 G'day Jax,

 Transclusion and transclusion templates might be your friend here.

 Instead of typing into a tiddler links [[like this]], type them in {{ 
 like this || *setAsType* }}.

 Setup *setAsType* so that if the transcluded tiddler does not exist, 
 the result: place a button to create that tiddler (*Tip*: Set class to 
 tc-btn-invisible tc-tiddlylink to have a button look like an internal 
 link) 
 with whatever default values, and then open that tiddler.  If the tiddler 
 does exist, then never mind the button and instead show a simple link to 
 the tiddler.

 You could then have all sorts of tiddler templates to create tiddlers 
 with default content.  setAsStudent, setAsTeacher, setAsClass, 
 setAsClassRoom ...

 If access to backlinks is an issue, then consider Just a neat use of 
 Relinks "References" feature 
  as 
 an alternative way to get backlinks.


 On Thursday, April 29, 2021 at 2:12:46 PM UTC-3 isd196...@gmail.com 
 wrote:

> Hello.
>
> Thanks to posts in this group I have been able to create new buttons 
> that are used to create various custom Tiddlers. These are simple and 
> work 
> very well, however I would like to take this one stage further.
>
> The vast majority of my new Tiddlers are created via standard square 
> bracket links in text that are added on the fly and then clicked to 
> create 
> the new Tiddler.
>
> What I want is for those new Tiddlers that are created by clicking on 
> links in text, to be created with some text already in them. I'm not 
> worried about adding tags at this stage.
>
> Is there a system default Tiddler (or some other mechanism) that I can 
> edit or create so that ALL Tiddlers created when clicking on a text link 
> will have my default text in them?
>
> Many thanks for your time
>
> Jax
>
>
>

-- 
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/f9b156a6-31a3-4f5f-be30-45e89a2ae890n%40googlegroups.com.


Re: [tw5] Looking for reading material: using javascript libraries in TiddlyWiki

2021-05-01 Thread 'Mark S.' via TiddlyWiki
If I want to learn about javascript or tools made with it, there are reams 
of documents and tutorials. They are almost all node based.

But if I want to use JS in TW, I'm reduced to maybe two paragraphs of 
explanatory material. The only documentation I ever found was by (?) Chris 
Hunt, which pages have now disappeared except on archive. The code examples 
no longer match existing core.

Trying to clone existing code and hoping that you guess right is like 
building a ship in a bottle. In the dark.

After 5 years, it would really be great to have a bit of documentation for 
those of us who understand JS but need some hand-holding for the TW-JS gap.

On Saturday, May 1, 2021 at 9:19:59 AM UTC-7 cj.v...@gmail.com wrote:

> G'day Hans,
>
> Well, it I wanted basic access from a web page to a Sqlite db file, I'm 
> thinking sql.js would be the way to go.
>
> For really portable (light on infrastructure) TiddlyWiki access to a 
> Sqlite db file via sql.js, I'm thinking that would be the way to go too.  
> No requirement for node.js or a server of any kind.
>
> I'm finding integration of javascript libraries into TiddlyWiki a 
> non-trivial affair.  Now it could very well be just my 
> deer-in-the-headlights reaction to everything javascript, but I can't help 
> thinking:  if brining sql.js into TiddlyWiki were fairly trivial, surely 
> somebody would have done it by now.
>
> Surely (don't call me Shirley), there are folk out there, with the same 
> star-in-their-eyes admiration of mine for both TiddlyWiki and sql.js , who 
> would have married those two things together a long time ago.
>
> I'd definitely be advertising it, shouting from the mountaintops,  if I 
> had married the two.
>
> So leaning heavily towards great idea, thinking a very messy/costly affair.
>
> Unless somebody knows it would be easy ...
>
> On Saturday, May 1, 2021 at 10:36:52 AM UTC-3 hww...@gmail.com wrote:
>
>> Happy Saturday, cj.v!
>>
>> I've read your preceding post several times and I remain unsure which way 
>> you are leaning on "sql.jg".
>>
>> Can you clarify?
>>
>>
>> Cheers,
>> Hans
>>
>>
>> On Saturday, May 1, 2021 at 9:13:47 AM UTC-4 cj.v...@gmail.com wrote:
>>
>>> G'day Jeremy, and thank-you !
>>>
>>> I have sql.js  on the brain, and am not quite 
>>> sure I really want to even dip a toe into that kind of self-inflicted pain.
>>>
>>> Although I was in a soul-searching "should I shouldn't I, could I 
>>> couldn't I, to be not to be" stretch of waffling over it, I'm pretty sure 
>>> I've entered an "oh hell no" quick retreat to the safety of a thumb-sucking 
>>> fetal position.
>>>
>>> My loathing of javascript makes it kind of hopeless for this kid.  For 
>>> all of the great things that can be done with it, as much as I am impressed 
>>> with capabilities and end products, the language irritates the living 
>>> daylights out of me.
>>>
>>> Silly me: I may have been thinking "throw a wildly interesting project 
>>> at it, and maybe it will grow on you?"  Not so much.
>>>
>>> Thank goodness for the slew of folk with brains wired to work with 
>>> javascript !
>>>
>>>
>>>
>>>
>>> On Saturday, May 1, 2021 at 6:27:33 AM UTC-3 jeremy...@gmail.com wrote:
>>>
 I'm not having much luck searching the web, and I'm hoping somebody can 
 put me on some kind of "for white belts" reading material.

 Say one finds a small javascript library one wants to use with 
 TiddlyWiki, what are the options and the processes involved?

 Does one include the libary (if so where?) in TiddlyWiki, then access 
 the libary functions via javascript macros ?

 Total newb here with the whole concept, and not particularly 
 knowledgeable about javascript, so please be gentle !


 It depends what the JS library does.

 If the library does pure text manipulation (eg an anagram engine), then 
 it should be fairly easy to wrap it up into a JavaScript macro. There are 
 some examples here:

 https://github.com/Jermolene/TiddlyWiki5/tree/master/core/modules/macros

 If the library converts markup to HTML, then it can be wrapped to be a 
 parser - see the Markdown parser or the KaTeX parser for an example:


 https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/katex/latex-parser.js

 https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/markdown/wrapper.js

 Things get much trickier if the library manipulates the DOM. One 
 fundamental problem is that many libraries are written on the assumption 
 that they will be used on a static page, and don’t automatically cater for 
 dynamic content. In many cases, such libraries are old jQuery libraries 
 that do things that can now be done with plain HTML or wikitext.

 The simplest case is a library that produces output in a single DOM 
 node. These can generally be turned into a widget. For example, the 
 

Re: [tw5] Looking for reading material: using javascript libraries in TiddlyWiki

2021-05-01 Thread Charlie Veniot
G'day Hans,

Well, it I wanted basic access from a web page to a Sqlite db file, I'm 
thinking sql.js would be the way to go.

For really portable (light on infrastructure) TiddlyWiki access to a Sqlite 
db file via sql.js, I'm thinking that would be the way to go too.  No 
requirement for node.js or a server of any kind.

I'm finding integration of javascript libraries into TiddlyWiki a 
non-trivial affair.  Now it could very well be just my 
deer-in-the-headlights reaction to everything javascript, but I can't help 
thinking:  if brining sql.js into TiddlyWiki were fairly trivial, surely 
somebody would have done it by now.

Surely (don't call me Shirley), there are folk out there, with the same 
star-in-their-eyes admiration of mine for both TiddlyWiki and sql.js , who 
would have married those two things together a long time ago.

I'd definitely be advertising it, shouting from the mountaintops,  if I had 
married the two.

So leaning heavily towards great idea, thinking a very messy/costly affair.

Unless somebody knows it would be easy ...

On Saturday, May 1, 2021 at 10:36:52 AM UTC-3 hww...@gmail.com wrote:

> Happy Saturday, cj.v!
>
> I've read your preceding post several times and I remain unsure which way 
> you are leaning on "sql.jg".
>
> Can you clarify?
>
>
> Cheers,
> Hans
>
>
> On Saturday, May 1, 2021 at 9:13:47 AM UTC-4 cj.v...@gmail.com wrote:
>
>> G'day Jeremy, and thank-you !
>>
>> I have sql.js  on the brain, and am not quite 
>> sure I really want to even dip a toe into that kind of self-inflicted pain.
>>
>> Although I was in a soul-searching "should I shouldn't I, could I 
>> couldn't I, to be not to be" stretch of waffling over it, I'm pretty sure 
>> I've entered an "oh hell no" quick retreat to the safety of a thumb-sucking 
>> fetal position.
>>
>> My loathing of javascript makes it kind of hopeless for this kid.  For 
>> all of the great things that can be done with it, as much as I am impressed 
>> with capabilities and end products, the language irritates the living 
>> daylights out of me.
>>
>> Silly me: I may have been thinking "throw a wildly interesting project at 
>> it, and maybe it will grow on you?"  Not so much.
>>
>> Thank goodness for the slew of folk with brains wired to work with 
>> javascript !
>>
>>
>>
>>
>> On Saturday, May 1, 2021 at 6:27:33 AM UTC-3 jeremy...@gmail.com wrote:
>>
>>> I'm not having much luck searching the web, and I'm hoping somebody can 
>>> put me on some kind of "for white belts" reading material.
>>>
>>> Say one finds a small javascript library one wants to use with 
>>> TiddlyWiki, what are the options and the processes involved?
>>>
>>> Does one include the libary (if so where?) in TiddlyWiki, then access 
>>> the libary functions via javascript macros ?
>>>
>>> Total newb here with the whole concept, and not particularly 
>>> knowledgeable about javascript, so please be gentle !
>>>
>>>
>>> It depends what the JS library does.
>>>
>>> If the library does pure text manipulation (eg an anagram engine), then 
>>> it should be fairly easy to wrap it up into a JavaScript macro. There are 
>>> some examples here:
>>>
>>> https://github.com/Jermolene/TiddlyWiki5/tree/master/core/modules/macros
>>>
>>> If the library converts markup to HTML, then it can be wrapped to be a 
>>> parser - see the Markdown parser or the KaTeX parser for an example:
>>>
>>>
>>> https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/katex/latex-parser.js
>>>
>>> https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/markdown/wrapper.js
>>>
>>> Things get much trickier if the library manipulates the DOM. One 
>>> fundamental problem is that many libraries are written on the assumption 
>>> that they will be used on a static page, and don’t automatically cater for 
>>> dynamic content. In many cases, such libraries are old jQuery libraries 
>>> that do things that can now be done with plain HTML or wikitext.
>>>
>>> The simplest case is a library that produces output in a single DOM 
>>> node. These can generally be turned into a widget. For example, the 
>>> CodeMirror widget:
>>>
>>>
>>> https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/codemirror
>>>
>>> That is not an exhaustive list, what kind of library are you looking at?
>>>
>>> Best wishes
>>>
>>> Jeremy
>>>
>>

-- 
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/802915c5-c083-4d93-bcd2-14480cc50911n%40googlegroups.com.


[tw5] Re: Code Pattern: Missing Tiddlers Manager

2021-05-01 Thread Charlie Veniot
Arg, typo:  Sample Tiddler A has links to missing tiddlers "Sample Tiddler 
B" and "Sample Tiddler *C*".

On Saturday, May 1, 2021 at 12:25:18 PM UTC-3 Charlie Veniot wrote:

> G'day,
>
> Just a little bit of fun code for diving into.
>
> The "Missing Tiddlers Manager" scans all non-system tiddlers looking for 
> links to missing tiddlers.
>
> It has a button to automagically create all missing tiddlers.  (whatever 
> defaults you want for all of those tiddlers, I leave that up to you for 
> your preferences.)
>
> This could be modified fairly easily to define default content for each 
> missing tiddler.
>
> The zip file includes the "Missing Tiddlers Manager" tiddler and the 
> "Sample Tiddler A" tiddler.
>
> Sample Tiddler A has links to missing tiddlers "Sample Tiddler B" and 
> "Sample Tiddler A".
>
> Cheers!  Have fun !
>

-- 
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/560d5834-e3ae-4091-b1cd-4695104dc73en%40googlegroups.com.


[tw5] Code Pattern: Missing Tiddlers Manager

2021-05-01 Thread Charlie Veniot
G'day,

Just a little bit of fun code for diving into.

The "Missing Tiddlers Manager" scans all non-system tiddlers looking for 
links to missing tiddlers.

It has a button to automagically create all missing tiddlers.  (whatever 
defaults you want for all of those tiddlers, I leave that up to you for 
your preferences.)

This could be modified fairly easily to define default content for each 
missing tiddler.

The zip file includes the "Missing Tiddlers Manager" tiddler and the 
"Sample Tiddler A" tiddler.

Sample Tiddler A has links to missing tiddlers "Sample Tiddler B" and 
"Sample Tiddler A".

Cheers!  Have fun !

-- 
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/b4de57d5-d886-4317-adaf-0464929248bfn%40googlegroups.com.
<>


[tw5] Re: Streams 0.21 is now available

2021-05-01 Thread Saq Imtiaz
I've pushed a small update to Streams that fixes a few minor issues 
including a bug with the get-stream-root[] filter.

I've also added a FAQ to the docs. Documentation contributions are very 
welcome.

https://saqimtiaz.github.io/streams/

-- 
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/b8e81a7a-ea7a-441a-bd03-be9e3bb1b3dbn%40googlegroups.com.


[tw5] Re: Difficulty installing Stroll on Node

2021-05-01 Thread Philip White
Mark, I'm pretty sure that I did. However, I tried again and the import 
dialog box did pop up and I clicked import. This time it created "Untitled 
1", which looks exactly the same as before. Just to be clear, I'm dragging 
the pill from the "Add Stroll to your TW" tab 
in https://giffmex.org/stroll/stroll.html. 

On Saturday, 1 May 2021 at 15:40:39 UTC+1 Mark S. wrote:

> When you drag the pill from Stroll into your TW, there should be a 
> $:/import dialog box. Did you click "import" ? I ask because that step 
> isn't specifically mentioned.
>
> On Saturday, May 1, 2021 at 3:43:10 AM UTC-7 whi...@gmail.com wrote:
>
>> Hi, I'm trying to install an empty version of Stroll on Node. I've 
>> managed to get TW 5.1.23 running fine on Node. And I've got the empty html 
>> version of Stroll working fine in Safari, Chrome and Firefox. All on my Mac 
>> Mojave. I've also dragged the $:/giffmex/stroll tag pill into my Node 
>> version of TW 5.1.23, where it appears as the "Untitled" tiddler containing 
>> a load of lines like $:/language/Buttons/NewHere/Hint 
>> $:/language/Buttons/NewJournalHere/Hint $:/config/NewJournal/Title 
>> $:/core/ui/ControlPanel/StoryView. I've restarted Node and TW many times 
>> since the Untitled tiddler was imported.
>>
>> Options seem to be 1) getting the Stroll html version to work on Node, 
>> but I don't know how to get the Stroll code from the html file so that TW 
>> executes it; or 2) somehow get the Untitled tiddler stuff to execute (just 
>> once, or at every startup?) in my Node version of TW. 
>>
>> Any ideas?
>>
>> Thanks,
>> Philip.
>>
>

-- 
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/e034ecdf-67a7-4c34-b792-516c3a27f277n%40googlegroups.com.


[tw5] Re: Difficulty installing Stroll on Node

2021-05-01 Thread 'Mark S.' via TiddlyWiki
When you drag the pill from Stroll into your TW, there should be a 
$:/import dialog box. Did you click "import" ? I ask because that step 
isn't specifically mentioned.

On Saturday, May 1, 2021 at 3:43:10 AM UTC-7 whi...@gmail.com wrote:

> Hi, I'm trying to install an empty version of Stroll on Node. I've managed 
> to get TW 5.1.23 running fine on Node. And I've got the empty html version 
> of Stroll working fine in Safari, Chrome and Firefox. All on my Mac Mojave. 
> I've also dragged the $:/giffmex/stroll tag pill into my Node version of TW 
> 5.1.23, where it appears as the "Untitled" tiddler containing a load of 
> lines like $:/language/Buttons/NewHere/Hint 
> $:/language/Buttons/NewJournalHere/Hint $:/config/NewJournal/Title 
> $:/core/ui/ControlPanel/StoryView. I've restarted Node and TW many times 
> since the Untitled tiddler was imported.
>
> Options seem to be 1) getting the Stroll html version to work on Node, but 
> I don't know how to get the Stroll code from the html file so that TW 
> executes it; or 2) somehow get the Untitled tiddler stuff to execute (just 
> once, or at every startup?) in my Node version of TW. 
>
> Any ideas?
>
> Thanks,
> Philip.
>

-- 
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/7aae3d9b-2829-4930-97d9-075ec34acfd5n%40googlegroups.com.


[tw5] Re: Default Tiddler Configuration

2021-05-01 Thread Charlie Veniot
BTW, apologies, I posted before seeing PMario's post.  I'm going into 
slightly different directions, although we both seem to be leaning towards: 
you need a button.

On Saturday, May 1, 2021 at 11:01:36 AM UTC-3 Álvaro wrote:

> I don't know if I understand you.
>
> When you click in a link you got the tiddler or the empty template of 
> tiddler, that Mario has shown you.
>
> I think that an alternative for it to work with the links, you would have 
> to use the LinkCatcherWidget 
>  but I don't have 
> much idea how it works. Maybe it doesn't work. 
>
> El sábado, 1 de mayo de 2021 a las 15:37:39 UTC+2, cj.v...@gmail.com 
> escribió:
>
>> Alternatively, you could add a new button to the tiddler "ViewToolbar" 
>> that, when clicked after save of your tiddler, finds all links in the text 
>> of the tiddler that are links to tiddlers that do not yet exist, and then 
>> creates each one of those tiddlers with default values.  Assuming every 
>> single new tiddler you ever create gets the same defaults.
>>
>> If different tiddlers get different defaults, then you would want the 
>> links to have something in the tiddler titles to say what kind of tiddlers 
>> they are.
>>
>> For example:
>>
>>- [[John Doe s]] to indicate student
>>- [[John Doe t]] to indicate teacher
>>- [[Physics 101 c]] to indicate class
>>- [[D232 cr]] to indicate class room
>>
>> So the button goes through each link in the tiddler, determines whether 
>> or not the tiddler related to the link exists.  If the link is to a tiddler 
>> that does not exist, then get the last part of the tiddler title to 
>> determine tiddler "type", and create that tiddler with all of the default 
>> values for that type.
>>
>> On Saturday, May 1, 2021 at 10:28:23 AM UTC-3 Charlie Veniot wrote:
>>
>>> G'day Jax,
>>>
>>> Transclusion and transclusion templates might be your friend here.
>>>
>>> Instead of typing into a tiddler links [[like this]], type them in {{ 
>>> like this || *setAsType* }}.
>>>
>>> Setup *setAsType* so that if the transcluded tiddler does not exist, 
>>> the result: place a button to create that tiddler (*Tip*: Set class to 
>>> tc-btn-invisible tc-tiddlylink to have a button look like an internal link) 
>>> with whatever default values, and then open that tiddler.  If the tiddler 
>>> does exist, then never mind the button and instead show a simple link to 
>>> the tiddler.
>>>
>>> You could then have all sorts of tiddler templates to create tiddlers 
>>> with default content.  setAsStudent, setAsTeacher, setAsClass, 
>>> setAsClassRoom ...
>>>
>>> If access to backlinks is an issue, then consider Just a neat use of 
>>> Relinks "References" feature 
>>>  as 
>>> an alternative way to get backlinks.
>>>
>>>
>>> On Thursday, April 29, 2021 at 2:12:46 PM UTC-3 isd196...@gmail.com 
>>> wrote:
>>>
 Hello.

 Thanks to posts in this group I have been able to create new buttons 
 that are used to create various custom Tiddlers. These are simple and work 
 very well, however I would like to take this one stage further.

 The vast majority of my new Tiddlers are created via standard square 
 bracket links in text that are added on the fly and then clicked to create 
 the new Tiddler.

 What I want is for those new Tiddlers that are created by clicking on 
 links in text, to be created with some text already in them. I'm not 
 worried about adding tags at this stage.

 Is there a system default Tiddler (or some other mechanism) that I can 
 edit or create so that ALL Tiddlers created when clicking on a text link 
 will have my default text in them?

 Many thanks for your time

 Jax




-- 
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/0d95ffc4-1b6a-42cc-980c-f5c09272d7f4n%40googlegroups.com.


[tw5] Re: Default Tiddler Configuration

2021-05-01 Thread Charlie Veniot
Oh no, I'm just talking about pressing a button in the ViewToolbar after 
saving a tiddler.

So post-save button that says to TiddlyWiki: okay, please go ahead and 
create my missing tiddlers now, as per the defaults I like.

For example, a new button like the one in Alternative tiddler editor: text 
à la JSON , but that 
does what you want need to the current tiddler, not the mess of stuff my 
button does.
On Saturday, May 1, 2021 at 11:01:36 AM UTC-3 Álvaro wrote:

> I don't know if I understand you.
>
> When you click in a link you got the tiddler or the empty template of 
> tiddler, that Mario has shown you.
>
> I think that an alternative for it to work with the links, you would have 
> to use the LinkCatcherWidget 
>  but I don't have 
> much idea how it works. Maybe it doesn't work. 
>
> El sábado, 1 de mayo de 2021 a las 15:37:39 UTC+2, cj.v...@gmail.com 
> escribió:
>
>> Alternatively, you could add a new button to the tiddler "ViewToolbar" 
>> that, when clicked after save of your tiddler, finds all links in the text 
>> of the tiddler that are links to tiddlers that do not yet exist, and then 
>> creates each one of those tiddlers with default values.  Assuming every 
>> single new tiddler you ever create gets the same defaults.
>>
>> If different tiddlers get different defaults, then you would want the 
>> links to have something in the tiddler titles to say what kind of tiddlers 
>> they are.
>>
>> For example:
>>
>>- [[John Doe s]] to indicate student
>>- [[John Doe t]] to indicate teacher
>>- [[Physics 101 c]] to indicate class
>>- [[D232 cr]] to indicate class room
>>
>> So the button goes through each link in the tiddler, determines whether 
>> or not the tiddler related to the link exists.  If the link is to a tiddler 
>> that does not exist, then get the last part of the tiddler title to 
>> determine tiddler "type", and create that tiddler with all of the default 
>> values for that type.
>>
>> On Saturday, May 1, 2021 at 10:28:23 AM UTC-3 Charlie Veniot wrote:
>>
>>> G'day Jax,
>>>
>>> Transclusion and transclusion templates might be your friend here.
>>>
>>> Instead of typing into a tiddler links [[like this]], type them in {{ 
>>> like this || *setAsType* }}.
>>>
>>> Setup *setAsType* so that if the transcluded tiddler does not exist, 
>>> the result: place a button to create that tiddler (*Tip*: Set class to 
>>> tc-btn-invisible tc-tiddlylink to have a button look like an internal link) 
>>> with whatever default values, and then open that tiddler.  If the tiddler 
>>> does exist, then never mind the button and instead show a simple link to 
>>> the tiddler.
>>>
>>> You could then have all sorts of tiddler templates to create tiddlers 
>>> with default content.  setAsStudent, setAsTeacher, setAsClass, 
>>> setAsClassRoom ...
>>>
>>> If access to backlinks is an issue, then consider Just a neat use of 
>>> Relinks "References" feature 
>>>  as 
>>> an alternative way to get backlinks.
>>>
>>>
>>> On Thursday, April 29, 2021 at 2:12:46 PM UTC-3 isd196...@gmail.com 
>>> wrote:
>>>
 Hello.

 Thanks to posts in this group I have been able to create new buttons 
 that are used to create various custom Tiddlers. These are simple and work 
 very well, however I would like to take this one stage further.

 The vast majority of my new Tiddlers are created via standard square 
 bracket links in text that are added on the fly and then clicked to create 
 the new Tiddler.

 What I want is for those new Tiddlers that are created by clicking on 
 links in text, to be created with some text already in them. I'm not 
 worried about adding tags at this stage.

 Is there a system default Tiddler (or some other mechanism) that I can 
 edit or create so that ALL Tiddlers created when clicking on a text link 
 will have my default text in them?

 Many thanks for your time

 Jax




-- 
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/787fd19c-2885-4f9d-991a-fd2d4e521468n%40googlegroups.com.


Re: [tw5] Re: Default Tiddler Configuration

2021-05-01 Thread Charlie Veniot
I'm guessing it likely is a difficult thing, otherwise it would have been 
done long ago?

[[some title]] is just a mechanism to show a link that jumps off to the 
titled tiddler.  It is sweet and simple, and never fails at that purpose: 
opening a tiddler "window".  That window then just displays without doing 
actions.  Display existing content of all fields in widgets, but not 
setting the content of those fields.  Setting content requires an action by 
a user.  The push of a button.

Not forgetting that the mechanism also handles [[ I prefer show this text | 
some title ]]

For smarts above and beyond, that's custom behaviour handled by button 
widgets, action widgets, filters, transclusions, transclusion templates ... 
all of the stuff for smarts to handle how most of your tiddlers get 
created, while knowing what to do with the exceptions to the most common 
tiddlers.

Aside: the transclusion template approach in my previous post.  Way less 
wordy, once you get used to abbreviations, to use things like {{John 
Doe||tS}} instead of the brutally wordy (but more descriptive for 
discussion) {{ John Doe || setAsStudent }}



On Saturday, May 1, 2021 at 8:52:59 AM UTC-3 isd196...@gmail.com wrote:

> Is this really such a difficult thing? I can create new tiddlers with 
> custom text using a button, but I want to be able to do that from [[New 
> Tiddler With Text]] links, which is how most of my new tiddlers get created.
>
> Is there no default blank tiddler that I can edit to have this work?
>
> On Friday, 30 April 2021 at 16:46:53 UTC+1 Jax Kovak wrote:
>
>> Thanks again, but I already found this thread and it doesn't help. It 
>> creates new Tiddlers from a button which I can already do. I want to be 
>> able to change the text in a new Tiddler that is created by clicking a link 
>> in text, no buttons required. So if I type [New Tiddler Link]] and click 
>> that in the Wiki a new Tiddler with that name is created. That is the kind 
>> of Tiddler I want to change. The button created ones don't seem to affect a 
>> Tiddler created like this.
>>
>> On Fri, 30 Apr 2021 at 16:20, Jean-Pierre Rivière  
>> wrote:
>>
>>> Search for NewHere button. An old thread contains a lot of information 
>>> for a similar quest.
>>> Le vendredi 30 avril 2021 à 17:10:04 UTC+2, isd196...@gmail.com a 
>>> écrit :
>>>
 Thanks Jean-Pierre, but I don't want to change the 
 standard functionality to do this, in fact I'd much rather edit the 
 default 
 template that you mention, but I just don't know the name of it! Now if 
 you 
 can tell me the name of that default template I might well have the 
 answer!  

 On Fri, 30 Apr 2021 at 10:14, Jean-Pierre Rivière <
 jn.pierr...@gmail.com> wrote:

> I have a kind of a solution for journal tiddler. Journal because you 
> can simply define default text for new journal. For common tiddlers, 
> you'd 
> have to mess with the default template.
>
> first, I define a macro called autotext. For instance:
>
> \define autotext(clever)
> <$set name=hail value="Hi! I'n a new tiddler.
>
> !! $clever$
> ">
> <$action-setfield $field=text $value=<>/>
> 
> \end
>
> An then I add this as default text for new journal tiddler:
>
> << autotext "This is great!">>
>
> And when I create a new journal, it appears with the default text 
> above. Just validate it. You see a "do it" button. Just click it. And 
> presto! your text is now set as the hail variable was computed (along 
> your 
> need).
>
> The trick is to be in action mode to be able to change the fields of 
> the tiddler. Which you are not when the initial text is inserted as this 
> experiment do show you (although it could have been the case since in the 
> creation of a new journal, you begin by clicking on a button).
> Le jeudi 29 avril 2021 à 19:12:46 UTC+2, isd196...@gmail.com a écrit :
>
>> Hello.
>>
>> Thanks to posts in this group I have been able to create new buttons 
>> that are used to create various custom Tiddlers. These are simple and 
>> work 
>> very well, however I would like to take this one stage further.
>>
>> The vast majority of my new Tiddlers are created via standard square 
>> bracket links in text that are added on the fly and then clicked to 
>> create 
>> the new Tiddler.
>>
>> What I want is for those new Tiddlers that are created by clicking on 
>> links in text, to be created with some text already in them. I'm not 
>> worried about adding tags at this stage.
>>
>> Is there a system default Tiddler (or some other mechanism) that I 
>> can edit or create so that ALL Tiddlers created when clicking on a text 
>> link will have my default text in them?
>>
>> Many thanks for your time
>>
>> Jax
>>
>>
>> -- 
> You received this message because 

[tw5] Re: Custom sort order

2021-05-01 Thread PMario
 <>  

No exclamation marks. The have a meaning. See: more info in the docs 
.
 

-m
On Saturday, May 1, 2021 at 3:35:51 PM UTC+2 Max Rozeman wrote:

> Thank you for your replies, Joost and Mario. 
>
> For the solution suggested by Mario, I have created the testKeys tiddler 
> with the space-separated list (without commas). 
>
> In another tiddler I tested it with the following: < filter:"[priority[1]sortby{!!testKeys}]">>  The output is in alphabetical 
> order. I don't know what could be wrong or missing.
>
> On Saturday, May 1, 2021 at 10:10:37 PM UTC+10 PMario wrote:
>
>> On Saturday, May 1, 2021 at 11:53:38 AM UTC+2 dode...@gmail.com wrote:
>>  
>>
>>> <$list filter="[tag[Tasks]each[status]get[status]*sortby{!!sortkey}]*">
>>
>>
>> Hi Max, 
>>
>> I'd use something like: [tag[asdf]sortby{testKeys}], where testKeys is 
>> a  single tiddler that contains the sort order
>>
>> So tesKeys tiddler should contain a "space-separated" list eg: SC SP ER 
>> MV IR SN CT AC CO   ...  no commas! 
>>
>> With your filter, the sortkeys field needs to be part of every tiddler. 
>> .. That's a lot of redundant work, especially if you need to change 
>> something and you have 100+ tiddlers. 
>>
>> have fun!
>> 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/9f12a046-1217-443a-9ba2-2ea11c93712cn%40googlegroups.com.


[tw5] Re: Default Tiddler Configuration

2021-05-01 Thread Álvaro
 I don't know if I understand you.

When you click in a link you got the tiddler or the empty template of 
tiddler, that Mario has shown you.

I think that an alternative for it to work with the links, you would have 
to use the LinkCatcherWidget 
 but I don't have 
much idea how it works. Maybe it doesn't work. 

El sábado, 1 de mayo de 2021 a las 15:37:39 UTC+2, cj.v...@gmail.com 
escribió:

> Alternatively, you could add a new button to the tiddler "ViewToolbar" 
> that, when clicked after save of your tiddler, finds all links in the text 
> of the tiddler that are links to tiddlers that do not yet exist, and then 
> creates each one of those tiddlers with default values.  Assuming every 
> single new tiddler you ever create gets the same defaults.
>
> If different tiddlers get different defaults, then you would want the 
> links to have something in the tiddler titles to say what kind of tiddlers 
> they are.
>
> For example:
>
>- [[John Doe s]] to indicate student
>- [[John Doe t]] to indicate teacher
>- [[Physics 101 c]] to indicate class
>- [[D232 cr]] to indicate class room
>
> So the button goes through each link in the tiddler, determines whether or 
> not the tiddler related to the link exists.  If the link is to a tiddler 
> that does not exist, then get the last part of the tiddler title to 
> determine tiddler "type", and create that tiddler with all of the default 
> values for that type.
>
> On Saturday, May 1, 2021 at 10:28:23 AM UTC-3 Charlie Veniot wrote:
>
>> G'day Jax,
>>
>> Transclusion and transclusion templates might be your friend here.
>>
>> Instead of typing into a tiddler links [[like this]], type them in {{ 
>> like this || *setAsType* }}.
>>
>> Setup *setAsType* so that if the transcluded tiddler does not exist, the 
>> result: place a button to create that tiddler (*Tip*: Set class to 
>> tc-btn-invisible tc-tiddlylink to have a button look like an internal link) 
>> with whatever default values, and then open that tiddler.  If the tiddler 
>> does exist, then never mind the button and instead show a simple link to 
>> the tiddler.
>>
>> You could then have all sorts of tiddler templates to create tiddlers 
>> with default content.  setAsStudent, setAsTeacher, setAsClass, 
>> setAsClassRoom ...
>>
>> If access to backlinks is an issue, then consider Just a neat use of 
>> Relinks "References" feature 
>>  as 
>> an alternative way to get backlinks.
>>
>>
>> On Thursday, April 29, 2021 at 2:12:46 PM UTC-3 isd196...@gmail.com 
>> wrote:
>>
>>> Hello.
>>>
>>> Thanks to posts in this group I have been able to create new buttons 
>>> that are used to create various custom Tiddlers. These are simple and work 
>>> very well, however I would like to take this one stage further.
>>>
>>> The vast majority of my new Tiddlers are created via standard square 
>>> bracket links in text that are added on the fly and then clicked to create 
>>> the new Tiddler.
>>>
>>> What I want is for those new Tiddlers that are created by clicking on 
>>> links in text, to be created with some text already in them. I'm not 
>>> worried about adding tags at this stage.
>>>
>>> Is there a system default Tiddler (or some other mechanism) that I can 
>>> edit or create so that ALL Tiddlers created when clicking on a text link 
>>> will have my default text in them?
>>>
>>> Many thanks for your time
>>>
>>> Jax
>>>
>>>
>>>

-- 
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/ed7d5464-31f2-4dba-a2d9-5d64499f951bn%40googlegroups.com.


[tw5] Re: Default Tiddler Configuration

2021-05-01 Thread Charlie Veniot
Alternatively, you could add a new button to the tiddler "ViewToolbar" 
that, when clicked after save of your tiddler, finds all links in the text 
of the tiddler that are links to tiddlers that do not yet exist, and then 
creates each one of those tiddlers with default values.  Assuming every 
single new tiddler you ever create gets the same defaults.

If different tiddlers get different defaults, then you would want the links 
to have something in the tiddler titles to say what kind of tiddlers they 
are.

For example:

   - [[John Doe s]] to indicate student
   - [[John Doe t]] to indicate teacher
   - [[Physics 101 c]] to indicate class
   - [[D232 cr]] to indicate class room

So the button goes through each link in the tiddler, determines whether or 
not the tiddler related to the link exists.  If the link is to a tiddler 
that does not exist, then get the last part of the tiddler title to 
determine tiddler "type", and create that tiddler with all of the default 
values for that type.

On Saturday, May 1, 2021 at 10:28:23 AM UTC-3 Charlie Veniot wrote:

> G'day Jax,
>
> Transclusion and transclusion templates might be your friend here.
>
> Instead of typing into a tiddler links [[like this]], type them in {{ like 
> this || *setAsType* }}.
>
> Setup *setAsType* so that if the transcluded tiddler does not exist, the 
> result: place a button to create that tiddler (*Tip*: Set class to 
> tc-btn-invisible tc-tiddlylink to have a button look like an internal link) 
> with whatever default values, and then open that tiddler.  If the tiddler 
> does exist, then never mind the button and instead show a simple link to 
> the tiddler.
>
> You could then have all sorts of tiddler templates to create tiddlers with 
> default content.  setAsStudent, setAsTeacher, setAsClass, setAsClassRoom ...
>
> If access to backlinks is an issue, then consider Just a neat use of 
> Relinks "References" feature 
>  as 
> an alternative way to get backlinks.
>
>
> On Thursday, April 29, 2021 at 2:12:46 PM UTC-3 isd196...@gmail.com wrote:
>
>> Hello.
>>
>> Thanks to posts in this group I have been able to create new buttons that 
>> are used to create various custom Tiddlers. These are simple and work very 
>> well, however I would like to take this one stage further.
>>
>> The vast majority of my new Tiddlers are created via standard square 
>> bracket links in text that are added on the fly and then clicked to create 
>> the new Tiddler.
>>
>> What I want is for those new Tiddlers that are created by clicking on 
>> links in text, to be created with some text already in them. I'm not 
>> worried about adding tags at this stage.
>>
>> Is there a system default Tiddler (or some other mechanism) that I can 
>> edit or create so that ALL Tiddlers created when clicking on a text link 
>> will have my default text in them?
>>
>> Many thanks for your time
>>
>> Jax
>>
>>
>>

-- 
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/85975617-2a35-438b-8917-d8bcc157bb3dn%40googlegroups.com.


Re: [tw5] Looking for reading material: using javascript libraries in TiddlyWiki

2021-05-01 Thread Hans Wobbe
Happy Saturday, cj.v!

I've read your preceding post several times and I remain unsure which way 
you are leaning on "sql.jg".

Can you clarify?


Cheers,
Hans


On Saturday, May 1, 2021 at 9:13:47 AM UTC-4 cj.v...@gmail.com wrote:

> G'day Jeremy, and thank-you !
>
> I have sql.js  on the brain, and am not quite sure 
> I really want to even dip a toe into that kind of self-inflicted pain.
>
> Although I was in a soul-searching "should I shouldn't I, could I couldn't 
> I, to be not to be" stretch of waffling over it, I'm pretty sure I've 
> entered an "oh hell no" quick retreat to the safety of a thumb-sucking 
> fetal position.
>
> My loathing of javascript makes it kind of hopeless for this kid.  For all 
> of the great things that can be done with it, as much as I am impressed 
> with capabilities and end products, the language irritates the living 
> daylights out of me.
>
> Silly me: I may have been thinking "throw a wildly interesting project at 
> it, and maybe it will grow on you?"  Not so much.
>
> Thank goodness for the slew of folk with brains wired to work with 
> javascript !
>
>
>
>
> On Saturday, May 1, 2021 at 6:27:33 AM UTC-3 jeremy...@gmail.com wrote:
>
>> I'm not having much luck searching the web, and I'm hoping somebody can 
>> put me on some kind of "for white belts" reading material.
>>
>> Say one finds a small javascript library one wants to use with 
>> TiddlyWiki, what are the options and the processes involved?
>>
>> Does one include the libary (if so where?) in TiddlyWiki, then access the 
>> libary functions via javascript macros ?
>>
>> Total newb here with the whole concept, and not particularly 
>> knowledgeable about javascript, so please be gentle !
>>
>>
>> It depends what the JS library does.
>>
>> If the library does pure text manipulation (eg an anagram engine), then 
>> it should be fairly easy to wrap it up into a JavaScript macro. There are 
>> some examples here:
>>
>> https://github.com/Jermolene/TiddlyWiki5/tree/master/core/modules/macros
>>
>> If the library converts markup to HTML, then it can be wrapped to be a 
>> parser - see the Markdown parser or the KaTeX parser for an example:
>>
>>
>> https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/katex/latex-parser.js
>>
>> https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/markdown/wrapper.js
>>
>> Things get much trickier if the library manipulates the DOM. One 
>> fundamental problem is that many libraries are written on the assumption 
>> that they will be used on a static page, and don’t automatically cater for 
>> dynamic content. In many cases, such libraries are old jQuery libraries 
>> that do things that can now be done with plain HTML or wikitext.
>>
>> The simplest case is a library that produces output in a single DOM node. 
>> These can generally be turned into a widget. For example, the CodeMirror 
>> widget:
>>
>>
>> https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/codemirror
>>
>> That is not an exhaustive list, what kind of library are you looking at?
>>
>> Best wishes
>>
>> Jeremy
>>
>

-- 
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/83ad6d61-615e-4a20-9323-0fdf8d8f8b8bn%40googlegroups.com.


[tw5] Re: Custom sort order

2021-05-01 Thread Max Rozeman
Thank you for your replies, Joost and Mario. 

For the solution suggested by Mario, I have created the testKeys tiddler 
with the space-separated list (without commas). 

In another tiddler I tested it with the following: <>  The output is in alphabetical 
order. I don't know what could be wrong or missing.

On Saturday, May 1, 2021 at 10:10:37 PM UTC+10 PMario wrote:

> On Saturday, May 1, 2021 at 11:53:38 AM UTC+2 dode...@gmail.com wrote:
>  
>
>> <$list filter="[tag[Tasks]each[status]get[status]*sortby{!!sortkey}]*">
>
>
> Hi Max, 
>
> I'd use something like: [tag[asdf]sortby{testKeys}], where testKeys is a  
> single tiddler that contains the sort order
>
> So tesKeys tiddler should contain a "space-separated" list eg: SC SP ER MV 
> IR SN CT AC CO   ...  no commas! 
>
> With your filter, the sortkeys field needs to be part of every tiddler. .. 
> That's a lot of redundant work, especially if you need to change something 
> and you have 100+ tiddlers. 
>
> have fun!
> 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/e0cff470-2f1d-43ec-a297-f305786d80bcn%40googlegroups.com.


[tw5] Re: Default Tiddler Configuration

2021-05-01 Thread Charlie Veniot
G'day Jax,

Transclusion and transclusion templates might be your friend here.

Instead of typing into a tiddler links [[like this]], type them in {{ like 
this || *setAsType* }}.

Setup *setAsType* so that if the transcluded tiddler does not exist, the 
result: place a button to create that tiddler (*Tip*: Set class to 
tc-btn-invisible tc-tiddlylink to have a button look like an internal link) 
with whatever default values, and then open that tiddler.  If the tiddler 
does exist, then never mind the button and instead show a simple link to 
the tiddler.

You could then have all sorts of tiddler templates to create tiddlers with 
default content.  setAsStudent, setAsTeacher, setAsClass, setAsClassRoom ...

If access to backlinks is an issue, then consider Just a neat use of 
Relinks "References" feature 
 as an 
alternative way to get backlinks.


On Thursday, April 29, 2021 at 2:12:46 PM UTC-3 isd196...@gmail.com wrote:

> Hello.
>
> Thanks to posts in this group I have been able to create new buttons that 
> are used to create various custom Tiddlers. These are simple and work very 
> well, however I would like to take this one stage further.
>
> The vast majority of my new Tiddlers are created via standard square 
> bracket links in text that are added on the fly and then clicked to create 
> the new Tiddler.
>
> What I want is for those new Tiddlers that are created by clicking on 
> links in text, to be created with some text already in them. I'm not 
> worried about adding tags at this stage.
>
> Is there a system default Tiddler (or some other mechanism) that I can 
> edit or create so that ALL Tiddlers created when clicking on a text link 
> will have my default text in them?
>
> Many thanks for your time
>
> Jax
>
>
>

-- 
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/91659b42-e11f-4baa-90d7-1d7468d41c8fn%40googlegroups.com.


Re: [tw5] Looking for reading material: using javascript libraries in TiddlyWiki

2021-05-01 Thread Charlie Veniot
G'day Jeremy, and thank-you !

I have sql.js  on the brain, and am not quite sure I 
really want to even dip a toe into that kind of self-inflicted pain.

Although I was in a soul-searching "should I shouldn't I, could I couldn't 
I, to be not to be" stretch of waffling over it, I'm pretty sure I've 
entered an "oh hell no" quick retreat to the safety of a thumb-sucking 
fetal position.

My loathing of javascript makes it kind of hopeless for this kid.  For all 
of the great things that can be done with it, as much as I am impressed 
with capabilities and end products, the language irritates the living 
daylights out of me.

Silly me: I may have been thinking "throw a wildly interesting project at 
it, and maybe it will grow on you?"  Not so much.

Thank goodness for the slew of folk with brains wired to work with 
javascript !




On Saturday, May 1, 2021 at 6:27:33 AM UTC-3 jeremy...@gmail.com wrote:

> I'm not having much luck searching the web, and I'm hoping somebody can 
> put me on some kind of "for white belts" reading material.
>
> Say one finds a small javascript library one wants to use with TiddlyWiki, 
> what are the options and the processes involved?
>
> Does one include the libary (if so where?) in TiddlyWiki, then access the 
> libary functions via javascript macros ?
>
> Total newb here with the whole concept, and not particularly knowledgeable 
> about javascript, so please be gentle !
>
>
> It depends what the JS library does.
>
> If the library does pure text manipulation (eg an anagram engine), then it 
> should be fairly easy to wrap it up into a JavaScript macro. There are some 
> examples here:
>
> https://github.com/Jermolene/TiddlyWiki5/tree/master/core/modules/macros
>
> If the library converts markup to HTML, then it can be wrapped to be a 
> parser - see the Markdown parser or the KaTeX parser for an example:
>
>
> https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/katex/latex-parser.js
>
> https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/markdown/wrapper.js
>
> Things get much trickier if the library manipulates the DOM. One 
> fundamental problem is that many libraries are written on the assumption 
> that they will be used on a static page, and don’t automatically cater for 
> dynamic content. In many cases, such libraries are old jQuery libraries 
> that do things that can now be done with plain HTML or wikitext.
>
> The simplest case is a library that produces output in a single DOM node. 
> These can generally be turned into a widget. For example, the CodeMirror 
> widget:
>
>
> https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/codemirror
>
> That is not an exhaustive list, what kind of library are you looking at?
>
> Best wishes
>
> Jeremy
>

-- 
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/42ff2124-ca8a-4de4-99df-388a317216e6n%40googlegroups.com.


Re: [tw5] Re: Default Tiddler Configuration

2021-05-01 Thread PMario
Hi, 
It's a bit tricky. ... If you "link" to a non existing tiddler the tiddler 
body looks like this: 

[image: non-existing-tiddler.gif]

The "edit button" can be clicked. The text is generated with: 
https://tiddlywiki.com/#%24%3A%2Flanguage%2FMissingTiddler%2FHint
and contains: 

Missing tiddler "<$text text=<>/>" -- click 
{{||$:/core/ui/Buttons/edit}} to create

So you can change it to: 

Missing tiddler "<$text text=<>/>" -- click 
{{||$:/core/ui/Buttons/new-here-using-template}} to create

You can use the attachment and the elements that are there. 

The description can be found at: 
https://groups.google.com/g/tiddlywiki/c/sQr3OJwnj8I/m/Qnv_Z9KsAgAJ

-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/43cff5a0-7081-4c5c-a4a2-b6f867d7d921n%40googlegroups.com.


NewHere-using-a-template.json
Description: application/json


[tw5] Re: Custom sort order

2021-05-01 Thread PMario
On Saturday, May 1, 2021 at 11:53:38 AM UTC+2 dode...@gmail.com wrote:
 

> <$list filter="[tag[Tasks]each[status]get[status]*sortby{!!sortkey}]*">


Hi Max, 

I'd use something like: [tag[asdf]sortby{testKeys}], where testKeys is a  
single tiddler that contains the sort order

So tesKeys tiddler should contain a "space-separated" list eg: SC SP ER MV 
IR SN CT AC CO   ...  no commas! 

With your filter, the sortkeys field needs to be part of every tiddler. .. 
That's a lot of redundant work, especially if you need to change something 
and you have 100+ tiddlers. 

have fun!
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/0c38f664-d6ba-44a9-a8d7-235a5437f828n%40googlegroups.com.


Re: [tw5] Re: Default Tiddler Configuration

2021-05-01 Thread Jax Kovak
Is this really such a difficult thing? I can create new tiddlers with 
custom text using a button, but I want to be able to do that from [[New 
Tiddler With Text]] links, which is how most of my new tiddlers get created.

Is there no default blank tiddler that I can edit to have this work?

On Friday, 30 April 2021 at 16:46:53 UTC+1 Jax Kovak wrote:

> Thanks again, but I already found this thread and it doesn't help. It 
> creates new Tiddlers from a button which I can already do. I want to be 
> able to change the text in a new Tiddler that is created by clicking a link 
> in text, no buttons required. So if I type [New Tiddler Link]] and click 
> that in the Wiki a new Tiddler with that name is created. That is the kind 
> of Tiddler I want to change. The button created ones don't seem to affect a 
> Tiddler created like this.
>
> On Fri, 30 Apr 2021 at 16:20, Jean-Pierre Rivière  
> wrote:
>
>> Search for NewHere button. An old thread contains a lot of information 
>> for a similar quest.
>> Le vendredi 30 avril 2021 à 17:10:04 UTC+2, isd196...@gmail.com a écrit :
>>
>>> Thanks Jean-Pierre, but I don't want to change the 
>>> standard functionality to do this, in fact I'd much rather edit the default 
>>> template that you mention, but I just don't know the name of it! Now if you 
>>> can tell me the name of that default template I might well have the 
>>> answer!  
>>>
>>> On Fri, 30 Apr 2021 at 10:14, Jean-Pierre Rivière  
>>> wrote:
>>>
 I have a kind of a solution for journal tiddler. Journal because you 
 can simply define default text for new journal. For common tiddlers, you'd 
 have to mess with the default template.

 first, I define a macro called autotext. For instance:

 \define autotext(clever)
 <$set name=hail value="Hi! I'n a new tiddler.

 !! $clever$
 ">
 <$action-setfield $field=text $value=<>/>
 
 \end

 An then I add this as default text for new journal tiddler:

 << autotext "This is great!">>

 And when I create a new journal, it appears with the default text 
 above. Just validate it. You see a "do it" button. Just click it. And 
 presto! your text is now set as the hail variable was computed (along your 
 need).

 The trick is to be in action mode to be able to change the fields of 
 the tiddler. Which you are not when the initial text is inserted as this 
 experiment do show you (although it could have been the case since in the 
 creation of a new journal, you begin by clicking on a button).
 Le jeudi 29 avril 2021 à 19:12:46 UTC+2, isd196...@gmail.com a écrit :

> Hello.
>
> Thanks to posts in this group I have been able to create new buttons 
> that are used to create various custom Tiddlers. These are simple and 
> work 
> very well, however I would like to take this one stage further.
>
> The vast majority of my new Tiddlers are created via standard square 
> bracket links in text that are added on the fly and then clicked to 
> create 
> the new Tiddler.
>
> What I want is for those new Tiddlers that are created by clicking on 
> links in text, to be created with some text already in them. I'm not 
> worried about adding tags at this stage.
>
> Is there a system default Tiddler (or some other mechanism) that I can 
> edit or create so that ALL Tiddlers created when clicking on a text link 
> will have my default text in them?
>
> Many thanks for your time
>
> Jax
>
>
> -- 
 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/tf-7T3zxEo0/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 tiddlywiki+...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/tiddlywiki/5c301311-9a8d-4ba7-be08-7cabce896fecn%40googlegroups.com
  
 
 .

>>> -- 
>> 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/tf-7T3zxEo0/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> tiddlywiki+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/9f53952d-5ab2-42a2-9531-8081270fec3en%40googlegroups.com
>>  
>> 
>> .
>>
>

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

[tw5] Re: Is WIKI5 bit compatible with internet explorer?

2021-05-01 Thread Dyllon Gagnier
TW does support IE 10+, but I would *highly* recommend never using IE 
unless you are required to do so for some reason. As an employee at 
Microsoft over the past year, I can honestly say that I have never seen nor 
even hear of anyone using IE for any purpose. It's slow, buggy (in terms of 
not supporting web standards correctly), and will not be supported by 
Microsoft for most web apps starting this year (Microsoft will stop 
supporting Internet Explorer in 2021 | IT PRO 

).

That being said, I know some corporate environments in particular are 
pretty weird about mandating IE. For your specific problem, if you can 
scroll in the normal page (called the story river), but not the edit window 
of a Tiddler, it is likely the height of the edit window is being limited 
for some reason. I think there is a setting to control this, but I can't 
seem to find it myself. However, I think I've seen what you are describing 
before outside of IE. You can work around this by using the keyboard to 
scroll the line up and down.

On Friday, April 30, 2021 at 2:36:24 PM UTC-7 zela...@mail.fresnostate.edu 
wrote:

> I cant use scroll down or up when editing Tiddlers on InternetExplorer
> is this as known issue?
>

-- 
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/c0b8c8de-be0a-4571-8c77-f5a719c21ecfn%40googlegroups.com.


[tw5] Difficulty installing Stroll on Node

2021-05-01 Thread Philip White
Hi, I'm trying to install an empty version of Stroll on Node. I've managed 
to get TW 5.1.23 running fine on Node. And I've got the empty html version 
of Stroll working fine in Safari, Chrome and Firefox. All on my Mac Mojave. 
I've also dragged the $:/giffmex/stroll tag pill into my Node version of TW 
5.1.23, where it appears as the "Untitled" tiddler containing a load of 
lines like $:/language/Buttons/NewHere/Hint 
$:/language/Buttons/NewJournalHere/Hint $:/config/NewJournal/Title 
$:/core/ui/ControlPanel/StoryView. I've restarted Node and TW many times 
since the Untitled tiddler was imported.

Options seem to be 1) getting the Stroll html version to work on Node, but 
I don't know how to get the Stroll code from the html file so that TW 
executes it; or 2) somehow get the Untitled tiddler stuff to execute (just 
once, or at every startup?) in my Node version of TW. 

Any ideas?

Thanks,
Philip.

-- 
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/c71300f8-9f0c-4b7f-b5a5-838029274cc6n%40googlegroups.com.


[tw5] Re: Custom sort order

2021-05-01 Thread joost van den Dool
Dear Max,

I had a similar problem with task statuses which I wanted to sort in a 
non-alphabetic way. I used the following:
<$list filter="[tag[Tasks]each[status]get[status]*sortby{!!sortkey}]*">

the sort key field was filled with the sortkeys separated by a space: next 
future done archived

I am not sure if this fully helps for the prefixes but hopefully it can set 
you in the right direction.

Kind regards,

Joost

Op zaterdag 1 mei 2021 om 03:52:28 UTC+2 schreef Max Rozeman:

> I use a 2-character prefix for tiddler headings, and 9 different 
> 2-character prefixes for tiddler headings. Tiddler headings are often 
> listed using <>. The problem is that the tiddler headings 
> need to be sorted in a particular non-alphabetical order: (SC, SP, ER, MV, 
> IR, SN, CT, AC, CO). An easy solution would be to add prefixes to the 
> prefixes, e.g.: (1 SC, 2 SP, 3 ER, ...) and sort headings using 
> [sort[title]], but that would be messy. Is there a better way that doesn't 
> require additional prefixes?

-- 
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/1d131069-3b34-499e-8dbf-e93e6863a4a6n%40googlegroups.com.


Re: [tw5] Where do I embedd form? I understand TiddlyWiki can't process it, something likeFormspree or Kwes.IO would take care of that.

2021-05-01 Thread Jeremy Ruston
Hi Naim

> Your modified code works on a locally hosted wiki, but how could you make it 
> work with at usual places static sites are hosted? KWES.io formspree.io and 
> such sites filter out spam and process the form since the host can't.
> Ok >>now<<  I 
> understand tiddlers can straight up take html code. But still, I don't know 
> how to reference this  externally hosted script. The code comes off kwes's 
> website, I can confirm it works on other SSGs like hexo and nextjs, just 
> couldn't figure out how on TiddlyWiki. I tried 
> 
> and
> 
> and
> 

TiddlyWiki isn’t really involved in the form submission, it’s handled by the 
browser. I suspect that the form hosting services that you’re using might 
indeed need some extra steps to combat spam. Are you running the wiki over HTTP 
or a file URI?

Best wishes

Jeremy.

> 
> 
> Any help appreciated, thanks.
> Sent with ProtonMail  Secure Email.
> 
> ‐‐‐ Original Message ‐‐‐
> On Wednesday, April 28, 2021 1:44 PM, Jeremy Ruston  
> wrote:
> 
>> Hi Naim
>> 
>> I adapted your example slightly and tried it in a tiddler on a local wiki. 
>> It worked for me in that the form was correctly sent to the server.
>> 
>> 
>> Your Email
>> 
>> Submit
>> 
>> 
>> I’d suggest trying to get the form working correctly within a standalone 
>> HTML file, and then once that’s working bring it into TiddlyWiki
>> 
>> Best wishes
>> 
>> Jeremy
>> 
>> 
>>> On 28 Apr 2021, at 03:27, 'naim.abou.darwish' via TiddlyWiki 
>>> mailto:tiddlywiki@googlegroups.com>> wrote:
>>> 
>>> Hi,
>>> Thanks for the awesome work put into TiddlyWiki. A non-linear personal web 
>>> notebook, fits my messy approach to work.
>>> I'm trying to collect some info on different dialects. I found a couple of 
>>> web form services that would work for me, but I can't figure out where to 
>>> embed the code. 
>>> from formspree something like
>>> https://formspree.io/f/{form_id 
>>> }" method="post">
>>> Your Email
>>> 
>>> Submit
>>> 
>>> From kwes.io  something like
>>> 
>>> >> action="https://kwes.io/api/foreign/forms/m6W5ZqUEo9xIbpfpYq36 
>>> ">
>>> Your Name
>>> 
>>> 
>>> Submit
>>> 
>>> I found this https://kookma.github.io/TW-Scripts/#Html5%20Forms%20Elements 
>>>  but 
>>> couldn't figure out where it goes. 
>>> Any help appreciated, thanks
>>> 
>>> Sent with ProtonMail  Secure Email.
>>> 
>>> --
>>> 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/0IvKbeSbV7XiVU3B0vWP9GXnKPTwD5AoUeu5ceKwucjeWYz7q6LKww-trWNNwPUKSkXUOH445hYwj1xS9SE3pQaTqeMhe2TmsgD0QedeOSc%3D%40protonmail.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/D37DD1CF-57F8-45D2-BFAC-A4CCF277F739%40gmail.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/axM2VxuATaHmKAQf2HYF6nUgugIhC6NrS5GwYocNz9TqafZKtqezaR7Q9RSR6yxco13MWpC298HzzvyaOpR7PQ98g1oCRL6fV0RV-RPZzj0%3D%40protonmail.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 

Re: [tw5] Looking for reading material: using javascript libraries in TiddlyWiki

2021-05-01 Thread Jeremy Ruston
> I'm not having much luck searching the web, and I'm hoping somebody can put 
> me on some kind of "for white belts" reading material.
> 
> Say one finds a small javascript library one wants to use with TiddlyWiki, 
> what are the options and the processes involved?
> 
> Does one include the libary (if so where?) in TiddlyWiki, then access the 
> libary functions via javascript macros ?
> 
> Total newb here with the whole concept, and not particularly knowledgeable 
> about javascript, so please be gentle !

It depends what the JS library does.

If the library does pure text manipulation (eg an anagram engine), then it 
should be fairly easy to wrap it up into a JavaScript macro. There are some 
examples here:

https://github.com/Jermolene/TiddlyWiki5/tree/master/core/modules/macros 


If the library converts markup to HTML, then it can be wrapped to be a parser - 
see the Markdown parser or the KaTeX parser for an example:

https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/katex/latex-parser.js
 

https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/markdown/wrapper.js
 


Things get much trickier if the library manipulates the DOM. One fundamental 
problem is that many libraries are written on the assumption that they will be 
used on a static page, and don’t automatically cater for dynamic content. In 
many cases, such libraries are old jQuery libraries that do things that can now 
be done with plain HTML or wikitext.

The simplest case is a library that produces output in a single DOM node. These 
can generally be turned into a widget. For example, the CodeMirror widget:

https://github.com/Jermolene/TiddlyWiki5/tree/master/plugins/tiddlywiki/codemirror
 


That is not an exhaustive list, what kind of library are you looking at?

Best wishes

Jeremy

-- 
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/F6928D64-1D81-4B68-BC3F-8B53E5B9A055%40gmail.com.