[tw5] Re: How can I prevent TW from trimming leading space in field transclusion?

2021-08-15 Thread PMario
On Sunday, August 15, 2021 at 9:19:57 AM UTC+2 TW Tones wrote:
 

>
>- The spacing you wish is something best done in the display of the 
>data and not in the data, what if they changed order? 
>
> I can only second that. If the data needs to be treated special, you will 
get a maintenance problem and it's errorprone. Everytime you forget about 
the special handling. It ends up to be more work. ...

-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/2a6668b8-1081-407c-979c-42bd03783a78n%40googlegroups.com.


[tw5] Re: How can I prevent TW from trimming leading space in field transclusion?

2021-08-14 Thread PMario
Hi,

Try this: <$transclude field="foo" /> <$transclude field="bar" /> 

See the red space! It should do the trick
-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/c8150fa7-a1d4-46c8-a257-d04b75dbeda9n%40googlegroups.com.


[tw5] Re: What's the process for moving a single-file TiddlyWiki to a TiddlyWiki on node.js?

2021-08-14 Thread PMario
On Saturday, August 14, 2021 at 9:30:58 PM UTC+2 PMario wrote:

> You have a very strange tiddler title, that start with: <$vars vWorkingTid 
> .   It seems to cause a problem with the node.js syncer. ... No 
> tiddlers are saved. ... I did disable it at import so all tiddlers seemed 
> to be created ... But .. see next issue ;)
>

It seems the prerelease can handle this strange tiddler name. .. That's a 
good thing :)

have fun!
over and out ;)
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/8c305fe8-6a23-4a68-889b-26999a617314n%40googlegroups.com.


[tw5] Re: What's the process for moving a single-file TiddlyWiki to a TiddlyWiki on node.js?

2021-08-14 Thread PMario
I'm not really sure, what the macro does, but if the .run function would 
look like this: 

exports.run = function() {
if ($tw.browser) {
const queryString = window.location.search;
try {
const urlParams = new URLSearchParams(queryString);
const wikicontext = urlParams.get('context');
var output = wikicontext;

if ( (output !== "OffGridding") && (output !== "HydroCutting"
)  && (output !== "Chromebook") ){
output = "ProductReviews";
};
document.title = output;
}
catch(err) {
output = "ProductReviews";
}
return output;
}
};

It will let the server start in a normal way. .. 

-mario

On Saturday, August 14, 2021 at 9:48:25 PM UTC+2 PMario wrote:

> Hi,
> Yea, if those 2 tiddlers are removed it works. ... Will have a closer look 
> at the macro. ... 
> -m
>
> On Saturday, August 14, 2021 at 9:45:19 PM UTC+2 PMario wrote:
>
>> On Saturday, August 14, 2021 at 9:35:11 PM UTC+2 cj.v...@gmail.com wrote:
>>
>>> getstartupcontext.js, that I can get rid of going forward.
>>>
>>> If you want, delete that tiddler from the process.
>>>
>>
>> It's astonishing that this mechanism works. ... Where did you get this 
>> implementation from?
>> The mechanism in "Set Startup Context" is completely new to me. ... And 
>> it seems to cause a problem in the server because it references the 
>> "window" object, which is only available in the browser. ... 
>>
>> So IMO there would only be a if($tw.browser) needed. ... Maybe
>>
>> -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/f7e852a3-f28c-4dfc-83f0-20d912f1c1c9n%40googlegroups.com.


[tw5] Re: What's the process for moving a single-file TiddlyWiki to a TiddlyWiki on node.js?

2021-08-14 Thread PMario
Hi,
Yea, if those 2 tiddlers are removed it works. ... Will have a closer look 
at the macro. ... 
-m

On Saturday, August 14, 2021 at 9:45:19 PM UTC+2 PMario wrote:

> On Saturday, August 14, 2021 at 9:35:11 PM UTC+2 cj.v...@gmail.com wrote:
>
>> getstartupcontext.js, that I can get rid of going forward.
>>
>> If you want, delete that tiddler from the process.
>>
>
> It's astonishing that this mechanism works. ... Where did you get this 
> implementation from?
> The mechanism in "Set Startup Context" is completely new to me. ... And it 
> seems to cause a problem in the server because it references the "window" 
> object, which is only available in the browser. ... 
>
> So IMO there would only be a if($tw.browser) needed. ... Maybe
>
> -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/80452021-13b9-4598-9be0-6a4037489f3an%40googlegroups.com.


[tw5] Re: What's the process for moving a single-file TiddlyWiki to a TiddlyWiki on node.js?

2021-08-14 Thread PMario
On Saturday, August 14, 2021 at 9:35:11 PM UTC+2 cj.v...@gmail.com wrote:

> getstartupcontext.js, that I can get rid of going forward.
>
> If you want, delete that tiddler from the process.
>

It's astonishing that this mechanism works. ... Where did you get this 
implementation from?
The mechanism in "Set Startup Context" is completely new to me. ... And it 
seems to cause a problem in the server because it references the "window" 
object, which is only available in the browser. ... 

So IMO there would only be a if($tw.browser) needed. ... Maybe

-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/ce7070b2-c6f6-4560-9f17-35c8efe33512n%40googlegroups.com.


[tw5] Re: What's the process for moving a single-file TiddlyWiki to a TiddlyWiki on node.js?

2021-08-14 Thread PMario
You have a very strange tiddler title, that start with: <$vars vWorkingTid 
.   It seems to cause a problem with the node.js syncer. ... No 
tiddlers are saved. ... I did disable it at import so all tiddlers seemed 
to be created ... But .. see next issue ;)

And there seems to be a getstartupcontext.js macro that I don't know. ... 
It causes a problem at server startup.

I'll investigate further and let you know. 

-m

On Saturday, August 14, 2021 at 8:54:15 PM UTC+2 cj.v...@gmail.com wrote:

> Hi,
>
> version 5.1.23
>
> Should I first upgrade the single-file TiddlyWiki from 5.1.22 to 5.1.23 ?
>
> On Saturday, August 14, 2021 at 3:39:14 PM UTC-3 PMario wrote:
>
>> Hi, 
>> Which TW server version do you use?
>>
>> tiddlywiki --version   will show it. 
>>
>> -m
>>
>> On Saturday, August 14, 2021 at 7:36:45 PM UTC+2 cj.v...@gmail.com wrote:
>>
>>> Hello all,
>>>
>>> I was under the impression that the html file for a single-file 
>>> TiddlyWiki could simply be dragged to the node.js TiddlyWiki for importing.
>>>
>>> Having tried this with two different single-file TiddlyWikis, the 
>>> node.js TiddlyWiki (i.e. a clean/unmodified new TiddlyWiki instance) cannot 
>>> be restarted after the import, getting all kinds of errors that seem 
>>> javascript related.
>>>
>>> Using this single-file TiddlyWiki 
>>> <https://intertwingularityslicendice.neocities.org/CJ_ProductReviews.html> 
>>> as the case study, what's the process to successfully import that 
>>> TiddlyWiki's tiddlers into a new and unmodified TiddlyWiki running on 
>>> node.js ?
>>>
>>> And are there other process steps to consider that may not need to be 
>>> considered in this particular example 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/8ce61e83-a3c6-4fa9-8847-ff3233ea0d27n%40googlegroups.com.


[tw5] Re: What's the process for moving a single-file TiddlyWiki to a TiddlyWiki on node.js?

2021-08-14 Thread PMario
On Saturday, August 14, 2021 at 8:54:15 PM UTC+2 cj.v...@gmail.com wrote:

> version 5.1.23
>
> Should I first upgrade the single-file TiddlyWiki from 5.1.22 to 5.1.23 ?
>

No. ... I did test it with the prerelease and it worked without a problem. 
I'll test it with 5.1.23 again.
-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/8e339f6f-27a0-400b-97cd-ef2c15dac7f7n%40googlegroups.com.


Re: [tw5] Re: System and shadow need some love

2021-08-14 Thread PMario
On Saturday, August 14, 2021 at 7:19:53 PM UTC+2 Stobot wrote:

> I agree that the other forms of search could be made a bit more 
> convenient, though I've gone back and forth on the best way to solve it. 
> For a few years I did what has been suggested, break the other options down 
> into tabs. As a minimalist though, nowadays I instead built a "smarter" 
> search bar that looks at the first character and changes search type 
> accordingly. I just opened the code for AdvancedSearch and copy pasted it 
> all into one search area. Now if my search bar starts with the:
>
>- "[" character it acts like I'm in the filter area
>- "$" character it acts like I'm in the system area
>- "!" character it acts like I'm in the shadow area
>- else, treats as a regular search
>
> That's a nice idea. I like it!
 

>
>- S - Search: Where I house the "smart" search bar.
>- O - Open: I just transclude the normal open sidebar tab
>- R - Recent: I just transclude the normal recent tab (though like the 
>idea below of separating / including system tiddlers!)
>- T - Tags: Kind of a mashup of the tags area, and some kind of global 
>table of contents - still a work-in-process. 
>
> Lots of CSS still to figure out (really not my strong suit), but I like 
> the way it's coming together. I aim to pair this with some introductory 
> videos etc. linking it to how to use it along-side other Office 
> applications like Outlook, Excel, etc. 
> [image: image.png]
> Anyways, sorry if that branches off too hard from your post David, but 
> just adding thoughts. 
>

That's pretty. I'm looking forward to that theme. If you need help, just 
let me know. 

-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/8caf029a-d7a5-4177-8136-e92ad0eb6bd1n%40googlegroups.com.


[tw5] Re: System and shadow need some love

2021-08-14 Thread PMario
On Saturday, August 14, 2021 at 4:01:54 PM UTC+2 David Gifford wrote:

This made me wonder, why couldn't there be something similar: do a search 
> from the default searchbar, and have standard, system and shadow come up as 
> tabs? 
>

I think this should be possible. ... The whole search behaviour has grown 
organically. I think nobody requested it in a reasonable interesting way. 
... I personally did create the advanced-search-plus (ASP) plugin, which 
perfectly fits my needs. .. So I don't have the desire to create new stuff 
as long as the existing behaviour is "just good enough" ;)
 

> This seems like it would be much more intuitive for users: search, then 
> filter results. As it stands, $:/AdvancedSearch does the opposite: it makes 
> you pick a type of search (standard, system, shadow, filter) first, and 
> only then can you do the search. The search string you want to enter may or 
> may not stay in your short term memory while you are figuring out which 
> type of search you want to do. It seems like it would be a better user 
> experience to 'dump' the search term first, then figure out which tab you 
> want.
>

That was 1 reason, why I did create ASP plugin. 

 

> On the same subject, Why is there no comparable "recent" tab for system 
> tiddlers? It seems like developers would benefit greatly having something 
> like that open as they work on macros, styling, buttons, etc. 
>

IMO Nobody requested it. But it seems to make sense. 
 

> I would love to hear your input: 
> Do you agree with me?
>

yes
 

> Why or why not? If so, should this be core pull request or a plugin? 
>

hmmm, That's a difficult question. ... You are a very advanced user 
already. So your desire IMO is very different to novice users. 
 

> What are the reasons $:/AdvancedSearch is set up backwards?
>

It has been implemented that way and it did make sense. I think nobody 
questioned it since now.
 

> Technical limitations? Workflow-related?
>

No ... It was developed that way and it worked. ... just good enough ;)
 

> What are the ways you work around these limitations?
>

As I wrote: advanced search plus plugin 
. ... There is a 
video on the plugin page. In combination with the "link-to-tabs" plugin it 
solves all my dev needs. 

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/0573053e-f885-46fa-8c93-89a4ee5410cdn%40googlegroups.com.


[tw5] Re: What's the process for moving a single-file TiddlyWiki to a TiddlyWiki on node.js?

2021-08-14 Thread PMario
Hi, 
Which TW server version do you use?

tiddlywiki --version   will show it. 

-m

On Saturday, August 14, 2021 at 7:36:45 PM UTC+2 cj.v...@gmail.com wrote:

> Hello all,
>
> I was under the impression that the html file for a single-file TiddlyWiki 
> could simply be dragged to the node.js TiddlyWiki for importing.
>
> Having tried this with two different single-file TiddlyWikis, the node.js 
> TiddlyWiki (i.e. a clean/unmodified new TiddlyWiki instance) cannot be 
> restarted after the import, getting all kinds of errors that seem 
> javascript related.
>
> Using this single-file TiddlyWiki 
>  
> as the case study, what's the process to successfully import that 
> TiddlyWiki's tiddlers into a new and unmodified TiddlyWiki running on 
> node.js ?
>
> And are there other process steps to consider that may not need to be 
> considered in this particular example 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/4b20a17d-4b48-4bb9-a36a-82204fa22eb4n%40googlegroups.com.


[tw5] Re: !!! ''foo'' does not appear as bold

2021-08-14 Thread PMario
Hi,
I did test it at tiddlywiki.com and it does, what it should do. So there 
may be a problem with your stylesheets somewhere. 
-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/b1ba581a-586c-4b4f-8635-786c67c15431n%40googlegroups.com.


[tw5] Re: Why is the menu so ugly?

2021-08-12 Thread PMario
Hi, 
This will be fixed in the next version. See the prerelease 
https://tiddlywiki.com/prerelease/
-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/514f13b3-b457-43a0-8301-c71542d0de73n%40googlegroups.com.


