[tw5] [TW5] Linking tiddlers between wikis

2019-12-28 Thread Jon
Hi, I want to link tiddlers from one wiki to another and found this on the forum https://groups.google.com/forum/#!searchin/TiddlyWiki/linking$20between$20wiki%7Csort:date/tiddlywiki/ycXUAZ9ngRE/Olz9dTrmAwAJ which suggested to me it might not be possible. However, I discovered that copying

[tw5] Re: Easy local saving with Python

2019-12-28 Thread Mohammad
More comments: - add a line for terminating the code - on windows ctrl+C works with a not good exit message On Saturday, December 28, 2019 at 8:22:43 PM UTC+3:30, UBi wrote: > > Hello, > > I had some spare time recently, so I tried to re-implement the Ruby Server > in Python: > >

[tw5] Re: Easy local saving with Python

2019-12-28 Thread Mohammad
Added to TW-Scripts. https://kookma.github.io/TW-Scripts/#Easy%20local%20saving%20with%20Python On Sunday, December 29, 2019 at 1:30:42 AM UTC+3:30, UBi wrote: > > I will describe my use case on Linux, Windows should work in a similar > fashion. > > My TiddlyWiki files live in /home/ubi/TW,

[tw5] Re: Easy local saving with Python

2019-12-28 Thread Mohammad
The script works fine, I am just curious about the message 404 appears on terminal window. I have highlighted them. Mohammad@6600K C:\TW\201. Python server $ python server.py 127.0.0.1 - -

[tw5] Re: Easy local saving with Python

2019-12-28 Thread Mohammad
I tested on Windows 10 and Python 3.7.5 and it works like a charm! This is really simple! We know Python is quite popular and many people use Python in their work! So this open new opportunities for using Tiddlywiki with Python projects! Some minor comments: 1. add date stamp before .html

[tw5] Re: Looking for a transclude trick (Challenge)

2019-12-28 Thread TonyM
Springer, Please describe "Clint Checkett's Redirect macro" because I have no idea what it does, so I can't give an indicator if there is a method to replace it. I am sure I know more than I used to with TW5. Regards Tony On Sunday, December 29, 2019 at 4:00:44 PM UTC+11, springer wrote: > >

[tw5] Re: Looking for a transclude trick (Challenge)

2019-12-28 Thread springer
Wow, Tony, thanks so much! I've just poked around the learning edition a bit, and have enjoyed it so far. I hope your site will help get me ahead of the curve, though the big dive will probably wait for summer. For now I have to find the right balance between indulging my geek-impulse (to

[tw5] Re: Looking for a transclude trick (Challenge)

2019-12-28 Thread TonyM
Springer, I may have mentioned I went through the same as you, making the big jump from TWC to TW5 in part you will need to unlearn things. Much more can be done in native TW5 than in TWC which demanded plugins a lot more. I can recommend downloading a full copy of tiddlywiki.com and making it

[tw5] Re: Looking for a transclude trick (Challenge)

2019-12-28 Thread springer
Tony, thanks! I did just post about it earlier this evening, with a link to my site . I'll look into currentTab... It sounds like I should rewrite my templates, but I'm still just barely treading water with my upgrade process. I'm still very far from

[tw5] Re: Looking for a transclude trick (Challenge)

2019-12-28 Thread TonyM
Springer, Do detail your issue re tabs, because I think we may already have a solution for tabs, it uses a template to transclude tabs and there is a variable called currentTab available inside each tab. Regards Tony On Sunday, December 29, 2019 at 11:12:32 AM UTC+11, springer wrote: > >

[tw5] Re: Looking for a transclude trick (Challenge)