[tw5] Re: Feedback desired for HAL macro

2021-08-12 Thread PMario
HI,
The hover-animation could probably be borrowed from my links-to-tabs macor 
https://wikilabs.github.io/editions/link-to-tabs
It's CSS only, but it needs type: text/vnd.tiddlywiki to work properly.
-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/f39bce49-5d65-4bb0-8299-b32f9fc98c4dn%40googlegroups.com.


[tw5] Re: Feedback desired for HAL macro

2021-08-12 Thread PMario
Hi David,

You do have a very fine sense, what can be useful for other users. I like 
it!

On Thursday, August 12, 2021 at 3:09:21 PM UTC+2 David Gifford wrote:

Just got Pfizer shot #2 yesterday, and no reactions yet.
>

:)
 

> I was poking at the fixes I need to do on the Subsume plugin, and got 
> distracted enough to came up with this idea, somewhat similar:
>
> https://giffmex.org/experiments/hal.macro.html (HAL = header and list)
>
> I would appreciate feedback:
>
> 1. Is there a more concise / proper way to do the macro?
>

I did change quite a bit and hope you like it too.
 

> 2. Do you think the link and edit icons are too annoying? 
>

Yea .. a bit. Especially since you mention printing. So you probably don't 
want them to be shown on paper.
 

> Any suggestions?  (I am on the fence about how they look and whether the 
> 'view' link is necessary. If it were just for me, I would only have the 
> edit link. But if I share online content this way, some might want to open 
> a tiddler to view it, share a link it, print it, etc, and the edit stuff 
> would confuse them).
>

I can't  believe, that I will write this: You could make an "invisible" 
edit link, that will only show on hover. So only users, who know, where the 
link is will see it. 

For the "link" you could change the hal-caption() macro, that I did add to 
the code in a way that it will use a link to the title instead of the pure 
text. 

This behaviour could be changed with a global setting. eg: 
$:/.giffmex/hal/config/show-caption-link and a reveal-widget. The value 
defaults to "no". If it is set to "yes" then it shows the alternative view. 
... It would also be possible to switch between 2 macro names instead of 
"yes" and "no" ...

I think you can borrow some code from my 
 

> 3. Is there a way to set the list filter $view so that it displays: 
> caption field if there is one, and title field if there is no caption?
>

Yes. See the new hal-caption() macro in the code
 

> 4. Opinions: do you like it better with or without blurb field?
>

I do like this field, but imo this will depend on the users taste. 

---

I would suggest the following things. 

   - Make the macro code readable, to be able to change stuff
  - \whitespace trim  ... will remove the extra whitespace, so no 
  artefacts are part of the HTML code
  - Show caption if available ... Using the same mechanism as the core 
   /toc -macro
   - Made the macro code visible in view mode (Kudos go to Eric Shulman;)
   - Added the hal-blurb() macro, so it can be switched on / off in the 
   future. A macro makes future development easier
   - I did replace the SPAN elements with DIV elements. SPANs are inline 
   and DIV are block elements. So now "display: block" in CSS needed!
   - I did replace the B elements with STRONG because of some info at MDN 
    
   See 2nd paragraph there. 
   - I did remove all the  elements (except of 1), because they 
   should not be used for styling - CSS is used for styling
  - There is 1  element left, because it is needed if the "title" 
  + "blurb" is selected and copy / pasted. There needs to be a space in 
  between the title and the blurb
  - I did replace the spaces with tc-small-gap-left which is part of 
  the vanilla CSS 
  

 
  since 5.1.23. 
   

   - I did make the Stylesheet readable 
   - I did clean the Stylesheet a bit and add new elements needed
  - There is a hover "animation" for the buttons now
  - The mouse cursor changes shape, to give user-feedback, when they 
  are able to click something
   

Hope you like it.
Code is in the attachment

IMO that's not all things, that may be done. Especially the link- and 
edit-buttons could be improved with settings. 

"Well, I don’t think there is any question about it. 
It can only be attributable to human error. 
This sort of thing has cropped up before, and it has always been due to 
human error."
- HAL9000

-- 
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/6ba89888-d09f-4698-ac25-1f516cfaf033n%40googlegroups.com.


hal-suggestions.json
Description: application/json


[tw5] Re: Save to Github -- I keep getting "Error while saving: XMLHttpRequest error code: 404"

2021-08-12 Thread PMario
Hi, 
The only thing, that need to be checked for the access-token to save TW is 
as follows. Nothing else is needed and shouldn't be assigned. 

[image: github-token-save.gif]

-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/8b876d34-1685-4ba9-8ffa-3a84bef9001an%40googlegroups.com.


[tw5] Re: Better indexes through semantic modeling

2021-08-12 Thread PMario
On Thursday, August 12, 2021 at 1:31:00 AM UTC+2 springer wrote:

> Soren,
>
> In your "better indexes" essay you write:
> If we do have the full text included in each locus, we may want to write a 
> summary anyway and store it along with the full text: this way, we’ll be 
> able to create an outline later and more easily see what parts of the 
> document we’re hopping between.
>
> And it reminds me how certain enlightenment texts were printed with a 
> running outer-margin summary distilling key points (and of course the 
> cognitive work of spelling out those side-notes is considerable!). For 
> example, see the side-notes starting at p 49 (pdf-pagination) on this Adam 
> Smith manuscript: 
> https://oll-resources.s3.us-east-2.amazonaws.com/oll3/store/titles/237/0206-01_Bk.pdf
>
> For some tiddlywiki projects, I've started to employ a super-condensed 
> summary field (call it, say, the tldr field) that can be displayed for 
> certain purposes. Unlike the main body of the tiddler, the tldr is 
> text-only, maximum of a single sentence. (And if I can't summarize the 
> tiddler in one sentence, then it needs to be more than one tiddler. ;) ) Of 
> course, the fact that tw's standard search interface doesn't peek beyond 
> title and text field means this solution requires some building-around to 
> be useful. 
>

As I did read that section, I did think in a similar direction. I was 
thinking about a "teaser" text that is shown in "Blog overview listings". 
Sometimes it's the first paragraph of the text itself and sometimes it is a 
short summary, that comes later in the text. 

--

I did create a field-search plugin, that lets you configure additional 
fields that are shown in the search results. See: 
https://wikilabs.github.io/editions/field-search/

-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/e2a64d39-7a9e-4439-95f3-3dbfc4d4824cn%40googlegroups.com.


[tw5] Re: Introducing the RandomTiddlerButton plugin

2021-08-11 Thread PMario
Hi, 
Nice! - I do like the icon!
-m

On Wednesday, August 11, 2021 at 11:59:08 AM UTC+2 R² wrote:

> Hi all!
>
> Increase serendipity with RandomTiddlerButton, a basic no-nonsense plugin 
> that adds a "random tiddler" button to TiddlyWiki's page toolbar. Roll the 
> dice and a random non-system tiddler opens in your story river.
>
> Read more at https://github.com/SonephetR2/TW5RandomTiddlerButton and see 
> it in action at and/or drag and drop from https://sonephetr2.github.io/ to 
> your TiddlyWiki to install.
>
> This is a very modest plugin, though probably the first of a long 
> collection as I have more than a few custom macros, CSS implementations, 
> etc., that could make sense for other users. Given that this is the first 
> I'm releasing, please let me know if you see anything I could improve, 
> especially in the way it is packaged, if I have been naming everything 
> properly, etc.
>
> Best,
>
> R²
>

-- 
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/d5f08abb-5de6-46df-933e-424427a189b1n%40googlegroups.com.


[tw5] Re: Add items to a running tiddler

2021-08-11 Thread PMario
Hi anarchoNerd,

On Wednesday, August 11, 2021 at 4:46:25 AM UTC+2 anarchoNerd wrote:

> That's awesome, thank you. I only have a very very basic understanding of 
> javascript and want to learn,


The code that Eric posted is TiddlyWiki wikitext only. So JavaScript is 
working in the background to convert wikitext inth HTML.
 

> so I'm going to try and understand this as I implement it, so it may be a 
> bit. I'll let you know once I get it up and running.


Here are a links to the wikitext elements 

 
Eric used. 
 

> Unfortunately both my son and I were exposed to covid over the weekend and 
> we're waiting on test results, so I'm off work and have some extra time. 
> I'll start looking at it tonight and may have it figured out by tomorrow. 
>

I hope you both are well. Good luck!

-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/202a8221-723f-4c70-ab50-9f191545b5a9n%40googlegroups.com.


[tw5] Re: Presenting my plugin library

2021-08-11 Thread PMario
Hi Andrew,

It's nice, but why do you use a promotion image of an image hosting service 
as a backdrop image? 

Github lets you add your own images to gh-pages. So you should use this 
service instead of tickle users privacy concerns. 

Whenever you load an image from a 3rd party, you also ping them, that I'm 
visiting your page. .. I personally don't want this and the page doesn't 
contain an option to opt-out. ... :/

Sorry for ranting, but that and the animated psychedelic image, was the 
first thing that jumped into my eyes and made the page unusable. For me 
it's impossible to read the text on a transparent tiddler if the background 
image moves left and right. 

-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/5a6fc6da-9a23-4cd3-bdd7-19b70fd45bb9n%40googlegroups.com.


[tw5] Re: You ask, I Deliver: Language switching via Oral Command and a Promise of custom commands to come in the Text-to-Speech Plugin!

2021-08-11 Thread PMario
On Wednesday, August 11, 2021 at 8:41:12 AM UTC+2 BurningTreeC wrote:

> Hi @Finn,
> you should change "dutch" to "german" :)
>
 
Hi,
IMO it's not necessary to remove something, if it works but you should 
definitely add German. 
The TW full edition https://tiddlywiki.com/editions/full/ shows all the 
text translations we have. ... Not all of them are complete ... but anyway. 
-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/e1bbc10c-16ce-4635-81ba-7bb0dbba9d79n%40googlegroups.com.


[tw5] Re: TW the finite state machine

2021-08-09 Thread PMario
On Monday, August 9, 2021 at 7:01:42 PM UTC+2 davou...@gmail.com wrote:

I don't suppose there is documentation of TW as finite state machine. 


There is the TW dev documentation, that has been started, I think by 2 
students as a project to analyse the internal structure of TW. 
See: https://tiddlywiki.com/dev/  ... This docs shows most of the 
internals, that core developers need to know. 
 

> Probably not, but thought I would ask. What I mean is documentation broken 
> down as:
>
>1. Here are all the possible states TW can be in
>
> There are way to many states TW can have. All of the states the TW UI can 
have, are stored in tiddlers. ... Eg: The reveal widget 
 needs a state-tiddler to decide if 
it should be "open" or "closed". Depending on the value of a field or an 
index of the state-tiddler, the widget renders differently. The state of 
the field can be changed by actions. Actions are mainly triggered by 
buttons. ... Buttons are pressed by users. So in the end the whole system 
is "user event" driven. 

>
>1. Here are the rules for when TW is in a given state
>
> Most of the time the decision is created with matches. Eg. again the 
reveal widget has a type-field, where we define if it should compare the 
state-tiddler value with a given value. ... The result of the "match" 
decides if a state is eg: open or closed. ... 

Some other widgets have an "implicit" rule. Eg: the transclusion-widget 
. If the widget is called with a 
tiddler attribute that doesn't exist is uses the content between 
transclusion-start and transclusion-end as the "value" that should be 
shown. This mechanism allows us to create very simple wikitext code that 
uses a fallback, if a value is missing. eg: The right sidebar shows a list 
of tiddlers. If a tiddler has a caption-field it is used. If the 
caption-field is missing, we show the tiddler title. eg

<$transclude tiddler=<> field=caption>
<$text text={{!!title}}/>


The $view-widget has a very similar behaviour. ... 

>
>1. And here are the triggers that will change TW from one state to 
>another
>
> As I wrote. In normal cases changes are driven by the user. Whenever a 
button is clicked, there is usually an action-parameter somewhere, which 
triggers the change of a tiddler value. ... The TW core has an internal 
mechanism, that watches the state of every tiddler in the store. Whenever a 
tiddler is changed, a "change" event is triggered by the core. Every 
widget, that needs values from tiddlers listens to this "change" event and 
acts accordingly. 

Maybe there are too many states, or may different levels/granularities of 
> states.
>

The "granularity" the system can handle, is on the tiddler level. As above, 
every tiddler value change triggers a "change" event. So the smallest 
element we use to store state is a tiddler. 
 
hope that helps.
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/c0ab536d-c969-44f2-99a6-e34ac5b2584an%40googlegroups.com.


[tw5] Re: Presenting... Speech-to-Text plugin for TW5!!!

2021-08-09 Thread PMario
On Monday, August 9, 2021 at 4:09:53 PM UTC+2 flanc...@gmail.com wrote:

> @ludwa6,
>
> Because the plugin is still (sort of) in its Beta stage, you must load it 
> yourself. 
>

Beta with a 1.0.x version number? That's new. You should probably have a 
closer look at semantic versioning: https://semver.org/
For me it looks more like alpha. 
-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/7d24a871-44c5-462b-8410-d008fbf8cbd6n%40googlegroups.com.


Re: [tw5] CSS for tooltips in TiddlyWiki?

2021-08-09 Thread PMario
On Sunday, August 8, 2021 at 4:24:57 PM UTC+2 David Gifford wrote:

3. The above looks great, but then moments later the 'normal' TiddlyWiki 
> tooltip shows up. Is there any way to hide it? Or delay it so long it won't 
> interfere?
>

Hi
Remove the "tooltip" parameter from the widget you use. That should do it. 
-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/5c38c370-aa02-4e21-beff-31a6c0901a23n%40googlegroups.com.


Re: [tw5] Re: Dreaming of "TidEdit", an in-browser TiddlyWiki WikiText editor

2021-08-07 Thread PMario
On Saturday, August 7, 2021 at 4:19:52 PM UTC+2 cj.v...@gmail.com wrote:

i.e. just what is needed to create/edit/save WikiText (à la TiddlyWiki) to 
> a TID file.  Nothing else.
>

TLDR;

You are right, we may be able to strip about half of the *UI* size, but 
this would mean we will go backwards. ... 

--

As you probably know, browsers will only let you save to the Downloads 
directory and subdirectories with default browser plugins. 
With Timimi you can choose the directory, but you will need 2 components. A 
browser AddOn and an executable.

There is a new file-API for chromium based browsers, but they will also 
need a server somewhere in the background to use the functionality in a 
"secure" way. ... 
 

> No refresh mechanism going on, no loading up a whole TiddlyWiki (with all 
> the tiddlers and plugins), blazingly fast open of a small HTML file to 
> quickly enter some info/knowledge/content on the fly with whatever 
> device, with ability to save that tiddler, parking its the TID file 
> somewhere for later processing in the full TiddlyWiki.
>

In your first post you mentioned, that you don't need all toolbar buttons 
but some of them. ... So if you only want 1 of them, the software needed is 
the same as showing all of them. ... The mechanism to show 1 button is the 
same as to show many of them. It's only a different filter and a list. 

The same is true for the TW UI. It will be possible to create new 
...Templates, that are different to the existing ones, but the 
functionality to handle Page-, Edit- and View templates is the same as with 
a default TW. So I'm sure you don't safe anything in the core. 
 

> Sure I can tweak a TiddlyWiki by adding custom Tiddlers, but I'm talking 
> about a major strip down to have a simple editor for simple note-taking.
>

As I wrote. There will be no major strip down in wiki size. The startup may 
be faster, because less DOM elements are created. ... Especially no 
sidebar. 

At the moment there are 8 tiddlers tagged: $:/tags/PageTemplate ... 11 
tiddlers tagged: $:/tags/ViewTemplate ... 9 tiddlers tagged: 
$:/tags/EditTemplate ... 7 tiddlers tagged: $:/tags/SideBar ... and about 
33 toolbar buttons. 

So you may safe some of them but that's basically it. TW consists of about 
2100 shadow tiddlers in empty.html.  Nobody knows, how they are exactly 
interconnected. It would be possible to find it out, but that would be a 
lot of work I wouldn't want to do. 

TiddlyWiki 5.1.0 had 991 shadow tiddlers and about 1.1MByte in size. About 
460 shadows are $:/language tiddlers ... 

In 6 years users requested new UI functionality, which resulted in about 
1000 shadow tiddlers more and about 1MByte more size of the file. The 
system did grow organically, with a lot of interconnections here and there. 

You are right, we may be able to strip about half of the *UI* size, but IMO 
this would mean we will go backwards. ...

just some thoughts
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/35a5a231-04d0-4fd7-b6b4-9bbb97ac92cdn%40googlegroups.com.


[tw5] Re: Macro editor for KaTeX plugin

2021-08-05 Thread PMario
Hi folks, 

I want to add, that this is _NOT PRODUCTION READY_ at the moment. The PR at 
github looks good, but there is still some discussion going on. 

So it will be nice to get your feedback here or at github!

-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/ba3a8f4b-3d8d-4bfd-a831-b6edd4e2b5c9n%40googlegroups.com.


Re: [tw5] How do I store fields inside *.md files? As if it were a .tid file, without separating fields to the .meta file

2021-08-05 Thread PMario
On Thursday, August 5, 2021 at 2:56:28 PM UTC+2 Jeremy Ruston wrote:
...

> I certainly would draw the line at integrating a full YAML parser, but 
> there’s no reason why we couldn’t parse a simple subset of YAML fields from 
> MD files. 
>

I do agree here. The only thing we would need to implement, would be to 
search for the --- markers, strip them out and convert the rest using the 
TW parser. ... 

There is still the problem with the default nodejs behaviour, that it 
splits   type: text/markdown  files into 2 elements. We would need to 
change that back to write a single .md file with the "front-matter" stuff 
at the top. 

So we will need to support 2 versions. The problem is that it seems they 
didn't change the file extension. So we do have no real indicator if a file 
contains front-matter content or not. ... 

-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/11ee592e-dae3-4e9a-bd75-1b879160d110n%40googlegroups.com.


[tw5] Re: Table-of-Contents Macros

2021-08-05 Thread PMario
Hi, 
Which theme and which palette do you use in the screenshot?
-mario

On Thursday, August 5, 2021 at 4:27:46 PM UTC+2 S² wrote:

> Hello forum,
>
> for the TOC I use the macro "toc-tabbed-internal-nav".
> 1. Is it possible to sort the list?
> 2. where are the colors defined for the selected tiddler (hover)?
> [image: toc-tabbed.png]
>
> Thanks
> Stefan
>

-- 
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/c5287dcd-621d-4ab4-96ad-53e2845b6fd8n%40googlegroups.com.


[tw5] Re: How do I store fields inside *.md files? As if it were a .tid file, without separating fields to the .meta file

2021-08-05 Thread PMario
Hi Shereda, 

I think we didn't have this usecase yet. ... As I understand it, you want 
to keep the .md file extension but use the TW .tid fields section and be 
able to load the .md files into TW as if they where .tid files. ... That's 
new!

I'm not sure if we can and if we should provide this functionality. ... 
Markdown editors expect a common format if they read .md files. Using TW 
fields at the top is not standard for markdown. 

What is your reasoning behind that? What makes it impossible for you to 
have a .md.meta file which contains the field info?

-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/334a9546-f584-42b7-baeb-add5ed77c2f5n%40googlegroups.com.


[tw5] Re: personal help?

2021-08-05 Thread PMario
Hi,
As Tones wrote. Just use your own words to describe, what you want to 
achieve. ... It doesn't need to be TW wikitext or the like. IMO it's enough 
if you use: "If this  than that  should happen" .. Or 

show us some examples what you have and tell us what you want ... 

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/39648d5d-d1d7-4bce-a180-e7f3a6593d27n%40googlegroups.com.


[tw5] Re: Dragable items in List Tab?

2021-08-05 Thread PMario
Hi,
Here's the issue: https://github.com/Jermolene/TiddlyWiki5/issues/5939
-m

On Thursday, August 5, 2021 at 1:18:53 PM UTC+2 PMario wrote:

> Hi,
>
> >Is there some reason items in the List tab could not be made draggable 
> for re-ordering? 
>
> No. Nobody requested it yet ... 
>
> 
>
> I think it should be easy to change the $:/core/ui/TiddlerInfo/List 
> tiddler to contain a <> macro. 
>
> ... BUT ... 
>
> There is a problem. The existing code uses an emptyMessage=< List/Empty>>  ... to display some info if no "list" tiddler is present or 
> the list is empty. 
>
> We will need to extend the <> macro with an 
> emptyMessage parameter, to create a backwards compatible function. 
>
> I'll create a github issue with your proposal. 
>
> -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/f916dfa5-9e1d-4a8e-8fbc-7989c6d0e5a2n%40googlegroups.com.


[tw5] Re: Dragable items in List Tab?

2021-08-05 Thread PMario
Hi,

>Is there some reason items in the List tab could not be made draggable for 
re-ordering? 

No. Nobody requested it yet ... 



I think it should be easy to change the $:/core/ui/TiddlerInfo/List tiddler 
to contain a <> macro. 

... BUT ... 

There is a problem. The existing code uses an emptyMessage=<>  ... to display some info if no "list" tiddler is present or 
the list is empty. 

We will need to extend the <> macro with an 
emptyMessage parameter, to create a backwards compatible function. 

I'll create a github issue with your proposal. 

-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/c30377f9-9fc8-4873-8bcc-e7f9b5924e2an%40googlegroups.com.


[tw5] Re: Need location of tiddler controlling link behavior

2021-08-04 Thread PMario
Hi,
If a link is clicked, TW sends a tm-navigate message, which is catched by 
the navigator widget. 
There is a link-catcher widget, which will allow you to do a different 
thing instead using action widget. 

If you would be more concrete, what you try to achieve we could probably 
point you in the exact direction. 

Especially, if you want to control clicks in the story-river or if you want 
to change links in the sidebar. There is a big difference, where to place 
your changes.

In the meantime have a closer look at. 
https://tiddlywiki.com/#LinkCatcherWidget

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/49695d50-924c-451b-aa66-28324fe4cbc0n%40googlegroups.com.


[tw5] Re: $edit-text loses focus on input... or does it?

2021-08-04 Thread PMario
Hi Eric,

I think it's because the tiddler-widget does much more and different things 
as the list widget. See the code: 
https://github.com/Jermolene/TiddlyWiki5/blob/8e69284e8c6b99a6aa8d3d1001d5a1920d814a9c/core/modules/widgets/tiddler.js#L91
 
see the  newTiddlerState.hash condition 

When the "target" tiddler is created, imo the tiddler-widget refresh is 
triggered by the core change-event, which causes a redraw of the 
tiddler-widget. .. When the tiddler exists, imo the refresh isn't triggered 
anymore since the "tiddler parameter" didn't change 

-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/038f9977-9dd4-4b8c-b6cb-79d759534517n%40googlegroups.com.


Re: [tw5] Re: Voting for the v5.2.0 banner artwork

2021-08-04 Thread PMario

Frank, 
also congratulation from my side. Well done!
-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/9d789a13-e480-4dc6-8168-373895f9b376n%40googlegroups.com.


Re: [tw5] 10 Years of TiddlyWiki Development in 7 Minutes

2021-08-03 Thread PMario
On Tuesday, August 3, 2021 at 6:10:52 AM UTC+2 Mohammad wrote:

> Mario,
>  This is amazing!
>
> One question: How did you make this?
>

I did use the software from https://gource.io/ which I did install using 
https://chocolatey.org/. 

I did record the whole thing using OBS Studio https://obsproject.com/ and 
playing the mp3 music, while the animation is running. If youtube adds the 
music later, the video quality gets worse.
 

> Can we use this with Tiddlywiki:
>

Sorry, no. Gource loads the history from the git repo and creates the 
animations. 
 
-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/6a8edc30-88ac-461a-806b-0469f940e38dn%40googlegroups.com.


[tw5] Re: 10 Years of TiddlyWiki Development in 7 Minutes

2021-08-02 Thread PMario
On Monday, August 2, 2021 at 10:13:45 PM UTC+2 strikke...@gmail.com wrote:

> Absolutely beautiful. Looking like an awful lot of work - constantly more 
> and  really all over the place. At the same time it is fitting for a 
> celebration - kind of look like firework.
>

Yea, I also thought so. Especially the "end scene" looks like a firework.
 

> Love it.
> Now we all know, why we love tiddlywiki so much.
>
> Thanks to Jeremy and all developers.
>

+1

-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/7ed6454a-b5f1-46db-93ee-dde2efdf8901n%40googlegroups.com.


Re: [tw5] 10 Years of TiddlyWiki Development in 7 Minutes

2021-08-02 Thread PMario
On Monday, August 2, 2021 at 9:55:29 PM UTC+2 Ste wrote:

> I have no real idea what I've just watched, small screen viewing probably 
> didn't help, but it looked impressive! 
> So was that a visualisation of git commits Mario? 
>

Yes. ... The green "flashes" are adding content. The red ones are deleting 
content. 
 

> It all looks like an awful lot of work so thanks Jeremy and everyone! 
>

It also shows, how many different contributors have been involved over the 
time. 

-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/9bfdc89b-bbc4-4fdc-ae38-1bbd1d4fd025n%40googlegroups.com.


[tw5] 10 Years of TiddlyWiki Development in 7 Minutes

2021-08-02 Thread PMario

10 Years of TiddlyWiki Development in 7 Minutes 
 

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/a741779b-9b8a-4d88-9b35-1989e2ccfd98n%40googlegroups.com.


[tw5] Re: Rules Pragma? and documentation

2021-08-01 Thread PMario
Hi,

Have a look at the ControlPanel : Settings tab. The first option lets you 
disable CamelCase wikilinks globally.

-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/97279791-8364-4556-91d2-ab316a6d9d2bn%40googlegroups.com.


[tw5] Re: Rules Pragma? and documentation

2021-08-01 Thread PMario
Hi,

As Eric mentioned. Some of your links are broken.

\rules alone does nothing.

-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/fce5898b-4c70-4767-bc46-8296fad23a8an%40googlegroups.com.


[tw5] Re: list tiddlers title with a delimiter (a character between items) resulting from a complex filter

2021-08-01 Thread PMario
Hi,

I don't understand the purpose. all[current] will only return 1 title. The 
currentTiddler. So why do you use [last[]] here?