2019-12-28 Thread TonyM
Folks, I found my own solution to this challenge using wikitext and macros rather than a javascript code change. Perhaps one of our backend developers could do better, but this works. The method is to parse the `<> variable to obtain the first value not equal to `<>` this may not be true in

[tw5] Re: Looking for a transclude trick (Challenge)

2019-12-28 Thread springer
Tony, I have a feeling your challenge may be related to my question about finding a way for transclusions to "behave" as I would hope them to when the tiddlers they're in get rendered as tabs, etc. Yes? I'll watch this post... Cheers. On Monday, December 23, 2019 at 7:01:11 PM UTC-5, TonyM

[tw5] Can I get template-based transclusions to stick to lowest level in nested contexts?

2019-12-28 Thread springer
Dear all, here's upgrade-troubleshooting post #3, with apologies if I failed to find an existing answer... The power of transcluded template tiddlers is enormous, and yet I'm frustrated by what happens when any tiddler that *uses* such a template is then itself shown within another tiddler

[tw5] Re: [TW5] Newbie can't call javascript macros

2019-12-28 Thread Khalfani Wadlington
https://tiddlywiki.com/dev/static/JavaScript%2520Macros.html Can we post that to the documentation. I just ran into this same issue and didn't know that On Monday, October 17, 2016 at 3:54:40 AM UTC-5, Jed Carty wrote: > > Any javascript that you edit doesn't take effect until the entire page

Re: [tw5] Re: Easy local saving with Python

2019-12-28 Thread Les Farrell
This seems to work fine on Windows, I'm not a python programmer but adding the line. os.system('"C:/Program Files/Firefox Developer Edition/firefox.exe" -url http://127.0.0.1:8080/mytiddlywiki.html') before HTTPServer(('localhost',8080),ExtendedHandler).serve_forever() Seems to starts up

[tw5] Re: Easy local saving with Python

2019-12-28 Thread UBi
I will describe my use case on Linux, Windows should work in a similar fashion. My TiddlyWiki files live in /home/ubi/TW, abbreviated ~/TW. There I placed the script as twserver.py. For a first test, I started it manually in a terminal window: /usr/bin/python3 ~/TW/twserver.py > Then I

[tw5] Re: Easy local saving with Python

2019-12-28 Thread Mohammad
Hi UBI, Would you please add some description with one example to let us how to use it for saving Tiddlywiki --Mohammad On Saturday, December 28, 2019 at 8:22:43 PM UTC+3:30, UBi wrote: > > Hello, > > I had some spare time recently, so I tried to re-implement the Ruby Server > in Python: > >

[tw5] Re: TW5: auto color background of transcluded text

2019-12-28 Thread Ton Gerner
Hi, If I do write the macro as: \define colortransclude(tiddler) @@background-color:yellow;<$transclude tiddler="$tiddler$" mode=block/>@@ \end it does not work. But if I do write the macro as \define colortransclude(tiddler) @@background-color:yellow; <$transclude tiddler="$tiddler$"

[tw5] Re: TW5: auto color background of transcluded text

2019-12-28 Thread Chuck R.
I also made another custom macro 'colormediv' where I used and tags (separately) and neither worked to change the background color. \define colortransclude(tiddler) <$transclude tiddler=$tiddler$ mode="block" /> \end I've also saved the TW5, and reloaded it from the TW5 sidebar to no

[tw5] Re: TW5: auto color background of transcluded text

2019-12-28 Thread Chuck R.
If I define the macro like this: \define colortransclude(tiddler) @@background-color:silver;font-weight:bold;<$transclude tiddler="$tiddler$" mode="block" />@@ \end The font-weight and font color is changed, but not the background color when the text is transcluded. So the CSS from the custom

[tw5] Re: TW5: auto color background of transcluded text

2019-12-28 Thread Chuck R.
Sorry all, this just isn't changing the background color. I wonder if the 'colortransclude' CSS gets overridden because it appears too early in the order of CSS rendering. I've also tried defining the macro with and without double quotes around the $tiddler$ variable and nothing works. The CSS

[tw5] Easy local saving with Python

2019-12-28 Thread UBi
Hello, I had some spare time recently, so I tried to re-implement the Ruby Server in Python: #!/usr/bin/python3 from http.server import SimpleHTTPRequestHandler, HTTPServer import datetime, shutil, os def makebackup(src): (srcpath, srcfile) = os.path.split(src)

[tw5] Re: TW5: auto color background of transcluded text

2019-12-28 Thread Julio Peña
Hello all, I tried Ton's and Eric's suggestions and all I get is the transcluded tiddler without the background color. I did a little experiment at Tiddlywiki.com and this is what I got: [image: color-trans.png] For some odd reason the background color does not render. Best regards, Julio

[tw5] Re: TW5: auto color background of transcluded text

2019-12-28 Thread Ton Gerner
Hi Chuck, One other thing I overlooked: @@background-color:"silver"; must be: @@background-color:silver; Cheers, Ton -- 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

[tw5] Re: TW5: auto color background of transcluded text

2019-12-28 Thread Eric Shulman
On Saturday, December 28, 2019 at 5:47:00 AM UTC-8, Chuck R. wrote: > > The "Study utilities" tiddler doesn't get transcluded at all now. My macro > is this: > \define colortransclude(tiddler) > @@background-color:"silver";<$transclude tiddler={{$tiddler$}} mode= > "block" />@@ > \end > > And I

[tw5] Re: TW5: auto color background of transcluded text

2019-12-28 Thread Ton Gerner
Hi Chuck, \define colortransclude(tiddler) > @@background-color:"silver";<$transclude tiddler={{$tiddler$}} mode= > "block" />@@ > \end > > > And I call the macro like this to transclude the tiddler: > <> > > Try \define colortransclude(tiddler) @@background-color:"silver";<$transclude

[tw5] Re: TW5: auto color background of transcluded text

2019-12-28 Thread Chuck R.
On Monday, December 23, 2019 at 3:54:40 PM UTC-5, Eric Shulman wrote: The "Study utilities" tiddler doesn't get transcluded at all now. My macro is this: \define colortransclude(tiddler) @@background-color:"silver";<$transclude tiddler={{$tiddler$}} mode="block" />@@ \end And I call the

[tw5] Re: what goes wrong here with: tm-download-file

2019-12-28 Thread Mohammad
I will add such tools to Favorites plugin will be published soon! On Saturday, December 28, 2019 at 3:56:46 PM UTC+3:30, Chuck R. wrote: > > This is a sample code to create an export button and lets save a set of >> tiddlers into a static .html >> > > That would be really handy, as I'm

[tw5] Re: Help reducing RAM usage when serving multiple tiddlywikis

2019-12-28 Thread Chuck R.
On Friday, December 20, 2019 at 4:14:28 PM UTC-5, Jed Carty wrote: > > When you use the normal node server it creates a new node process for each > one, that is why I made Bob just create a new wiki object. I have a little > raspberry pi 2 serving 20 or 30 node wikis without trouble using Bob. >

[tw5] Re: TW5: Cannot search for "5G", error "Search text too short"

2019-12-28 Thread Chuck R.
Someone can close this thread. -- 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

[tw5] Re: TW5: Cannot search for "5G", error "Search text too short"

2019-12-28 Thread Chuck R.
On Tuesday, December 24, 2019 at 6:59:18 AM UTC-5, Eric Shulman wrote: > > > Edit the shadow tiddler $:/config/Search/MinLength and change the value to > 2 > > > Thanks eric, it worked! -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To

[tw5] Re: TW5: Is there a way to count how many times a tiddler has been read?

2019-12-28 Thread Chuck R.
On Saturday, December 28, 2019 at 7:36:31 AM UTC-5, Ste Wilson wrote: > > There was an update to the Google analyitics plug in that allowed tracking > of tiddlers which was going to merged into the core but not sure it ever > happened. The version i was using broke with one of the recent

[tw5] Re: TW5: Is there a way to count how many times a tiddler has been read?

2019-12-28 Thread Ste Wilson
The red scene of embarresment reads: Syntax error in boot module $:/core/macros/i18n: Invalid or unexpected token SyntaxError: Invalid or unexpected token at eval () at Object.$tw.utils.evalGlobal (http://stephenteacher.tiddlyspot.com/:33006:22) at Object.$tw.modules.execute

[tw5] Re: TW5: Is there a way to count how many times a tiddler has been read?

2019-12-28 Thread Ste Wilson
There was an update to the Google analyitics plug in that allowed tracking of tiddlers which was going to merged into the core but not sure it ever happened. The version i was using broke with one of the recent updates. http://sycom.github.io/TiddlyWiki-Plugins/#Google%20analytics%20reloaded

[tw5] Re: what goes wrong here with: tm-download-file

2019-12-28 Thread Chuck R.
> > This is a sample code to create an export button and lets save a set of > tiddlers into a static .html > That would be really handy, as I'm currently considering splitting a bunch of tiddlers from my TW5 file into a separate file. I might have to split off 30-40 tiddlers. -- You

[tw5] Re: TW5: Is there a way to count how many times a tiddler has been read?

2019-12-28 Thread Chuck R.
Another option would be to exclude a given IP address (mine) that I would give in an exclusion list. That is, don't count hits from this list of IPs. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop

[tw5] TW5: Is there a way to count how many times a tiddler has been read?

2019-12-28 Thread Chuck R.
My setup: TW5.1.19 on Tiddlyspot.com I am curious if there is a way to count the number of times a person opens or reads a tiddler online. I'm wondering which tiddlers in a given file would be more popular, like if we could see a list of the 10 most read tiddlers. If I made an short url on