-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/af4a5ac3-13e3-4f62-9a91-7fc765e20c80n%40googlegroups.com.


[tw5] Re: Highlighting duplicates in lists

2021-08-01 Thread PMario
Hi, 

Since Tony did present a workable solution, the issue was moved to the 
discussions section at github. 
https://github.com/Jermolene/TiddlyWiki5/discussions/5925

I still think, that a <> macro may reduce the complexity of the 
solution. 

-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/76d3f724-8046-4b33-8e70-a7f3106d8234n%40googlegroups.com.


[tw5] Re: Highlighting duplicates in lists

2021-07-30 Thread PMario
Hi, 
Your construction should look like this, if you want to have a UL list


<$list ...>
 ... your code 



Otherwise you will create invalid HTML code.


On Friday, July 30, 2021 at 1:03:33 AM UTC+2 mohamed...@hotmail.com wrote:

can i highlight tiddler 1 and tiddler 4 maybe in red ?
>

You can't do this with 1 list widget.

TW loops evaluate each element in turn. So when tiddler 1 is evaluated, how 
should the loop know, that there will be a second element in the future, 
that will have the same name. ... Except you know, how to time-travel you 
will need 2 lists. 

The first list will need to evaluate the list of duplicates and the second 
run will need to add an eg: .duplicate-element class to every element that 
is there multiple times. 

I could think of a construction in wikitext, but it would be complex and 
time consuming. I personally would create a javascript macro, that returns 
a list of duplicates, or even better a data-tiddler with the duplicates as 
index and the color as a value. 

So it would be simple to assign a class to the elements. ... 

just some thoughts. I also think it's a valid request, and we should think 
about it in more detail.

So if you raise an issue with a link to this thread at github, we won't 
forget it. ..

-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/1197881d-4a89-453c-aaa0-9a688dec910en%40googlegroups.com.


[tw5] Re: Questions re TiddlyWiki + nodejs for building TiddlyWiki editions

2021-07-28 Thread PMario
Hi, 
I think you don't miss much, if you use a single file TiddlyWiki, if it 
fit's your needs and you workflow. So as long as working with a single file 
doesn't drive you against a wall, there is no need to switch. 

Using TiddlyWiki with nodejs is just an other workflow. 

 --- A bit of history, which may let you understand things a bit 
better. 

First things first. 

 - TiddlyWiki exists since 2004
 - Ruby on rails was first released in late 2004
 - GitHub was founded early 2008  
 - Nodejs was released mid 2009
 - TiddlySpace was created 2010 and closed late 2016
 - TiddlyWiki5 development started 2010or2011 (Jeremy will probably know 
exactly)
   - First commit to github is from 5.0.0-alpha-11 on Nov. 2011
   - First beta was released Dez. 2013
   - V5.1.0 was released: 20. Sept. 2014



In the early days of TW5 also known as TiddlyWiki 2 the devs needed a way 
to build a single file wiki out of many source files, because it's easier 
to track changes, if you don't have to inspect a several 100 kByte file, 
which mixes HTML, CSS and javascript code. 

TW2 used to use unix shell- and ruby 
-scripts to build tiddlywiki. 
There are some artefacts  stored on 
github. The process was know as "cooking" ... Hence the name of the script 
to build a wiki was: "cook"  ... The script to split a single file, was 
named "ginsu" .. I have no idea what that means ;)

The whole build system was 100% dependent on the directory structure. If 
you didn't have the same structure as the devs it was close to impossible 
to build a new wiki. ... It was especially complicated, if you wanted to 
use windows as your development OS. 

All of that was really painful for new contributors, because usually you 
start with your own structure, just to find out, that you have to change it 
completely if you want to contribute to the TW core. 

The second thing which was a PITA, where the ruby-scripts. Ruby is a 
completely different language than javascript and it needs it's own 
development environment. It wasn't overly complicated to learn "just 
enough" of ruby, to create a build system. .. BUT still it was a second 
element, which had to be maintained on it's own. ... 

Lessons learned from TW2 and TiddlySpace, with TiddlyWiki 5 the whole 
process had to be much easier. For developers and also new contributors. As 
you can see in the timetable nodejs and GitHub where already available. 
Both systems where new, but very promising. 

nodejs was designed to run server-side javascript applications. 

nodejs as a build-system has the advantage that it uses javascript as it's 
main language. ... So it is possible to write code, that can run on the 
server and in the browser alike. ... That's a huge win. 

The tiddlywiki --server command once was a pure development helper. It was 
used to quickly test changes in the core code and immediately see what's 
going on.  It was also used to write documentation tiddlers in the browser 
as a single file per tiddler. Those tiddlers where easy to use with the 
version control system (git), and the editor UI could be TiddlyWiki. 

TiddlyWiki users found out about about the --server command and also wanted 
to use it for their own wikis, because of the "single file per tiddler" 
behaviour. 
A lot of development was and is going on to make the server more stable, 
more secure and add new features. 

The new command which let's you use all features is tiddlywiki --listen 

The server is able to serve static files from a /files directory. 
The server is able to use SSL certificates, so you can use https:// as the 
protocol
The server is able to implement a basic "role based" authorisation system, 
to define readers and writers
  - This is a multi user functionality, which imo is still in it's infancy 
state.
The server is able to import content from other wiki-folders
... 

All the commands can be seen at: https://tiddlywiki.com/#Commands

As always. There could be a lot more documentation to make it easier for 
users to work with the server. .. BUT it also needs feedback, so that we 
can see what's missing. 

-

Personal remarks. ... I personally would never connect the nodejs server 
directly to the internet without a proxy in front of it. .. Because of 
security concerns. ... Letting nginx- or an apache-server handle the 
certificates and the /file resources is probably much more efficient than 
letting the tiddlywiki server handle those requests. 

hope that helps 
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/f36093f6-a3d5-447b-b356-0b9d82d1c7ffn%40googlegroups.com.


[tw5] Re: Another set of eyes on my code

2021-07-28 Thread PMario
Hi,
These widgets may help debugging. 
https://tiddlywiki.com/#LogWidget:LogWidget%20ActionLogWidget
-m

On Wednesday, July 28, 2021 at 12:08:35 AM UTC+2 TW Tones wrote:

> Mark,
>
> Thanks, when I separate the code it also works. Just knowing your success 
> is important information. My suspicion is perhaps that one of the variables 
> I make use of is misbehaving and causing the code to be misread. I am loath 
> to wikify every variable just before use but I may need to do this to see 
> if I can identify the offending piece.
>
> I must say it can get difficult debugging larger solutions when we have 
> multiple layers of macros and transclusions. The cognitive overload is high 
> because so much is hidden within layers.
>
> Thanks for your help
> Tones
> On Tuesday, 27 July 2021 at 23:24:02 UTC+10 Mark S. wrote:
>
>> The thing is, I do see the second buttons after running the first button. 
>> So maybe I don't understand what you expect the code to do.
>>
>> I do change " {{$:/PSaT/fancy-fields/icons/edit-field}}" to "MY BUTTON" 
>> because I don't want to go spelunking all over the TW world to find the 
>> particular icon you're using. However, if you have instance where you 
>> forgot to install the icon, that would explain why the button appears to 
>> not be working.
>>
>> On Tuesday, July 27, 2021 at 4:23:10 AM UTC-7 TW Tones wrote:
>>
>>> Thanks all,
>>>
>>> Mario, I would share an example, but it is hard to extract a test case 
>>> because as I said "Deep within a larger project", I will see what I can do 
>>> if I get nowhere soon. 
>>>
>>>- Although when I extracted these macros from the others in an 
>>>attempt it started working.
>>>
>>> Charlie, I always cut and past but usually only from my own working 
>>> code. but I did remove some white space, thanks.
>>> Mark, I think that was an issue either not yet discovered as it would 
>>> not have being displayed however I corrected that to  $value={{{ 
>>> [get[text]] }}} 
>>>
>>> I will keep reviewing thanks all.
>>>
>>> Tones
>>>
>>> On Monday, 26 July 2021 at 22:49:29 UTC+10 TW Tones wrote:
>>>
 Folks,

 Deep within a larger project I have some macros. there is a button that 
 displays its tooltip but its actions are not occurring. I have spent hours 
 trying work out why it is not working when it did previously.

 Can anyone see why the first button is visible but not reacting, if it 
 did I would then see the second button. Any suggestions would be helpful.

 \define field-state-update() $:/state/$(fieldname)$-update
 \define tiddler-field-value-temp() 
 $:/temp/$(currentTiddler)$/$(fieldname)$-update
 \define field.update() 
 <$list filter="[!has[title]]" variable=nul>
<$transclude tiddler=<> field="field-view"/> 
 *   <$button class="tc-btn-invisible" tooltip="click to edit 
 $(fieldname)$">*
 *<$action-createtiddler $basetitle=<> 
 text="existence toggled in field.update macro"/>*
 *<$action-createtiddler $basetitle=<> 
 text=<>/>*
 *{{$:/PSaT/fancy-fields/icons/edit-field}}*
 *   *
 
 <$list filter="[has[title]]" variable=nul>
<$transclude tiddler=<> field="field-edit"/> 
<$button message="tm-delete-tiddler" param=<> 
 class="tc-btn-invisible" tooltip="finish update of $(fieldname)$">
{{$:/PSaT/fancy-fields/icons/edit-field}}

<$button class="tc-btn-invisible" tooltip="Restore $(fieldname)$">
<$action-setfield $tiddler=<> 
 $field=<> $value=<$transclude 
 tiddler=<>/> />
{{$:/PSaT/fancy-fields/icons/restore-field}}

 
 \end

 More info

 I invoke this with <>  and fieldname field-type-tiddler 
 is already set. The green filter never comes true, also proving 
 <> is never created.
 <$action-createtiddler $basetitle=<> 
 text="existence toggled in field.update macro"/>
 <$action-createtiddler $basetitle=<> 
 text=<>/>
 So the above actions do not occur.

 These lines in the above work on their own
<$transclude tiddler=<> field="field-edit"/> 
<$transclude tiddler=<> field="field-view"/> 

 Thanks
 Tones

>>>

-- 
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/c406b8d3-9ab1-46b3-9daf-f5448227bcafn%40googlegroups.com.


[tw5] Re: List Widget Filters "Only" operator

2021-07-27 Thread PMario
On Tuesday, July 27, 2021 at 2:26:23 PM UTC+2 TW Tones wrote:

[all[current]tags[]count[]match[2]then] +[tag[Tag1]] 
> +[tag[Tag2]]
>

Tony, Your filter uses all tiddlers that have 2 tags and starts to test 
them.

I did think about this: 

<$set name="condition" value="[tag[Tag2]tags[]count[]match[2]]">
  <$list filter="[tag[Tag1]filter]">
<> 
  
  

My filter uses all tiddlers, that have at least Tag1 and tests them if it 
has Tag2 and only 2 tags. ... Those tiddlers could have 1,2 or more tags. 
... 

Performace will depend on how the tags are used and how many tiddlers have 
2 tags ... 

-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/34769714-f766-40ec-84b4-c1a799e24c81n%40googlegroups.com.


[tw5] Re: List Widget Filters "Only" operator

2021-07-26 Thread PMario
Hi John, 
If you found a solution, it would be nice if you share it. 
If it still causes headaches, let us know. 
-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/5a3e8899-6434-4ed8-ac46-a891fbb4e7dcn%40googlegroups.com.


[tw5] Re: Another set of eyes on my code

2021-07-26 Thread PMario
Hi Tony,
I would have a look at it, if you'd provide a json with 2 or 3 tiddlers in 
it that I can import at tiddlywiki.com, which show the problem. 
Just with this code and the description, that I don't understand 100% it's 
hard to see a problem. 
I'm not in the mood to create a testcase, that I have to guess by myself. 
-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/1bb408c9-240d-477f-befc-719fc19ed52fn%40googlegroups.com.


[tw5] Re: List Widget Filters "Only" operator

2021-07-25 Thread PMario
UUPS, 
I didn't read your OP good enough, because my solution works for 1 tag 
only. ... BUT it should contain enough info to figure out, how the filter 
should look like for your problem;)
-m

On Monday, July 26, 2021 at 7:39:12 AM UTC+2 PMario wrote:

> Hi,
>
> In TW you sometimes need to think different, because filter sets can 
> dynamically change as you found out. 
>
> <$set name="condition" value="[tags[]count[]match[1]]">
> <$list filter="[tag[a]filter]"/>
> 
>
> In this example, the first filter tag[a] gets all tiddlers that have a 
> tag a. 
> The second condition is 
>   - get all tags of that tiddler,  
>   - count them and 
>   - compare to 1" ... So "a" is the only tag because of the initial filter 
> -> \o/
>
> The filter operator applies the condition to the current tiddler and 
> returns its title, if the condition is not empty. 
>
> See: 
> https://tiddlywiki.com/#tags%20Operator:%5B%5Btags%20Operator%5D%5D%20%5B%5Bcount%20Operator%5D%5D%20%5B%5Bmatch%20Operator%5D%5D%20%5B%5Bfilter%20Operator%5D%5D%20%5B%5BFilter%20Operators%5D%5D
>
> 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/113198f6-ed00-4723-8ec7-3569ed2003a7n%40googlegroups.com.


[tw5] Re: List Widget Filters "Only" operator

2021-07-25 Thread PMario
Hi,

In TW you sometimes need to think different, because filter sets can 
dynamically change as you found out. 

<$set name="condition" value="[tags[]count[]match[1]]">
<$list filter="[tag[a]filter]"/>


In this example, the first filter tag[a] gets all tiddlers that have a tag 
a. 
The second condition is 
  - get all tags of that tiddler,  
  - count them and 
  - compare to 1" ... So "a" is the only tag because of the initial filter 
-> \o/

The filter operator applies the condition to the current tiddler and 
returns its title, if the condition is not empty. 

See: 
https://tiddlywiki.com/#tags%20Operator:%5B%5Btags%20Operator%5D%5D%20%5B%5Bcount%20Operator%5D%5D%20%5B%5Bmatch%20Operator%5D%5D%20%5B%5Bfilter%20Operator%5D%5D%20%5B%5BFilter%20Operators%5D%5D

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/8ed1e781-cf6f-4c74-9329-c00b70b99374n%40googlegroups.com.


Re: [tw5] I broke the json pre-release :|

2021-07-23 Thread PMario
Hi,
There was no offence intended in my last post. Your tests are good and you 
already discovered a problem, that would have caused a severe problem in 
production, if you hadn't found it. ... So -- well done!

What I wanted to say is that we need to test all kind of filter operators, 
that can deal with fields. We need to test them with "strange" field names 
eg: {{xx}} [[xx]] {x} [x] <>  and so on. .. 

I'm pretty sure some of them will cause problems. Either filter expressions 
can't be created or they cause parser problems. 

For some solutions we will need the help of variables similar to some 
regexp expressions with tiddler titles. See the last example at 
https://tiddlywiki.com/#regexp%20Operator%20(Examples) 

and so on. I think, the range of problems that will come up are very 
similar to those we had or have with "strange tiddler titles". ... We'll 
see.

-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/5a1b8752-c8d0-44f9-82fb-a68a34294f23n%40googlegroups.com.


[tw5] Re: TiddlyWiki + nodejs: What are benefits and use cases?

2021-07-23 Thread PMario
Hi, 

I think the main advantage is, that you can easily build and test the 
latest version of TW on your local PC.
It lets you serve binary files eg: images or PDFs from a /files directory, 
so you don't need to include them in your wiki. 
With the new SSE plugin mentioned in the other post it will allow a basic 
multi user setup on the local network. 

It can be used to build different editions, that are shipped with TW eg: 
empty.html, or the German version which is interesting for me ;)
It can be used to run tw5.com-server to improve the TW documentation and 
create pull-requests to improve the docs at tiddlywiki.com

So for me it's mainly a development environment and a playground for my own 
wikis.

-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/9c7103bf-7ec6-4c2a-a715-876bf265af00n%40googlegroups.com.


[tw5] Re: TiddlyWiki + nodejs: What are benefits and use cases?

2021-07-23 Thread PMario
On Friday, July 23, 2021 at 11:03:38 PM UTC+2 Mark S. wrote:

>
>- It's the only official way to share a TW over the local network.
>
> It's also possible to share single file wikis on windows, with built-in 
IIS server and WebDav. I did discuss the setup at youtube: 
https://youtu.be/tpkQhKyqPzc

IMO it's relatively easy to setup and works very well with a "single file 
wiki" served from a server

IIS is also able to be a "reverse proxy" that runs a tiddlywiki server at 
port 80, so you can access it with http://localhost ... I personally do use 
this setting, since it creates single tiddler files and the server is 
automatically started with windows. So it runs in the background is just 
there when I need it. I intend to use this version with the new SSE (server 
sent events) plugin from Arlen22, which will start to work with v5.2.0 ... 

So I should be able to edit the wiki from the main PC and the laptop at the 
same time. 

-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/5240c39b-1507-4a45-bb17-2bda5cbd7f8bn%40googlegroups.com.


[tw5] Re: Getting relink to prevent obsolete permalinks

2021-07-23 Thread PMario
On Thursday, July 22, 2021 at 5:14:00 PM UTC+2 springer wrote:

And as much as you may "choose my tiddler names well enough when needed so 
> they need not change in future",  renaming a tiddler is not always a matter 
> of realizing that you failed to have foresight the first time around. (My 
> reason for invoking the Bombay to Mumbai change -- 
>

I think changes like this are easy to handle, without breaking "old" 
permalinks. There is no problem if you change Bombay to Mumbai and also 
change all links to be Mumbai. ... As long as you keep 1 tiddler named 
Bombay. It could contain eg:

Now [[Mumbai]] since 1995. 

If you have a look at wikipedia: https://en.wikipedia.org/wiki/Mumbai  ... 
The first thing it says is: "Bombay redirects here"

just a thought. 
-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/fee93558-5e48-48a7-9978-5d193dbb77d7n%40googlegroups.com.


Re: [tw5] I broke the json pre-release :|

2021-07-23 Thread PMario
Hi,
Nice tests, but you mainly test with tiddler titles, and not fields. Even 
if you have strange field names in your tiddlers. 

https://springerspandrel.github.io/tw/new-json-tw-experiment.html#Show%20related%20field-table%20(ViewTemplate)
 
.. The filter is probably broken, because the number of opne/close braces 
are wrong. The last closing brace is missing ...first[]]

BUT I didn't test the code. 

-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/45e40c11-3ca1-4061-b116-0e4adb0b7dc5n%40googlegroups.com.


[tw5] Re: Katex and TiddlyWiki: Some syntax does not work

2021-07-22 Thread PMario
Hi 
I did create an issue: https://github.com/Jermolene/TiddlyWiki5/issues/5907
-m

On Thursday, July 22, 2021 at 2:39:05 PM UTC+2 PMario wrote:

> Hi,
> It seems {align} support started with KaTex 0.13.0 ... The version used in 
> TW is 0.12.0 which is about 1 year old. 
> So we will probably need to make an update.
> -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/df1414dc-338b-4983-8d14-0cbc741f4608n%40googlegroups.com.


[tw5] Re: Katex and TiddlyWiki: Some syntax does not work

2021-07-22 Thread PMario
Hi,
It seems {align} support started with KaTex 0.13.0 ... The version used in 
TW is 0.12.0 which is about 1 year old. 
So we will probably need to make an update.
-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/a498401b-f74f-4412-923d-30b2b67badefn%40googlegroups.com.


Re: [tw5] I broke the json pre-release :|

2021-07-21 Thread PMario
On Thursday, July 22, 2021 at 3:24:54 AM UTC+2 TW Tones wrote:
 

> However am I the only one who still intends to keep field names to a 
> defacto naming standard such as i-am-afield no caps or spaces? so It is 
> easy for me to tell field names apart from text and titles!
>

No -- you are not.
 

> Of course I look forward to naming fields using tiddler titles (and the 
> value a relationship type etc..). and to contain special prefixes or 
> suffixes such as "-link" or (link)  but as a rule I would like a little 
> structure and naming rules. 
>

You wrote, you want to have tiddler titles as field names. So your 
field-rules have to be the same or a superset of your title rules. I would 
be surprised, if "no caps or spaces" is one of them. 
 

> This always helps retain a degree of simplicity when managing lots of 
> complexity.
>

Oh it will be funny, to deal with all the support requests here in the 
group, because some ancient and / or unsupported plugins will break. ... 
I'm not even sure, what my own plugins will do with "spaces" in field 
names. ...  I will have to check that. 

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/8cfa30df-32f9-4e3b-8076-b6917c918efcn%40googlegroups.com.


[tw5] Re: OpenAPI Explorer in TW

2021-07-20 Thread PMario
Hi, 

>SO @Mario: do you think as i do that an API Explorer in TW could be a 
useful tool in this pursuit? and, if so, then is it something that might be 
built w/ relative ease? 

I think, it would be a useful tool. .. The problem creating it from scratch 
with TW is, that it would be like "reverse engineering".  The programmers 
that create the API should be able to create an API explorer with ease. .. 
It may be a possible "side-product" of the API unit tests ... (just a 
guess!)

>From my point of view the farmOS.py library is a user-level library 
already. It abstracts the API - URL building process away, so imo it can't 
be used to create an API explorer. 

The info needed for an API explorer would come from 
https://github.com/farmOS/farmOS/blob/2.x/docs/development/api/changes.md#resource-endpoints
 
... 

An API explorer would know the different "entity-type" and "bundle" names 
and replace them with some dropdowns to build a valid URL eg: 
/api/[entity-type]/[bundle]  would result in /api/log/activity and so on. 

The different possible schemas may be seen at: 
https://github.com/farmOS/farmOS/blob/2.x/docs/development/api/index.md ... 
Since there is no link to a demo API, I don't know how this looks like. 

-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/f2d1347d-3bb6-48e0-821c-b07d597f356dn%40googlegroups.com.


[tw5] Re: OpenAPI Explorer in TW

2021-07-19 Thread PMario
Hi Walt,

After I did send my last post, I did find the new docs for version 2 of 
farmOS. I can see your dilemma 
 now. 

The question is, do you want to explore the V2 API or the V1.x API. It 
seems they are fundamentally different. 

-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/fcd2cb96-1398-49e7-8879-8bc521e84309n%40googlegroups.com.


[tw5] Re: OpenAPI Explorer in TW

2021-07-19 Thread PMario
On Thursday, July 15, 2021 at 6:10:22 PM UTC+2 ludwa6 wrote:

The problem is: the farmOS system  i use for 
> operational record-keeping is undergoing a major upgrade to version 2.0; 
> this presents a data migration challenge for me & the agronomist i'm 
> working with that would be greatly facilitated by an API Explorer.
>

I don't understand this. ... As far as I know, Drupal which is used as a 
backend for farmOS uses a database to store all the values. ... The "data 
migration" which is needed between different application versions should be 
done on the database level and not on the "user level". 

There may be new or different API options, but they need to be documented, 
otherwise an API explorer can't be created, because nobody would know how 
the different URLs need to look like. .. 

 

>   Good news is: farmOS has an OpenAPI that can be easily explored using this 
> open-source farmOS.py library  -by 
> anyone with adequate python chops, that is.  If only that were me!  But 
> really: wouldn't it be so much nicer to explore the API using something 
> like that TiddlyWeb API Explorer -a python project, as it happens.
>

There seems to be an farmOS.js, which would probably be easier to use with 
TW. 
 
-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/2e501a96-16f4-410a-8a33-169052f35ff2n%40googlegroups.com.


Re: [tw5] Re: Just the UI of tiddlywiki

2021-07-14 Thread PMario
On Wednesday, July 14, 2021 at 8:10:00 PM UTC+2 somen...@gmail.com wrote:

> Mario, yes I know that tiddlywiki is a html javascript engine.
> But I want something in the background, for example for managing 
> multiaccess and multiedit of same tiddler. I think it could be done with 
> backend.
>

TiddlyWeb allows access configuration, with policies. .. IMO there is no 
"multi-edit" functionality atm. 
 

> Mario, which shadow tiddler controls the pop up behaviour?
>

See the examples of the reveal widget. 
https://tiddlywiki.com/#RevealWidget. There is a "popup" button in the 3rd 
example.

-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/23bef187-b9fe-417f-8e79-1fd1e184879fn%40googlegroups.com.


Re: [tw5] New JSON Store Area Now in v5.2.0 Prerelease

2021-07-14 Thread PMario
On Wednesday, July 14, 2021 at 6:59:04 PM UTC+2 Mohammad wrote:

 Thank you for all your efforts. Does this testing include single file save 
> with tools like Timimi? 
>

It's related to single file wiki actions and especially 3rd party plugins. 
So it should be tested with real-world wikis. BUT 

MAKE BACKUPS and don't use your production wikis to test. ... Use "clones" 
;)
 

> Or is this more related to server backends?
>

no
 

> I noticed I have to update the Tiddler Commander plugin, as it forces 
> users to use lowercase names for field names and remove all nasty 
> characters! Now this restriction is lifted!
>

That's right

-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/19653d43-f826-49e0-9a8e-dd01ac4a6704n%40googlegroups.com.


[tw5] Re: Implications of "Tag Pollution"

2021-07-14 Thread PMario
On Wednesday, July 14, 2021 at 5:29:38 PM UTC+2 Stobot wrote:

I agree with most of the points of where fields are more useful than tags 
> as you get deeper and deeper into organization, and the methods make sense, 
> but often there's talk about a performance implication that I don't 
> understand, but am hoping to as I'm kind of a performance junkie. 
>

Field values and 
Tag values are internally indexed since TW version 5.1.20

Backlinks are indexed since 5.1.22

See: https://tiddlywiki.com/#Release%205.1.20 and search for "indexer" to 
see the release message and the link to the PR in the repo. 
 

> So my questions are:
> 1. Is the "bad" type of "tag pollution" related to number of unique tags, 
> or number of tiddlers *with* tags?
>

At the moment it should only be a "user management" problem, not a 
performance problem any more.
 

> Or both? For example I use my main TiddlyWiki for project organization and 
> most details are in fields, but almost every tiddler is tagged as either a 
> task, project, meeting, etc. So, I have a small number of unique tags, but 
> high number of tagged items.
>

Filters should be reasonably performant for your use-case 

2. What is the source of the associated negative performance impact?
>

It was the number of _all_ tiddlers. As Jeremy mentioned there in the 
release-note with 60 000 tiddlers the refresh time improved by the factor 
of 3. 
Refresh time will matter, if you eg: Switch tabs ... 
 

> I assume it has something to do with indexing - and if so there's probably 
> a speed vs. memory tradeoff. 
>

Yes, ... We trade more memory consumption for better speed _now_ 

-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/e00e8522-a611-4cb4-ad0c-6a87c0ad2a23n%40googlegroups.com.


Re: [tw5] Re: Just the UI of tiddlywiki

2021-07-14 Thread PMario
On Wednesday, July 14, 2021 at 1:38:46 PM UTC+2 somen...@gmail.com wrote:
...

> I will look into the code but it's a pitty to be TW2. Perhaps someone 
> could point to me where is the code of the UI in the code of official 
> tiddlywiki5. 
>

Hi Xavier,

I think there is a bit of a misunderstanding how TiddlyWiki works. ... 
TiddlyWiki is a self-contained single file wiki. ... No server is needed 
other than for serving a 
single file resource. 

TLDR;
I think it would be good, if you explain a bit closer what you want to do. 

--

If you open tiddlywiki.com it's served from a github page as a single 
6MByte index.html file. ... Since github does server side compression only 
about 2Mbyte are sent to the client. 

Everything you see UI wise is rendered on the client. ... It would be the 
same experience if I would send you myWiki.hmtl by e-mail. 

If I "permalink" to eg: https://tiddlywiki.com/#HelloThere  the browser 
will open the HelloThere tiddler, because the whole content is already in 
the client. No server is involved, the core code "catches" the URI fragment 
and displays the tiddler.

-

A TiddlyWeb server will also "only" create a single resource if you request 
https: //your-uri/index.html ... It will build the html file server side 
and send it as 1 file, that contains code, UI and data to the client. 

The advantage of TiddlyWeb is, that you also have some API routes that will 
let you request recipes, bags and single tiddlers, without any TW UI as 
text or JSON. There is a query language with which you can do server side 
search. 

The TW UI is about 2100 elements. If you download empty.html form 
tiddlywiki.com you can open the *$:/ControlPanel : Info : Basic* : tab and 
have a look a the "*Number of shadow tiddlers*": 2088 ... Most of them are 
responsible for the TW js core and UI. The whole TW UI is built using TW 
wikitext and tiddlers. 

-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/dbf71aa7-bea7-4a27-bdc2-c1b344e99ac8n%40googlegroups.com.


[tw5] Re: A more elegant filter?

2021-07-14 Thread PMario
Try this

<$set name=pattern value="^project$|^todo$">
<$list filter="[all[current]search:tags:regexp]">
found <>



-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/d0a977ce-1d8d-4223-adc0-1d90ce6656f4n%40googlegroups.com.


[tw5] Re: How to? " conflicts with wrap button

2021-07-13 Thread PMario
Hi,

Try this: 

<$action-sendmessage
$message="tm-edit-text-operation"
$param="wrap-selection"
prefix='<$macrocall $name=det tid="""'
suffix='"""/>'
/>

It's possible to cover the parameters in single quotes. 

-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/d0d0c404-5df6-41d0-8880-7df09dbef9abn%40googlegroups.com.


[tw5] Re: Just the UI of tiddlywiki

2021-07-13 Thread PMario
Hi Xavier,

You may have a closer look at: 
https://tank.peermore.com/tanks/tiddlyweb/TiddlyWeb

An overview may be found at: 
https://tank.peermore.com/tanks/tiddlyweb/TiddlyWeb

tank .. is a project from Chris Dent  the creator 
of all the TiddlyWeb python code. 
He runs those pages. .. So the best way would probably be to contact him. 
He can tell you where to start in a much better way than I do. 

https://github.com/tiddlyweb  ... see: TiddlyWeb repo
and http://tiddlyweb.com/ 
and https://pypi.org/project/tiddlyweb/

There is an API explorer https://tank.peermore.com/tanks/tiddlyweb/explorer

BUT ... This version of tiddlyweb was created for TiddlyWiki 2 now also 
known as: TiddlyWikiClassic or TWc

TiddlyWeb has much more possibilities than we use with the node-js version 
at the moment. 

So definitely try to contact Chris.

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/474f0af6-92d8-4298-9dd4-780e701db42an%40googlegroups.com.


Re: [tw5] Re: Is there a way to automatically save changes on TiddlyWiki?

2021-07-13 Thread PMario
On Tuesday, July 13, 2021 at 5:36:52 AM UTC+2 arlandri...@gmail.com wrote:

> Really sorry if I replied so late. I had a problem with my PC, this time 
> not related to Tiddly Wiki :D 
> This evening I will try your auto-save plug-in.
> At the moment, the only plug-in I have is Tiddly-Wiki 5 core.
> Anyway, when I imported my wiki the text that it wasn't imported was 
> already there.
> When I first imported the wiki, as I told you, I didn't have the  
> "disappering" issue, but in the recent days when I am using my PC again, 
> the scarying behaviour has occured again.
> So I don't really get the problem.
>

Hi, 
I did reply to your private mail and I'm confident, that my guesses are 
right. ... 
Please let me know, if I am right :)
When we are sure we sorted it out, we'll let the other know. 
-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/86cb1b71-ed93-4877-84e9-8b3fdce38aa9n%40googlegroups.com.


[tw5] Re: [Seeking Ideas] Issues with a TW in four languages ...

2021-07-12 Thread PMario
Hi, 
I was working on multi-language plugins. So the texts could be 
language-plugins which switch with the language. ... 

The problem I have atm is, that the plugin import dialogue wikitext is 
frustratingly complicated, which slows down the progress quite a bit. 

-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/a6480084-0a60-4680-b1ac-82c772560f1dn%40googlegroups.com.


[tw5] Re: Inconsistency is so frustrating

2021-07-11 Thread PMario
Hi,

I did create a little plugin that allows you to use "markdown-like"   
new-line markers at the end of the line. 

https://wikilabs.github.io/editions/space-space-newline/

So if you add 2 spaces OR 2 spaces and a backslash   at the end of the line 
you'll create a hard-linebreak. 

This behaviour is compatible with most markdown parsers. 

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/a8107875-c76a-4105-875b-fc1205ad0284n%40googlegroups.com.


[tw5] Re: Inconsistency is so frustrating

2021-07-11 Thread PMario
Hi David, 

I hope you feel better now ;)

So the only thing I can do here is : Try to explain how the parser 
algorithm works, so that you can see, why it behaves the way as it does. 

===

The tiddlywiki parser knows 2 types of rules

 - block rules   and
 - inline rules

For the whole tiddler content it always starts with "block mode" and starts 
to "scan" for "block rules". If a block is found it switches to "inline 
mode" and starts to look for "inline rules". ... I call this the "context" 
here in the post.

Here comes some ''bold'' text.  

It detects the whole text as a paragraph "block" ... which will be rendered 
like this: ->   Here comes some *bold* text 

As HTML code it looks like this:  Here comes some bold 
text. 

The P element defines the "block"
The ''bold'' wikitext is an *inline-rule* per definition.

That make sense. right?

--

So the question now is, how does the parser detect different blocks of 
text,  to create paragraph tags around them. ... We all know this rule: 2 
NewLines .. will split 2 text elements into separated paragraphs. 

eg: 

paragraph 1

paragraph 2

That makes sense. right?
-

text 1
text 2

Doesn't contain 2 new-lines but 1 ... It's inline mode and it will be 
translated to the following HTML code

text 1
text 2

You can see the new-line is still there BUT HTML ignores whitespace per 
specification. ... So the browser shows the text like this

text 1text 2

So it's not a TW problem, it's the browser that follows the rules. ... 
TiddlyWiki has a wikitext rule to compensate this problem 
. Hard-Linebreaks

"""
text 1
text 2 
"""

Which creates this: text 1text 2 which tells the browser to 
add line-breaks.  

A second method to achieve a similar result is Hard linebreaks with CSS 
.  Which works well for 
wikitext. It may cause problems with macros and widgets.



You may say: BUT the following macros only have 1 new-line between them. 

<>
<>

I say: Yes, you are right. ... But *macros *and *transclusions *have to be 
able to inherit the mode from their context. ... eg: 

\define bold(text) ''$text$''

Here comes some <> text. 

The parser starts at line 1 character 1 and detects some text. The "end 
marker" for text blocks is  2 new-lines
After the block of text is detected, it switches to *inline-mode*. 

It detects the macro within this context, so the macro is rendered in 
inline mode.

The text is translated to the following HTML code: Here comes some 
bold text. 

That's what we expect. Right?  

--

As written above macros and transclusions do inherit the mode from their 
context. 

Back to your example: Let's have a look at the "context" here. ... 

\define macrocall() aaa
\define macrocall2() bbb

<>
<>

The context is the whole tiddler body, which starts as block mode. 
Then the parser detects the start << and the end >> of a macro in line 1. 
... There is no other info
The mode is still block mode, that's why the macro is rendered in block 
mode like this: aaa
The parser detects macro start / end in line 2, which will be rendered like 
this: bbb   

That may not be, what you expected, but the behaviour is consistent. Humans 
may see the 2 macros as 1 block. ... The wiki parser does not. 

Try this a)

 - <>
<>

and this b)

 - <>

<>



add a) You can see that it detects some text in front of macro 1. So macro 
1 and macro 2 will be part of the text block and will be rendered in 
inline-mode
HTML output

 - aaa
bbb
 



add b) Now the  text and macro 1 belong together and macro 2 gets it's 
own block. 
HTML output

 - aaabbb 



If you compare the HTML output with my descriptions, you will see the 
algorithm is consistent. ... BUT it may not always be what we expect. 

I hope my descriptions are good enough to show how the "block" and "inline" 
detection works.  

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/777abd37-9df9-4b28-a5da-db1af00172dbn%40googlegroups.com.


[tw5] Re: How to make a more convenient method for selecting tags?

2021-07-09 Thread PMario
Hi, 
This plugin will only help you with your issue no. 1)
-m

On Friday, July 9, 2021 at 11:59:40 PM UTC+2 PMario wrote:

> Hi, 
> You could use my "Multi-column Dropdown" plugin. 
> https://wikilabs.github.io/editions/multicol-dropdown/
>
> The plugin only changes some CSS styles. 
>
> For an easy way to import and update my plugins you can have a look at 
> https://wikilabs.github.io/  and watch the video. 
>
> have fun!
> mario
>
> *PS - If you USE it: Support it <https://www.paypal.me/PMarioJo> :) * 
>

-- 
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/7c249f4c-102f-4fef-98da-ff12ebc16043n%40googlegroups.com.


[tw5] Re: How to make a more convenient method for selecting tags?

2021-07-09 Thread PMario
Hi, 
You could use my "Multi-column Dropdown" plugin. 
https://wikilabs.github.io/editions/multicol-dropdown/

The plugin only changes some CSS styles. 

For an easy way to import and update my plugins you can have a look at 
https://wikilabs.github.io/  and watch the video. 

have fun!
mario

*PS - If you USE it: Support it  :) * 

-- 
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/d3e81c51-60d9-4b97-88ee-325e50d29273n%40googlegroups.com.


[tw5] Re: [ Streams ] Version number changes

2021-07-09 Thread PMario
Hi Saq, 
Didn't know about Conventional Commits. Looks good. 

How did you create your changelog? 

I'd be interested in a similar workflow for my own plugins. 
At the moment I'm manually creating my change logs, which is a lot of 
"boring" work
-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/2dc1fdae-ebbb-4612-b65e-ff69e5fbff48n%40googlegroups.com.


[tw5] Re: Bob and keystrokes

2021-07-08 Thread PMario
Did you test it with 1 field first?
-m

On Friday, July 9, 2021 at 4:27:39 AM UTC+2 Ed Heil wrote:

> Thanks, Tones.  I will be interested to hear it when you are ready to make 
> your plans public.
>
> I've been working on the "edit in a temp tiddler" thing and made some big 
> ugly macros that do the job swimmingly.  I should be able to get the app 
> converted over to using temp tiddlers for editing, in general, soon.
>
> On Thursday, July 8, 2021 at 3:43:11 AM UTC-4 TW Tones wrote:
>
>> Ed,
>> A long answer is there are ways to edit the current tiddler, even without 
>> a temp tiddler. I am building a solution which does this now, it involves a 
>> little gymnastics and is hard to explain with too many different aspects to 
>> it. I will eventually publish something. 
>>
>> One handy way is to have a tiddler dedicated to editing other tiddlers. 
>> In there you select the tiddler you want to edit, and all your editing 
>> takes place on the not visible selected tiddler.
>>
>> Regards
>> Tones
>>
>> On Wednesday, 7 July 2021 at 23:25:01 UTC+10 Ed Heil wrote:
>>
>>> This is all great info, and clearly what I need to do.  I didn't realize 
>>> that there was special behavior for $:/temp tiddlers with respect to 
>>> saving.  (The only mention I can find on tiddlywiki.com is in "Naming 
>>> of System Tiddlers" which I thought was just about naming conventions, not 
>>> names which trigger special behavior.)  Now I've got to figure out whether 
>>> it's doable to fix my app piecemeal -- which has tons of editing fields 
>>> which act directly on the tiddler they're on -- or whether I need to 
>>> somehow start over with a temp-tiddler-based editing flow.  Ah well.  You 
>>> live and learn.
>>>
>>> Thanks again for pointing me at $:/temp.
>>>
>>>
>>> On Tuesday, July 6, 2021 at 2:09:13 AM UTC-4 PMario wrote:
>>>
>>>> uups forgot something, 
>>>> Clicking the [OK] button will work the other way around. Clone temp -> 
>>>> form and delete the temp. 
>>>> The edittext-widgets tiddler parameter will need to be a variable. ... 
>>>> depending on which tiddler is active atm. form or temp
>>>> -m
>>>>
>>>> On Tuesday, July 6, 2021 at 8:06:28 AM UTC+2 PMario wrote:
>>>>
>>>>> On Tuesday, July 6, 2021 at 4:29:30 AM UTC+2 Ed Heil wrote:
>>>>>
>>>>>> Thanks, TW, PMario.   What defines a temporary tiddler for these 
>>>>>> purposes?  Being under $:/temp/ ?
>>>>>>
>>>>>
>>>>> Yes. ... It depends how your form looks like and how the tiddler you 
>>>>> need looks like. I would define a view-mode for the form, where the edit 
>>>>> fields are not active, but show the content of the "form tiddler".  This 
>>>>> can be done with the "disabled" parameter since 5.1.23. ... 
>>>>>
>>>>> A button eg: [Config] will copy the "form tiddler" into the "temp 
>>>>> tiddler". If the temp tiddler exists, the "disabled" state will be 
>>>>> switched 
>>>>> to "no" and the values can be changed. [OK] [Cancel] buttons that 
>>>>> replaces 
>>>>> the [Config] button will be shown. 
>>>>>
>>>>> Cloning the "form tiddler" can be done with ActionCreateTiddlerWidget, 
>>>>> which has $template and $overwrite params since 5.1.22
>>>>>
>>>>> A disabled filter can look like this: disabled={{{ 
>>>>> [[$:/temp/form]is[tiddler]then[no]else[yes]] }}}  
>>>>>
>>>>> hope that helps
>>>>> -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/4f276966-0c36-4c63-8243-c651cd3fe25en%40googlegroups.com.


[tw5] Re: Windows tip for TiddlyWiki start-v

2021-07-08 Thread PMario

Hi Tony, 
That's a nice catch. I didn't know this. So thx for sharing.
-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/41c4a1dc-347b-450c-a1f2-79cfa986a163n%40googlegroups.com.


[tw5] Re: Bob and keystrokes

2021-07-06 Thread PMario
uups forgot something, 
Clicking the [OK] button will work the other way around. Clone temp -> form 
and delete the temp. 
The edittext-widgets tiddler parameter will need to be a variable. ... 
depending on which tiddler is active atm. form or temp
-m

On Tuesday, July 6, 2021 at 8:06:28 AM UTC+2 PMario wrote:

> On Tuesday, July 6, 2021 at 4:29:30 AM UTC+2 Ed Heil wrote:
>
>> Thanks, TW, PMario.   What defines a temporary tiddler for these 
>> purposes?  Being under $:/temp/ ?
>>
>
> Yes. ... It depends how your form looks like and how the tiddler you need 
> looks like. I would define a view-mode for the form, where the edit fields 
> are not active, but show the content of the "form tiddler".  This can be 
> done with the "disabled" parameter since 5.1.23. ... 
>
> A button eg: [Config] will copy the "form tiddler" into the "temp 
> tiddler". If the temp tiddler exists, the "disabled" state will be switched 
> to "no" and the values can be changed. [OK] [Cancel] buttons that replaces 
> the [Config] button will be shown. 
>
> Cloning the "form tiddler" can be done with ActionCreateTiddlerWidget, 
> which has $template and $overwrite params since 5.1.22
>
> A disabled filter can look like this: disabled={{{ 
> [[$:/temp/form]is[tiddler]then[no]else[yes]] }}}  
>
> hope that helps
> -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/11b3527e-fdce-4ffa-9d8c-d21eeb1e8ce1n%40googlegroups.com.


[tw5] Re: Bob and keystrokes

2021-07-06 Thread PMario
On Tuesday, July 6, 2021 at 4:29:30 AM UTC+2 Ed Heil wrote:

> Thanks, TW, PMario.   What defines a temporary tiddler for these 
> purposes?  Being under $:/temp/ ?
>

Yes. ... It depends how your form looks like and how the tiddler you need 
looks like. I would define a view-mode for the form, where the edit fields 
are not active, but show the content of the "form tiddler".  This can be 
done with the "disabled" parameter since 5.1.23. ... 

A button eg: [Config] will copy the "form tiddler" into the "temp tiddler". 
If the temp tiddler exists, the "disabled" state will be switched to "no" 
and the values can be changed. [OK] [Cancel] buttons that replaces the 
[Config] button will be shown. 

Cloning the "form tiddler" can be done with ActionCreateTiddlerWidget, 
which has $template and $overwrite params since 5.1.22

A disabled filter can look like this: disabled={{{ 
[[$:/temp/form]is[tiddler]then[no]else[yes]] }}}  

hope that helps
-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/c4226787-cf2c-4c06-9f61-53c071a0abd8n%40googlegroups.com.


[tw5] Re: Bob and keystrokes

2021-07-05 Thread PMario
Hi Ed,
You can create a form, that uses a temporary tiddler. Those tiddlers are 
not synced. Once your values are written you can hit a button, that copies 
the temp values to the real values. --> done
-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/dbf88ee0-802f-4b4c-b790-7d0c22212a87n%40googlegroups.com.


[tw5] Re: What is this weird error in "define"?

2021-07-05 Thread PMario
Hi, 
It would be much easier, if you posted the code, instead of images. I can 
test the code with a wiki, but I have to test the code from an image in my 
brain, which makes it much more difficult ... for me.

You didn't show the the code for "image-picker-list", which seems to 
contain the button, which doesn't work.

-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/870e8767-c5b6-483d-ba0a-e215b6d16351n%40googlegroups.com.


[tw5] Re: What is this weird error in "define"?

2021-07-05 Thread PMario
On Sunday, July 4, 2021 at 11:04:23 PM UTC+2 miket...@gmail.com wrote:

> And this shouldn't be restored if I canceled the changes and removed all 
> the extra symbols before?
>

It will be restored, if you changed it back to the initial state. If not it 
may be a bug, or you copy pasted some invisible character from the web 
above the \define statement. 

-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/d28c9913-bbff-4475-90e6-c5507c7b5230n%40googlegroups.com.


[tw5] Re: Spell checker that works with CodeMirror?

2021-07-05 Thread PMario
On Sunday, July 4, 2021 at 1:26:21 PM UTC+2 TW Tones wrote:

I assume then if you do not want to use an internet dictionary as you 
> source of word checks then perhaps you need the aforementioned 700k of data 
> that is a dictionary. 
>

No. I'm perfectly fine with the "Spell Check" preview option, using the 
browser built-in dictionaries. ... Since I can install different versions, 
I can freely switch between them, without adding bloat to the wiki. 
 

> Of course the browser allows us to download a dictionary to use the spall 
> check, but grammar is another thing. Arguably it lends itself to a 
> consolidated online database. So with privacy comes reduced functionality 
> "as a rule" when that functionality comes from an on demand database that 
> someone else curates.
>

I think: If something is free, I am the product. I'm very sceptic to send 
personal content for grammar checking to a 3rd party server where 
non-European legislative applies. 
 

> In am keen to know what you think about this apparent issue?
>

I'm pretty sure, that I'm not the first one with privacy concerns. I'm 
pretty sure, that someone else did publish an open-source solution, that I 
could use.

If I really need grammar checking I would search for an open-source 
project, that provides some docker images, that *I can build* - test and 
tweak for my own purposes. Then I would try to find the source for a 
browser addOn that I can configure or tweak to connect to my own server. 

I would probably have a closer look at: LanguageTool. I didn't fully reat 
their privacy statement  yet, so I 
don't know, if I would trust them or not. But it looks interesting. 
Especially since I did find some docker related stuff already. 

-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/b65b7ce4-a2a8-4e0c-a854-ac74efd21fe0n%40googlegroups.com.


[tw5] Re: What's the issue with IDs again?

2021-07-02 Thread PMario
On Friday, July 2, 2021 at 6:56:58 PM UTC+2 Mat wrote:

> In HTML one can apply an ID attribute to objects. I know this is not 
> possible in TW... but I don't get why. Can someone explain why this is not 
> possible or not appropriate, please.


Hi Mat, 

It is possible to use IDs with TW. ... BUT it won't be reliable. ... 

HTML element IDs are per definition unique. But with TW can't guarantee 
this uniqueness  since we have transclusions. So in the TW story-river it 
can happen that an ID is visible 2 or more times. 

The CSS definitions will most likely work. BUT depending on the browser 
implementation we can not guarantee a consistent behaviour for all 
elements. 

Have a look at this jsFiddle: https://jsfiddle.net/fLcdq7ut/17/  

The HTML code is like this:



  getElementById example


  Some ID text here
  Some classed text here

  blue
  red
  
  Some ID text here
  Some classed text here


The JS code is like this: 

function changeColor(newColor) {
  var elem = document.getElementById('para');
  elem.style.color = newColor;
  
  var elements = document.getElementsByClassName('para');
  for (var i=0; ihttps://groups.google.com/d/msgid/tiddlywiki/540e0f00-db45-45c0-b388-75521a576cc1n%40googlegroups.com.


[tw5] Re: Spell checker that works with CodeMirror?

2021-07-02 Thread PMario
On Friday, July 2, 2021 at 1:29:07 AM UTC+2 Scott Kingery wrote:

> Thanks for posting this. Works great with the standard editor and 
> Grammarly browser extension.  


There are 2 problems I see with tools like this. 

a) you need to be always online
b) You need to create an account and every word you type will be sent to 
their server. 

I personally have a privacy issue here. TiddlyWiki is a tool that lets you 
own your data. I wouldn't want to connect it to a tool that spies on my 
data. 

Just my opinion
-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/b0f08929-3947-489d-98e2-78aef296eb11n%40googlegroups.com.


[tw5] Re: Spell checker that works with CodeMirror?

2021-07-01 Thread PMario
On Thursday, July 1, 2021 at 3:28:11 PM UTC+2 TW Tones wrote:

> There seems to be a solution mentioned at the bottom of this thread 
> https://stackoverflow.com/questions/12343922/codemirror-with-spell-checker


It needs a 700kByte dictionary for English alone. As I wrote, the biggest 
problems with these spell checkers is size. 

-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/237805f6-6308-47fc-9776-cacaeeae05e2n%40googlegroups.com.


[tw5] Re: Spell checker that works with CodeMirror?

2021-07-01 Thread PMario
Uuups, I didn't read the text in the screenshot. 

It is a spell-checker and not a grammar checker. I don't know if there is a 
plugin, that also checks for the grammar. 
-m

On Thursday, July 1, 2021 at 12:34:00 PM UTC+2 S² wrote:

> Hello,
>
> spell check is not working:
>
> [image: spell check.png]
>
> Regards
> Stefan
> PMario schrieb am Donnerstag, 1. Juli 2021 um 11:06:30 UTC+2:
>
>> I did create an issue: 
>> https://github.com/Jermolene/TiddlyWiki5/issues/5841 at github
>>
>> -m
>> On Thursday, July 1, 2021 at 11:03:03 AM UTC+2 PMario wrote:
>>
>>> Hi,
>>> That's a very clever approach, since 3rd party libraries are always huge 
>>> in size, since they need language specific dictionaries. 
>>>
>>> IMO we should ship this little tweak with the codemirror plugin, so it 
>>> is available by default
>>>
>>> -mario
>>>
>>> On Thursday, July 1, 2021 at 10:14:52 AM UTC+2 mehequeda...@gmail.com 
>>> wrote:
>>>
>>>> I did exactly that to get the standard browser spell checker.
>>>> [image: spell_check.png]
>>>>
>>>> To get this I created a new tiddler:
>>>>
>>>>- named $:/custom/ui/EditTemplate/body/preview/spellcheck 
>>>>
>>>> <https://tiddlywiki.refeed.org/#%24%3A%2Fcustom%2Fui%2FEditTemplate%2Fbody%2Fpreview%2Fspellcheck>
>>>>- tagged with $:/tags/EditPreview
>>>>- field caption set to spell check
>>>>- content: <$edit-text class="tc-tiddler-frame"/>
>>>>
>>>> Alternatively you can import the tiddler from the attached file.
>>>>
>>>> And that's all.
>>>>
>>>> On Thursday, 1 July 2021 at 00:52:08 UTC+2 TW Tones wrote:
>>>>
>>>>> Si,
>>>>>
>>>>> I came across this in the past and created a simple alternative editor 
>>>>> to open the same tiddler as a simple textarea to enable Grammarly. Its 
>>>>> just 
>>>>> a spell check process.
>>>>>
>>>>> Tones
>>>>>
>>>>> On Thursday, 1 July 2021 at 05:30:43 UTC+10 Si wrote:
>>>>>
>>>>>>
>>>>>> I'm wondering if anyone knows of a spell checker browser extension 
>>>>>> that works with the CodeMirror plugin? I've tried Grammerly to no avail.
>>>>>>
>>>>>

-- 
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/9fa38c29-b034-4dca-9bc2-d9d7ebe71baan%40googlegroups.com.


[tw5] Re: Spell checker that works with CodeMirror?

2021-07-01 Thread PMario
Hi Stefan, 

In your screenshot it works on the right side as expected. .. BUT it seems 
you switched to German language. With right-click : Sprachen you should get 
a selector, to select the language. 

If there is no selector, you'll need to install a new dictionary. see: 
"Wörterbücher hinzufügen" .. I'm using: "British English Dictionary (Marco 
Pinto)" and  "German dictionary (de_DE)" 

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/70cd2aff-73e3-45b0-a8c0-7d51d6b66cbcn%40googlegroups.com.


[tw5] Re: Spell checker that works with CodeMirror?

2021-07-01 Thread PMario
I did create an issue: https://github.com/Jermolene/TiddlyWiki5/issues/5841 
at github

-m
On Thursday, July 1, 2021 at 11:03:03 AM UTC+2 PMario wrote:

> Hi,
> That's a very clever approach, since 3rd party libraries are always huge 
> in size, since they need language specific dictionaries. 
>
> IMO we should ship this little tweak with the codemirror plugin, so it is 
> available by default
>
> -mario
>
> On Thursday, July 1, 2021 at 10:14:52 AM UTC+2 mehequeda...@gmail.com 
> wrote:
>
>> I did exactly that to get the standard browser spell checker.
>> [image: spell_check.png]
>>
>> To get this I created a new tiddler:
>>
>>- named $:/custom/ui/EditTemplate/body/preview/spellcheck 
>>
>> <https://tiddlywiki.refeed.org/#%24%3A%2Fcustom%2Fui%2FEditTemplate%2Fbody%2Fpreview%2Fspellcheck>
>>- tagged with $:/tags/EditPreview
>>- field caption set to spell check
>>- content: <$edit-text class="tc-tiddler-frame"/>
>>
>> Alternatively you can import the tiddler from the attached file.
>>
>> And that's all.
>>
>> On Thursday, 1 July 2021 at 00:52:08 UTC+2 TW Tones wrote:
>>
>>> Si,
>>>
>>> I came across this in the past and created a simple alternative editor 
>>> to open the same tiddler as a simple textarea to enable Grammarly. Its just 
>>> a spell check process.
>>>
>>> Tones
>>>
>>> On Thursday, 1 July 2021 at 05:30:43 UTC+10 Si wrote:
>>>
>>>>
>>>> I'm wondering if anyone knows of a spell checker browser extension that 
>>>> works with the CodeMirror plugin? I've tried Grammerly to no avail.
>>>>
>>>

-- 
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/5767c636-e94b-439c-999e-cc226474322an%40googlegroups.com.


[tw5] Re: Spell checker that works with CodeMirror?

2021-07-01 Thread PMario
Hi,
That's a very clever approach, since 3rd party libraries are always huge in 
size, since they need language specific dictionaries. 

IMO we should ship this little tweak with the codemirror plugin, so it is 
available by default

-mario

On Thursday, July 1, 2021 at 10:14:52 AM UTC+2 mehequeda...@gmail.com wrote:

> I did exactly that to get the standard browser spell checker.
> [image: spell_check.png]
>
> To get this I created a new tiddler:
>
>- named $:/custom/ui/EditTemplate/body/preview/spellcheck 
>
> 
>- tagged with $:/tags/EditPreview
>- field caption set to spell check
>- content: <$edit-text class="tc-tiddler-frame"/>
>
> Alternatively you can import the tiddler from the attached file.
>
> And that's all.
>
> On Thursday, 1 July 2021 at 00:52:08 UTC+2 TW Tones wrote:
>
>> Si,
>>
>> I came across this in the past and created a simple alternative editor to 
>> open the same tiddler as a simple textarea to enable Grammarly. Its just a 
>> spell check process.
>>
>> Tones
>>
>> On Thursday, 1 July 2021 at 05:30:43 UTC+10 Si wrote:
>>
>>>
>>> I'm wondering if anyone knows of a spell checker browser extension that 
>>> works with the CodeMirror plugin? I've tried Grammerly to no avail.
>>>
>>

-- 
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/8b389534-c93c-478e-9191-3185d532a5d2n%40googlegroups.com.


[tw5] Re: Real-time updates to wiki

2021-07-01 Thread PMario
Hi Patrice, 
That's an interesting setup. ... If you write a .tid file into the store 
area at a default node server, you still have to restart the server and 
reload the clients. ... I don't know "bob" so I can't say if this situation 
can be handled there. 

On the other hand you did mention python, so I assume you should be able to 
directly send new content to the server using the tiddlyweb protocol. 

The new prerelease contains a new setting for the listenCommand 
. which allows you to 
enable Server Sent Events. 
So if you send new content to this server it will automatically transferred 
to connected clients. 

So you can upload a new image to your file store and then send a new 
tiddler with a _canonical_uri to the server, which will make it available 
to the clients. 

The existing implementation of SSE is _not_ a multiuser environment yet. 
But with some tweaks it can be one in the future.

-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/a07d2191-8bd5-418e-83f7-10c3ba29e94en%40googlegroups.com.


[tw5] Re: How to make a tree structure of the notes?

2021-06-30 Thread PMario
On Wednesday, June 30, 2021 at 10:50:28 PM UTC+2 PMario wrote:

want. ... so you can use tabs for "overall grouping" and create different 
> trees with tocP
>

not "tabs" -> should be tags

-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/76e7341e-d817-4231-8cb4-fdcd4b7d96b8n%40googlegroups.com.


[tw5] Re: How to make a tree structure of the notes?

2021-06-30 Thread PMario
On Wednesday, June 30, 2021 at 8:32:08 AM UTC+2 imleg...@gmail.com wrote:

> When I use tiddly I find it is easy to make a small piece of knowledge? 
> But I really need to make a tree structure of the notes, because the notes 
> I took are too scattered which make it hard to build a summary view of the 
> knowledge


You can use my tocP plugin, which allows you to create a TOC based on a 
"parent" field .. where "parent"  is just a convention. You can use any 
field name you want. ... so you can use tabs for "overall grouping" and 
create different trees with tocP

See. https://wikilabs.github.io/editions/tocP/

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/27107a5b-9276-4a0f-93f2-f23857d267fen%40googlegroups.com.


Re: [tw5] Re: [UPDATE] uni-link pugin V2.1.0 released

2021-06-29 Thread PMario
On Tuesday, June 29, 2021 at 3:28:05 PM UTC+2 TW Tones wrote:

... I would not be surprised if there were data sets one could import for 
> English at least to search for equivalents. 
>

You are right, there are javascript libraries that know how to handle 
singular / plural rules. The code is usually not very big. What makes up 
the size are the irregular rules, because they need to be hard-coded. .. 

https://github.com/plurals/pluralize/blob/master/pluralize.js ... is only 1 
of them and it only contains english rules. .. Just an example

-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/a65fb70a-faa2-4e35-a13f-df73658cbf89n%40googlegroups.com.


[tw5] Re: Importing 600 Markdown files into TiddlyWiki: how to?

2021-06-29 Thread PMario
On Tuesday, June 29, 2021 at 6:05:58 PM UTC+2 iv...@ivanferrero.it wrote:

> Thank you Tones for your reply.
> No I haven't tried drag and drop because of my fear to mess things up.
>

That's the reason why "backups" make me feel good ;)

-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/3673355e-6122-43e4-a5e5-627d06a22da7n%40googlegroups.com.


[tw5] Re: protected macros

2021-06-28 Thread PMario
Have a closer look at: 
https://tiddlywiki.com/#dumpvariables%20Macro:%5B%5Bdumpvariables%20Macro%5D%5D%20%5B%5Bdumpvariables%20Macro%20(Examples)%5D%5D

and: https://tiddlywiki.com/#LogWidget:LogWidget%20ActionLogWidget

They may help you to see what's going on. .. The later 2 can only be seen 
in the browser dev console. 

-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/23ae7f68-2e7c-4707-8fae-1b2bf9e3bf13n%40googlegroups.com.


[tw5] Re: protected macros

2021-06-28 Thread PMario
On Tuesday, June 29, 2021 at 1:43:23 AM UTC+2 jn.pierr...@gmail.com wrote:

> In a tiddlers tagged as #:/tags/Macro there is a public macro. It requires 
> other macros to achieve its goals, but these macros have no business being 
> used elsewhere.
>
> If I declare these macros in the same tiddler, they are exported. Bad :-( 
> To mitigate that, I have their name beginning with an underscore, meaning 
> to me not to use them elsewhere.
>
> But if two differentss macros tiddler both define their own _subMacro, 
> what _subMacro would be called? the one in the same tiddler or maybe yes, 
> maybe not, we can't say. This is the real problem.
>

No. That's a feature. This behaviour allows the core to define sensible 
defaults, that can be overwritten by the user at any time. As I wrote in 
the other thread. 

\define xx() xx

is a shortcut for 

<$set name=xx value=xx>
tiddler content


So *the local macro with the same name will always win!*If there is no 
local macro the predefined one will be used.

Global macros have an order. Typically they are initializes in alphabetical 
order by the tag. So if you have

title: a
tags: $:/tags/Macro 
text: \define me() a

and

title: b
tags: $:/tags/Macro 
text: \define me() b

For global macros the rule is:* The last one wins*

So yes. Your naming convention will influence the order, who macros are 
initialized. .. BUT since you know that now, you can *use it for your 
advantage* ;)

> A suggestion: could we say that any macro whose name starts by _ or even 
__ for compatibility's sake, is not exported even within a macro tiddler? 

*No*, because this would be not backwards compatible. But you can use this 
convention if you like, but the system won't enforce it. 

The way it is designed is consistent but not always obvious.

-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/bede2e6d-7723-441f-ad26-c79300dca3dcn%40googlegroups.com.


[tw5] Re: template: where is the widget???

2021-06-28 Thread PMario
On Tuesday, June 29, 2021 at 1:15:35 AM UTC+2 jn.pierr...@gmail.com wrote:

Here are some things that *change the current tiddler*:
>
>- Transcluding another tiddler with the {{curly braces}} syntax.
>- Using a $list widget to enumerate the outputs of a filter.
>- Directly setting currentTiddler with a $set or $vars widget.
>
> Does it mean that you can change the content of a var or that you stack up 
> vars, getting only the values from the top var?
>

You "stack up vars". So variables have a scope. That's the reason why we 
sometimse need a construction like this:

title: myTemplate

\define concat() $(currentTiddler)$-$(title)$

<$list filter="a b c" variable=title>
<>


Since the list-widget would "overwrite" the currentTiddler with the default 
setting we can provide a new variable name. In this case "title"
The currentTiddler is the tiddler, the code lives in. 

If you create a new tiddler named: test ... You can play with templates. 

title: test

{{myTemplate}}

---

{{||myTemplate}}

 

> Could it be used to have some kind of recursion in a safe way?
>

Yes. We use recursion a lot. eg: the toc-macros. 
 

> I was thinking of vars as immutable stuff because of the syntax that 
> declare them but no syntax to alter them otherwise.
>

As I wrote. Variables have a scope. They are valid inside the widget they 
are defined in . 

\define test() abc
\define test() xyz

<>  ... Will be xyz 

So the last one wins. The above code is a "*shortcut *of" 

<$set name=test value=abc>
<$set name=test value=xyz>

<>




Try this: 

<$set name=test value=abc>

<>

<$set name=test value=xyz>

<>




 

> And finnally, in a number of my templates, the template content is only 
> <>. It seems a bit out of touch with what your telling me with 
> what template are. In effect, myMacro is only used there. Would it b a 
> better idea to ditch the macro and have the macro body directly into the 
> template text? (yes, myMacro has no params.)
>

It depends. When your code is finished, it is probably more efficient that 
the template only contains the template text. 
But for testing the following makes sense. 

title: xTemplate

\define  myMacro() 
this code works but looks odd
\end

\define myMacro()
this code is  WIP but might look better in the end. 
\end

<>

This gives you the possibility to easily test new code, without overwriting 
your "old but working" code. ... BUT BUT BUT ... 
Once the new code works and is cleaner. You need to remove the old code. .. 
There should be only 1 "source of truth"

Otherwise you will have a nightmare to maintain your code .. trust me ;)

-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/609a6264-8676-45a5-ac1d-5820fb1f33fcn%40googlegroups.com.


Re: [tw5] Re: [UPDATE] uni-link pugin V2.1.0 released

2021-06-28 Thread PMario
On Monday, June 28, 2021 at 9:13:16 PM UTC+2 Si wrote:

> >>> The problem is, that I would need to add a generic way. It may work 
> for your, but an other user would probably have fun to link to [[foot]] ;) 
> ... 
>
> I'm not sure I understand what you are saying here! Is "[[foot]]" an 
> autocorrect error?
>

foot -> feet ... It was just an example where a "hack" breaks down. 

I was thinking about the "irregular" forms that are easy for humans but 
problematic for algorithms. 

-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/b2e715f7-d342-4ec6-9395-abd2e53c03f4n%40googlegroups.com.


<    1   2   3   4   5   6   7   8   9   10   >