Re: [tw5] Re: Adjusting IFrame Trick I would like to implement in TW

2020-09-05 Thread TW Tones
Folks,

I just wanted to share a thought, what if we introduce a new window that 
can be brought forward or pushed to the back that retains an Iframe in a no 
refresh mode indefinitely? 

This would allow iframes into other services to avoid the tiddlywiki 
refresh!

You could call them no refresh tiddler windows, and allow a longer term 
consistent iframe.

Regards
Tony

On Sunday, 6 September 2020 06:34:35 UTC+10, Eric Shulman wrote:
>
> On Saturday, September 5, 2020 at 12:17:05 PM UTC-7, Jan wrote:
>>
>> it's marvelous. Your instruction was perfect. (...and I see that I was 
>> not really awake this morning.)
>> This is a great help to integrate external content into tiddlywiki, 
>> thanks a lot!
>>
>
> Good to know it's working.
>
> One more suggestion:
>
> When I checked your latest test case at 
> https://www.szen.io/Kunstgeschichte/#FlexframeTest, it gave a RMOD (Red 
> Message of Death) to report an "Uncaught Security Error".  This is due to 
> the fact that your test is attempting to modify a "cross-origin" IFrame 
> (with contents from wikipedia).  As I noted in my instructions:
>
> ** IMPORTANT NOTE: the src="..." file must be from the *same domain* as 
>> your TiddlyWiki file because, for security reasons, modern browsers do not 
>> permit "cross-domain" access to the "document" object of another file.*
>
>
> There's no way to make the code work for cross-origin references... but 
> you *can* suppress the error message by adding a try/catch wrapper around 
> the hook code, like this:
> exports.startup = function() {
>$tw.hooks.addHook("th-page-refreshed",function() {
>   setTimeout(function() {
>  try {
> var iframes = document.querySelectorAll("iframe");
> for( var i = 0; i < iframes.length; i++) {
>iframes[i].height = iframes[i].contentWindow.document.body.
> scrollHeight;
>  } catch(e) { /* do nothing */;   }
>   }, 1000);
>});
>$tw.hooks.addHook("th-navigating",function(event) {
>   setTimeout(function() {
>  try {
> var iframes = document.querySelectorAll("iframe");
> for( var i = 0; i < iframes.length; i++) {
>iframes[i].height = iframes[i].contentWindow.document.body.
> scrollHeight;
>  } catch(e) { /* do nothing */;   }
>   }, 1000);
>   return event;
>});
> };
>
> Let me know how it goes...
>
> enjoy,
> -e
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4a0510e5-5a4e-4735-99b6-2f12224a884do%40googlegroups.com.


[tw5] Re: Sort tiddlers by substring?

2020-09-05 Thread Eric Shulman
On Saturday, September 5, 2020 at 2:10:56 PM UTC-7, amreus wrote:
>
> My "people" tiddlers consist of the person's name and an ID number to make 
> them unique. How can I sort the tiddlers by the ID number?

example title: *Karl Roger Stanton (I234)*


This is hard to do (but still possible) using the current version of TW 
(5.1.22)

However, it is very easy using the new "sortsub" filter that is available 
in the next update (5.1.23)
currently in "pre-release"... 
see https://tiddlywiki.com/prerelease/#sortsub%20Operator)

Let's start by assuming that all your "people" tiddlers are tagged with 
"people" so you can find them easily.

Then, to sort by ID number extracted from the tiddler titles, use the 
"sortsub" filter, like this:
\define sub() [split[(]rest[]split[)]first[]]
<$list filter="[tag[people]sortsub]">
   <>


Notes:
* The $list finds all "people" tiddlers.
* The sub() macro defines the filter to extract the ID from each title
* The sortsub[] filter uses the extracted ID values to sort the titles in 
ascending order

Here's how to do the same thing using the current TW5.1.22:
\define getList()
<$list filter="[tag[people]]">
   <$vars id={{{ [split[(]rest[]split[)]first[]] }}}>
  <$text text="[["/><>;<><$text text="]]"/>
   

\end

<$wikify name="people" text=<>>
<$list filter="[enlistsort[]]">
   {{{ [split[;]rest[]] }}}



Notes:
* getList() finds all "people" tiddler and, for each, it outputs a string 
of the form: *[[id;tiddlertitle]]*, including the square brackets (to allow 
for titles with spaces)
* $wikify invokes <> and converts the macro output into plain text
* $list enlists this text (converting it to a list of separate items) and 
then sorts it by the ID (which is now a prefix on each title)
* Then, it outputs each item, removing the prefix and the ";" used as a 
delimiter
* The result is the original list of [tag[people]], sorted by ID.

Hope this helps,

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4cb7a361-5b61-4e5c-8921-7678842da954o%40googlegroups.com.


[tw5] Re: Sort tiddlers by substring?

2020-09-05 Thread 'Mark S.' via TiddlyWiki
You will likely save yourself hours of headaches if you create separate 
fields for id and name.


On Saturday, September 5, 2020 at 2:10:56 PM UTC-7, amreus wrote:
>
> My "people" tiddlers consist of the person's name and an ID number to make 
> them unique. How can I sort the tiddlers by the ID number?
>
> example title: *Karl Roger Stanton (I234)*
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/077a5ccf-1d2d-4920-84b3-b245030dff68o%40googlegroups.com.


[tw5] Sort tiddlers by substring?

2020-09-05 Thread amreus
My "people" tiddlers consist of the person's name and an ID number to make 
them unique. How can I sort the tiddlers by the ID number?

example title: *Karl Roger Stanton (I234)*

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/27d22c48-793d-4bfe-929f-bbd818f02be0n%40googlegroups.com.


[tw5] Re: Code in code

2020-09-05 Thread Eric Shulman
On Saturday, September 5, 2020 at 12:58:44 PM UTC-7, vinvi...@gmail.com 
wrote:
>
> I see what you mean .. Somehow that happened with cut and paste. I don't 
> have it in my wiki that way.
> Here's what I've got so far: (The page title will now appear as a link, 
> the rest still doesn't work.) 
>
> <$macrocall $name="details" sum="<$link/>" src="""< filter:""[tagtag[NAME-OF-TAG]]">>""" class="alert-primary"/>
>

I see TWO double-quotes immediately after *filter:* ... there should be 
only one.

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5dd0b79b-ed69-49c1-8e4d-8be56ee8a2cco%40googlegroups.com.


Re: [tw5] Re: Adjusting IFrame Trick I would like to implement in TW

2020-09-05 Thread Eric Shulman
On Saturday, September 5, 2020 at 12:17:05 PM UTC-7, Jan wrote:
>
> it's marvelous. Your instruction was perfect. (...and I see that I was not 
> really awake this morning.)
> This is a great help to integrate external content into tiddlywiki, thanks 
> a lot!
>

Good to know it's working.

One more suggestion:

When I checked your latest test case 
at https://www.szen.io/Kunstgeschichte/#FlexframeTest, it gave a RMOD (Red 
Message of Death) to report an "Uncaught Security Error".  This is due to 
the fact that your test is attempting to modify a "cross-origin" IFrame 
(with contents from wikipedia).  As I noted in my instructions:

** IMPORTANT NOTE: the src="..." file must be from the *same domain* as 
> your TiddlyWiki file because, for security reasons, modern browsers do not 
> permit "cross-domain" access to the "document" object of another file.*


There's no way to make the code work for cross-origin references... but you 
*can* suppress the error message by adding a try/catch wrapper around the 
hook code, like this:
exports.startup = function() {
   $tw.hooks.addHook("th-page-refreshed",function() {
  setTimeout(function() {
 try {
var iframes = document.querySelectorAll("iframe");
for( var i = 0; i < iframes.length; i++) {
   iframes[i].height = iframes[i].contentWindow.document.body.
scrollHeight;
 } catch(e) { /* do nothing */;   }
  }, 1000);
   });
   $tw.hooks.addHook("th-navigating",function(event) {
  setTimeout(function() {
 try {
var iframes = document.querySelectorAll("iframe");
for( var i = 0; i < iframes.length; i++) {
   iframes[i].height = iframes[i].contentWindow.document.body.
scrollHeight;
 } catch(e) { /* do nothing */;   }
  }, 1000);
  return event;
   });
};

Let me know how it goes...

enjoy,
-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/86460c90-cb0c-4788-bdca-d4be78b96c70o%40googlegroups.com.


[tw5] Re: How do I remove a suffix from a variable?

2020-09-05 Thread Saq Imtiaz
PS: I realize now you may want addSuffix and not removeSuffix. Apologies.

On Saturday, September 5, 2020 at 9:57:05 PM UTC+2, Saq Imtiaz wrote:
>
> Something along these lines will get you there:
>
> <$set name="tiddlerToCreateFromTemplate" 
> value={{{[removeSuffix[Underground]]}}} >
>
> OR simplify
>
> <$list filter="[tag[templates]tag[EditingTemplate]]">
> <$set name="tiddlerToCreateFromTemplate" 
> value={{{[removeSuffix[Underground]]}}} >
> Use This Template: <>
> Create This Tiddler From Template: <>
> 
> 
> 
>
> On Saturday, September 5, 2020 at 9:05:24 PM UTC+2, leeand00 wrote:
>>
>> So I'm using a filter, and it's working great to remove the suffix and 
>> add another one...see below:
>>
>> [tag[templates]tag[EditingTemplate]] +[removesuffix[Template]] 
>> +[addsuffix[ - Underground]]
>>
>> Result:
>>
>> Spelling - Underground 
>> 
>> PunctuationMistakes - Underground 
>> 
>> VerbMistakes - Underground 
>> 
>> CheckAdverbAdjectiveMistakes - Underground 
>> 
>> CheckForUnnecesaryWordsMistakes - Underground 
>> 
>> LookForWeakSentancesAndPhrasesThatNeedMoreInformation - Underground 
>> 
>> LookForRepetitionOfWordsOrPhrases - Underground 
>> 
>> LookForVaguePhrases - Underground 
>> 
>> CheckParagraphing - Underground 
>> 
>> CheckForDumbOrIllogicalStatements - Underground 
>> 
>> CheckForColloquialismsSlangInformalPhrases - Underground 
>> 
>>
>> But...what I really want to do here, is remove the suffix and add another 
>> one in a variable so I can create a bunch of template tiddlers:
>>
>> <$list filter="[tag[templates]tag[EditingTemplate]]">
>>   <$set name="whichTiddlerTemplateName" value=<> >
>><$set name="tiddlerToCreateFromTemplate" 
>> value="<> - Underground" >
>> Use This Template: <>
>> Create This Tiddler From Template: <>
>> 
>> 
>> 
>> 
>>
>> In the second <$set> above (" tiddlerToCreateFromTemplate") I want to be 
>> able to remove the template prefix the way I did in the filter...so that I 
>> get  Spelling - Underground 
>> 
>>   
>> instead of  Spelling Template - Underground 
>> 
>>   
>>
>> how do I do that?  
>>
>>

-- 
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/31e7ed2d-ac5b-4e39-9d2c-55c34de83167o%40googlegroups.com.


[tw5] Re: Code in code

2020-09-05 Thread vinvi...@gmail.com
Thanks,

I see what you mean .. Somehow that happened with cut and paste. I don't 
have it in my wiki that way.
Here's what I've got so far: (The page title will now appear as a link, the 
rest still doesn't work.) 

<$macrocall $name="details" sum="<$link/>" src=""">""" class="alert-primary"/>



Op zaterdag 5 september 2020 om 17:33:05 UTC+2 schreef Eric Shulman:

> On Saturday, September 5, 2020 at 7:42:26 AM UTC-7, Eric Shulman wrote:
>>
>> <$link to=<>><$view field="title"/>
>>
>
> Addendum:
>
> Note that the above syntax can be reduced to just
> <$link/>
> because the to=... parameter defaults to the <> value, and 
> the display content defaults to the title being linked
>
> -e
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d4826379-f905-4c5a-af8c-dbcbd41508c0n%40googlegroups.com.


[tw5] Re: How do I remove a suffix from a variable?

2020-09-05 Thread Saq Imtiaz
Something along these lines will get you there:

<$set name="tiddlerToCreateFromTemplate" 
value={{{[removeSuffix[Underground]]}}} >

OR simplify

<$list filter="[tag[templates]tag[EditingTemplate]]">
<$set name="tiddlerToCreateFromTemplate" 
value={{{[removeSuffix[Underground]]}}} >
Use This Template: <>
Create This Tiddler From Template: <>




On Saturday, September 5, 2020 at 9:05:24 PM UTC+2, leeand00 wrote:
>
> So I'm using a filter, and it's working great to remove the suffix and add 
> another one...see below:
>
> [tag[templates]tag[EditingTemplate]] +[removesuffix[Template]] 
> +[addsuffix[ - Underground]]
>
> Result:
>
> Spelling - Underground 
> 
> PunctuationMistakes - Underground 
> 
> VerbMistakes - Underground 
> 
> CheckAdverbAdjectiveMistakes - Underground 
> 
> CheckForUnnecesaryWordsMistakes - Underground 
> 
> LookForWeakSentancesAndPhrasesThatNeedMoreInformation - Underground 
> 
> LookForRepetitionOfWordsOrPhrases - Underground 
> 
> LookForVaguePhrases - Underground 
> 
> CheckParagraphing - Underground 
> 
> CheckForDumbOrIllogicalStatements - Underground 
> 
> CheckForColloquialismsSlangInformalPhrases - Underground 
> 
>
> But...what I really want to do here, is remove the suffix and add another 
> one in a variable so I can create a bunch of template tiddlers:
>
> <$list filter="[tag[templates]tag[EditingTemplate]]">
>   <$set name="whichTiddlerTemplateName" value=<> >
><$set name="tiddlerToCreateFromTemplate" 
> value="<> - Underground" >
> Use This Template: <>
> Create This Tiddler From Template: <>
> 
> 
> 
> 
>
> In the second <$set> above (" tiddlerToCreateFromTemplate") I want to be 
> able to remove the template prefix the way I did in the filter...so that I 
> get  Spelling - Underground 
> 
>   
> instead of  Spelling Template - Underground 
> 
>   
>
> how do I do that?  
>
>

-- 
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/88bdcc5c-da10-4ab3-ad2c-66e1dd78982eo%40googlegroups.com.


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

2020-09-05 Thread Eric Shulman
On Saturday, September 5, 2020 at 10:31:56 AM UTC-7, Guido B wrote:
>
> This is brilliant and very hackable! Just one remark: there is a typo in 
> the showmonth-macro: in the fifth line, it should be "[calendar_highlight]" 
> and not "[calendar_highight]".
>

OOPS!  Fixed.  Thanks. 

I also took the opportunity to do a little more code cleanup/refactoring 
for readability

* removed \whitespace trim where not needed
* moved <$tiddler tiddler=<>> to outermost code
* moved first-of-month and days-per-month calculations to showgrid()
* refactored showday() to add showday_popup()
* refactored controls() into controls_getyear(), controls_getmonth(), 
controls_reset()

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e6e6dee4-73f8-492f-aa64-d34615897947o%40googlegroups.com.


[tw5] Re: Setting up Bob behind an HTTPS Apache proxy

2020-09-05 Thread Tejasvi S Tomar
After a sleepless night, I finally got it working with nginx (works 
flawlessly with websockets). Turns out only ws-server port and hostname is 
relevant for the setup. Below nginx config works with the default Bob 
settings and adds LetsEncrypt certs obtained from certbot. I have also 
added basic authentication support which are secure only over SSL. Partial 
demo at notes.mefyi.com.

server {
listen 80 default_server;
listen [::]:80 default_server;

root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name _;
location / {
auth_basic "Private Area";
auth_basic_user_file /etc/apache2/.htpasswd;
proxy_pass http://0.0.0.0:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
try_files $uri $uri/ =404;
}

}

server {

root /var/www/html;
index index.html index.htm index.nginx-debian.html;
server_name notes.mefyi.com; # managed by Certbot

location / {
auth_basic "Private Area";
auth_basic_user_file /etc/apache2/.htpasswd;
proxy_pass http://localhost:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
try_files $uri $uri/ =404;
}


listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/notes.mefyi.com/fullchain.pem; # 
managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/notes.mefyi.com/privkey.pem; 
# managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = notes.mefyi.com) {
return 301 https://$host$request_uri;
} # managed by Certbot

listen 80 ;
listen [::]:80 ;
server_name notes.mefyi.com;
return 404; # managed by Certbot

}

On Saturday, September 5, 2020 at 10:01:38 PM UTC+5:30 Tejasvi S Tomar 
wrote:

> Hi Enrico,
> Did you manage to figure it out? I am facing the exact same issue while 
> trying to setup Bob on VPS. There seems to be issue with the reverse 
> connection whie saving the changes. There are three things to configure in 
> settings.json: ws-server, saver, and serverInfo, and then the Apache needs 
> to be configured corresponding to the specified ports/hostname/ip in 
> settings.json. I have tried a few permutation and combinations with no 
> luck. Hopefully if someone has managed to make Bob + VPS work would chime 
> in.
> On Monday, December 23, 2019 at 7:24:26 PM UTC+5:30 Enrico wrote:
>
>> Hi,
>> I am trying to setup a Bob server on my VPS. I have googled for resources 
>> but what I could dig up (mainly this example apache configuration 
>> )
>>  
>> does not seem to be working, and I'm having a hard time figuring out what's 
>> wrong.
>> Any suggestion is highly appreciated. I'm so stuck that I'm considering 
>> writing my own multi-wiki tiddlywiki server :)
>>
>> Cheers,
>> Enrico
>>
>> *What I'm trying to do*
>> I would like to access a Bob-powered tiddlywiki as `multiwiki.my.domain`.
>> Next step: access Bob-managed sub-wikis as `multiwiki.my.domain/subwiki`, 
>> to get around node's insane RAM usage 
>> .
>>
>> *Problems*
>> When I try to access `multiwiki.my.domain`, I get Bob's starting page but 
>> at the bottom there is a red banner stating "*WARNING: The connection to 
>> server hasn't been established yet."*
>> Checking Firefox's console log, the only message present says "Firefox 
>> can’t establish a connection to the server at wss://multiwiki.my.domain/."
>>
>> *My setup*
>>
>> $ git clone --depth=1 https://github.com/OokTech/TW5-Bob.git 
>> /usr/lib/node_modules/tiddlywiki/plugins/OokTech/Bob
>> $ cp -r 
>> /usr/lib/node_modules/tiddlywiki/plugins/OokTech/Bob/MultiUserWiki MultiWiki
>>
>> *# MultiWiki/settings/settings.json*
>> {
>>   "serverName": "multiwiki.my.domain",
>>   "scripts": {
>> "NewWiki": "tiddlywiki #wikiName --init #editionName"
>>   },
>>   "wikis": {
>>
>>   },
>>   "ws-server": {
>> "port": 8086,
>> "host": "127.0.0.1",
>> "autoIncrementPort": false
>>   },
>>   "heartbeat": {
>> "interval": 1000
>>   },
>>   "wikisPath": "./Wikis",
>>   "pluginsPath": "./Plugins",
>>   "themesPath": "./Themes",
>>   "servingFiles": {}
>> }
>>
>> *# 

Re: [tw5] Re: Adjusting IFrame Trick I would like to implement in TW

2020-09-05 Thread Jan

Hello Eric,
it's marvelous. Your instruction was perfect. (...and I see that I was 
not really awake this morning.)
This is a great help to integrate external content into tiddlywiki, 
thanks a lot!


All best wishes Jan



Am 05.09.2020 um 13:27 schrieb Eric Shulman:

On Saturday, September 5, 2020 at 4:07:29 AM UTC-7, Jan wrote:

so far it does not work yet...thought I took a really small but
long page and gave it a 1000 milliseconds.
But at least it does not throw an error-message like my brute
first attempt did.

If you want to inspect the installation look here:
https://www.szen.io/Kunstgeschichte/#FlexframeTest



In my instructions, I wrote:

* Set the tiddler's type field to a value of
"application/javascript" _*and create a "module-type" field with
value of "startup"*_


However, when I checked your test, $:/plugins/es/FlexFrame.js did NOT 
have a module-type field.
This field is required in order to cause the code to be invoked.  
Without it, the hooks are not

actually being defined.
*
*
You need to edit $:/plugins/es/FlexFrame.js and add that field.  Then 
save-and-reload.


-e
--
You received this message because you are subscribed to the Google 
Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to tiddlywiki+unsubscr...@googlegroups.com 
.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f845ffda-6d33-4571-bf25-85b33a8cdab2o%40googlegroups.com 
.


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


[tw5] How do I remove a suffix from a variable?

2020-09-05 Thread leeand00
So I'm using a filter, and it's working great to remove the suffix and add 
another one...see below:

[tag[templates]tag[EditingTemplate]] +[removesuffix[Template]] +[addsuffix[ 
- Underground]]

Result:

Spelling - Underground 

PunctuationMistakes - Underground 

VerbMistakes - Underground 

CheckAdverbAdjectiveMistakes - Underground 

CheckForUnnecesaryWordsMistakes - Underground 

LookForWeakSentancesAndPhrasesThatNeedMoreInformation - Underground 

LookForRepetitionOfWordsOrPhrases - Underground 

LookForVaguePhrases - Underground 

CheckParagraphing - Underground 

CheckForDumbOrIllogicalStatements - Underground 

CheckForColloquialismsSlangInformalPhrases - Underground 


But...what I really want to do here, is remove the suffix and add another 
one in a variable so I can create a bunch of template tiddlers:

<$list filter="[tag[templates]tag[EditingTemplate]]">
  <$set name="whichTiddlerTemplateName" value=<> >
   <$set name="tiddlerToCreateFromTemplate" 
value="<> - Underground" >
Use This Template: <>
Create This Tiddler From Template: <>





In the second <$set> above (" tiddlerToCreateFromTemplate") I want to be 
able to remove the template prefix the way I did in the filter...so that I 
get  Spelling - Underground 

  
instead of  Spelling Template - Underground 

  

how do I do that?  

-- 
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/102377cb-c8e1-401e-b42d-9ad82017e9bfn%40googlegroups.com.


[tw5] Current Status check - Paste images as local files.

2020-09-05 Thread Pieter-Michiel Geuze
Friends,

I wanted to check on what the current status is on being able to paste 
images into an tiddly edit field and having the item saved as a local file.

*What I (think) know:*

You can save an image as embedded code into an HTML TW which can increase 
the size of the file.
You can save the image using a "Save as" into a folder that the TW can 
access and then use a link show the image in the tiddler.
TiddlyClip is supposed to do something but I think it is no longer 
supported.

*What I want to do:*

I just want to access a file on screen, "Copy Image" and then paste into 
the edit field and have that image saved to the TW folder as a local file.

*Why this way:*

I write technical notes for court presentation, and screenshots, and 
evidence images are important as their own hash validated file. By pasting 
an image, it is then saved as a local file and the court can refer to it as 
an evidence item.

I do a LOT of screenshots.

I take a lot of evidence images. Currently, I right-click "Save Path" and 
use Notepad++ to create the large number of links to point back to the 
local files.

So please let me know if there is a 'new' way or workaround that I am not 
yet aware of.

Thank you as always for the great product which is better for your help.

Pieter-Michiel

-- 
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/8e06d4b9-d3a3-4bb3-b471-d6826103e88dn%40googlegroups.com.


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

2020-09-05 Thread Guido B
This is brilliant and very hackable! Just one remark: there is a typo in 
the showmonth-macro: in the fifth line, it should be "[calendar_highlight]" 
and not "[calendar_highight]".

Best, Guido

Am Samstag, 5. September 2020 04:49:01 UTC+2 schrieb Eric Shulman:
>
> Hi all,
>
> I'm pleased to announce a new addition to my TiddlyTools suite of 
> time-related tiddlers: *Interactive calendar display*
>
> To install, just drag-and-drop the following tiddler into your document:
> http://tiddlytools.com/timer.html#TiddlyTools%2FTimer%2FCalendar
>
> Displays a yearly or monthly calendar with popups that show links to 
>> tiddlers
>>
>>- By default, the calendar displays the current year.
>>- Enter a year number or select a month to change the view. Press [X] 
>>to reset to the current year view.
>>- Click on a month title to toggle between annual and single-month 
>>view.
>>- Press [<<] to view the previous month. Press [>>] to view the next 
>>month.
>>- Dates on which tiddlers were created or modified and dates which 
>>have a Journal tiddler are colored light blue.
>>- Click a date to show a popup with links to tiddlers created or 
>>modified on that date.
>>- Press [pencil] to create or edit a Journal tiddler for that date.
>>- You can set the colors and font styles used by the calendar (see 
>>TiddlyTools/Timer/Setup 
>>
>> below).
>>
>> With either calendar display, you can easily see on which days you have 
>> *created 
> *or *modified *tiddlers,
> giving you a yearly or monthly view of your tiddler changes.  Then, click 
> on any date to view a popup
> that lets you view/edit a Journal tiddler for that date or quickly 
> navigate to any tiddlers created/modified
> on that date.
>
> *You can also add a monthly calendar directly in the SideBar tabs!...*
> To install, just drag-and-drop the following tiddler into your document:
> http://tiddlytools.com/timer.html#TiddlyTools%2FTimer%2FSidebarCalendar
> (note: the SidebarCalendar requires the installation of Calendar tiddler 
> as well)
>
> As a test, I dropped the Calendar into http://TiddlyWiki.com, and was 
> able to instantly see
> a "year-at-a-glance" overview of all the changes that Jeremy has made 
> since January 2020.
>
> Note: the Calendar currently excludes system tiddlers, so it doesn't show 
> changes to $:/state, $:/temp,
> and TWCore shadow tiddlers.  I will soon be adding a configuration setting 
> to allow customization of
> the Calendar filter so shadows and other system tiddlers can be included 
> if desired.
>
> enjoy,
> -e
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/33950567-a226-4a36-a758-7a2af3fc0e5fo%40googlegroups.com.


[tw5] Re: Setting up Bob behind an HTTPS Apache proxy

2020-09-05 Thread Tejasvi S Tomar
Hi Enrico,
Did you manage to figure it out? I am facing the exact same issue while 
trying to setup Bob on VPS. There seems to be issue with the reverse 
connection whie saving the changes. There are three things to configure in 
settings.json: ws-server, saver, and serverInfo, and then the Apache needs 
to be configured corresponding to the specified ports/hostname/ip in 
settings.json. I have tried a few permutation and combinations with no 
luck. Hopefully if someone has managed to make Bob + VPS work would chime 
in.
On Monday, December 23, 2019 at 7:24:26 PM UTC+5:30 Enrico wrote:

> Hi,
> I am trying to setup a Bob server on my VPS. I have googled for resources 
> but what I could dig up (mainly this example apache configuration 
> )
>  
> does not seem to be working, and I'm having a hard time figuring out what's 
> wrong.
> Any suggestion is highly appreciated. I'm so stuck that I'm considering 
> writing my own multi-wiki tiddlywiki server :)
>
> Cheers,
> Enrico
>
> *What I'm trying to do*
> I would like to access a Bob-powered tiddlywiki as `multiwiki.my.domain`.
> Next step: access Bob-managed sub-wikis as `multiwiki.my.domain/subwiki`, 
> to get around node's insane RAM usage 
> .
>
> *Problems*
> When I try to access `multiwiki.my.domain`, I get Bob's starting page but 
> at the bottom there is a red banner stating "*WARNING: The connection to 
> server hasn't been established yet."*
> Checking Firefox's console log, the only message present says "Firefox 
> can’t establish a connection to the server at wss://multiwiki.my.domain/."
>
> *My setup*
>
> $ git clone --depth=1 https://github.com/OokTech/TW5-Bob.git 
> /usr/lib/node_modules/tiddlywiki/plugins/OokTech/Bob
> $ cp -r /usr/lib/node_modules/tiddlywiki/plugins/OokTech/Bob/MultiUserWiki 
> MultiWiki
>
> *# MultiWiki/settings/settings.json*
> {
>   "serverName": "multiwiki.my.domain",
>   "scripts": {
> "NewWiki": "tiddlywiki #wikiName --init #editionName"
>   },
>   "wikis": {
>
>   },
>   "ws-server": {
> "port": 8086,
> "host": "127.0.0.1",
> "autoIncrementPort": false
>   },
>   "heartbeat": {
> "interval": 1000
>   },
>   "wikisPath": "./Wikis",
>   "pluginsPath": "./Plugins",
>   "themesPath": "./Themes",
>   "servingFiles": {}
> }
>
> *# apache_confs/multiwiki-ssl.conf*
> 
> 
> ServerName multiwiki.my.domain
>
> ProxyRequests Off
> ProxyPreserveHost on
>
> ## Adding WebSockets ##
> RewriteEngine On
> RewriteCond %{HTTP:Connection} Upgrade [NC]
> RewriteCond %{HTTP:Upgrade} websocket [NC]
> RewriteRule /(.*) ws://127.0.0.1:8086/$1 [P,L]
> ## Finished WebSockets ###
>
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile ...
> SSLCertificateKeyFile ...
>
> ProxyPass "/"  "http://127.0.0.1:8086/;
> ProxyPassReverse "/"  "http://127.0.0.1:8086/;
>
> AllowEncodedSlashes On
> SSLEngine On
> SSLProxyEngine On
> 
> 
>
>

-- 
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/73081bb8-7b14-4b06-85c2-10aecc567010n%40googlegroups.com.


Re: [tw5] TiddlyServer and SSL

2020-09-05 Thread Arlen Beiler
Set the https property to a Javascript file which exports a function named
serverOptions. It is called for each listener instance started with one
argument and is expected to return the HTTPS options object for HTTPS
createServer

exports.serverOptions = function(address) { return { key: ..., cert: ... };
}


https://nodejs.org/dist/latest-v12.x/docs/api/https.html#https_https_createserver_options_requestlistener


On Fri, Sep 4, 2020 at 7:26 PM Calvino  wrote:

> Hi,
> Can anyone provide a document about how to bind Arlen's TiddlyServer with
> SSL cert files? I already have them for TiddlyWiki and it works okay ... I
> want to run TiddlyServer and use the same ones, but not sure how to
> reference them in the config file.
>
> If possible I'd rather do that then try to figure out an SSL reverse
> proxy, which I've run into a little trouble with on Windows.
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/5c5a796a-0b67-4f27-b70a-6b028ff6d1e1n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAJ1vdSTLTU7%2BsX%2BbuEanm9S3GTkNyLB_F8%3DCF7A5DbY4YA6cqw%40mail.gmail.com.


[tw5] Re: Code in code

2020-09-05 Thread Eric Shulman
On Saturday, September 5, 2020 at 7:42:26 AM UTC-7, Eric Shulman wrote:
>
> <$link to=<>><$view field="title"/>
>

Addendum:

Note that the above syntax can be reduced to just
<$link/>
because the to=... parameter defaults to the <> value, and 
the display content defaults to the title being linked

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/17d5c866-29aa-4b35-893e-58153171f9a1o%40googlegroups.com.


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

2020-09-05 Thread Eric Shulman
On Saturday, September 5, 2020 at 7:05:18 AM UTC-7, Xavier wrote:
>
> Another wonderful iteration, thank you! Not only useful as a tool, but 
> also a great TW5 programming lesson for us to study. May I humbly suggest 
> the addition of 
><$transclude tiddler=<> mode=block/>
> in the showday() macro, just after the call to <>, so that 
> the popup also displays any additional text the user might have added for 
> that day?
>

The contents of a Journal tiddler can be almost anything, and could 
conceivably be quite substantial. This could make the popup display 
excessively large and potentially exceed the available surrounding space. I 
will experiment with ways to mitigate this (i.e., by using a div with 
"max-height:...;max-width:...;overflow:auto;"), but my expectation is that 
for many cases, this will not produce a satisfying display experience.  In 
practice I think it is much simpler and more reliable to just open the 
Journal tiddler to view it as a regular tiddler in the Story River by 
clicking the popup's date heading (which is the current behavior).

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/89500271-3692-4f75-a796-bff5c94cf9ddo%40googlegroups.com.


[tw5] Re: Code in code

2020-09-05 Thread Eric Shulman
On Saturday, September 5, 2020 at 6:36:08 AM UTC-7, vinvi...@gmail.com 
wrote:
>
> Also the page title appears, but not as a link.
> Something like this should happen:
> <$ link to = < >> <$ view field = "title" /> 
>

Are you including all those spaces in your syntax?  If so, that is at least 
part of the problem.

TiddlyWiki syntax is very particular.  Unlike other programming languages, 
whitespace is important.  There cannot be spaces in between the "$" and the 
widget name, nor between a parameter name and the "=". Similarly, doubled 
angle brackets surrounding a variable name must be kept together and there 
cannot be spaces in the closing "/$widgetname".

Extra spaces ARE permitted surrounding "param=value" and in-between widgets 
(though this can result in spaces being displayed in the output).

Thus, the above line of code should properly be written like this:
<$link to=<>><$view field="title"/>

Similarly, in the <> filter parameter, spaces matter as well.  
Your filter syntax currently reads as:
"[tag] + [tag[NameOfTheTag]]"

However, there should not be a space between the "+" and the filter 
expression that follows.  Thus:
"[tag] +[tag[NameOfTheTag]]"

In fact, while the +[...] syntax can be used to combine two filter 
expressions (i.e., as an "AND"), you can also write this as:
"[tagtag[NameOfTheTag]]"

Which also means: has a tag equal to the  name AND a tag 
equal to "NameOfTheTag"

Please try fixing your syntax by removing all the errant spaces, and then 
let me know what happens...

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0ec53dd1-3aec-491c-9dfe-29935c198d54o%40googlegroups.com.


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

2020-09-05 Thread Xavier Cazin
Hi Eric,

Another wonderful iteration, thank you! Not only useful as a tool, but also
a great TW5 programming lesson for us to study. May I humbly suggest the
addition of
   <$transclude tiddler=<> mode=block/>
in the showday() macro, just after the call to <>, so that the
popup also displays any additional text the user might have added for that
day?

Cheers!
-- Xavier Cazin


On Sat, Sep 5, 2020 at 4:49 AM Eric Shulman  wrote:

> Hi all,
>
> I'm pleased to announce two new additions to my TiddlyTools suite of
> time-related tiddlers: *Interactive calendar display*
>
> To install, just drag-and-drop the following tiddler into your document:
> http://tiddlytools.com/timer.html#TiddlyTools%2FTimer%2FCalendar
>
> Displays a yearly or monthly calendar with popups that show links to
>> tiddlers
>>
>>- By default, the calendar displays the current year.
>>- Enter a year number or select a month to change the view. Press [X]
>>to reset to the current year view.
>>- Click on a month title to toggle between annual and single-month
>>view.
>>- Press [<<] to view the previous month. Press [>>] to view the next
>>month.
>>- Dates on which tiddlers were created or modified and dates which
>>have a Journal tiddler are colored light blue.
>>- Click a date to show a popup with links to tiddlers created or
>>modified on that date.
>>- Press [pencil] to create or edit a Journal tiddler for that date.
>>- You can set the colors and font styles used by the calendar (see
>>TiddlyTools/Timer/Setup
>>
>> below).
>>
>> With either calendar display, you can easily see on which days you have 
>> *created
> *or *modified *tiddlers,
> giving you a yearly or monthly view of your tiddler changes.  Then, click
> on any date to view a popup
> that lets you view/edit a Journal tiddler for that date or quickly
> navigate to any tiddlers created/modified
> on that date.
>
> *You can also add a monthly calendar directly in the SideBar tabs!...*
> To install, just drag-and-drop the following tiddler into your document:
> http://tiddlytools.com/timer.html#TiddlyTools%2FTimer%2FSidebarCalendar
>
> As a test, I dropped the Calendar into http://TiddlyWiki.com, and was
> able to instantly see
> a "year-at-a-glance" overview of all the changes that Jeremy has made
> since January 2020.
>
> Note: the Calendar currently excludes system tiddlers, so it doesn't show
> changes to $:/state, $:/temp,
> and TWCore shadow tiddlers.  I will soon be adding a configuration setting
> to allow customization of
> the Calendar filter so shadows and other system tiddlesr can be included
> if desired.
>
> enjoy,
> -e
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/4ab62b70-e074-4679-8035-8ce17c1ede7bo%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CADeSwYMb%3D7G23H8zNmnriLoq2YU3yA%3D9Br0NZC6i2%3DcqYi5kHw%40mail.gmail.com.


[tw5] Re: Code in code

2020-09-05 Thread vinvi...@gmail.com
Thank you for your response Eric Shulman.

But unfortunately it doesn't work. Nothing happens. The bar appears but 
there is nothing in it. There must be a flaw in it, but I can't find it. I 
wonder where in the code I can put my text. I have tried in different ways 
to also be able to put my text somewhere but it does not work.

Also the page title appears, but not as a link.
Something like this should happen:
<$ link to = < >> <$ view field = "title" /> 

Can you find out why it doesn't work?

Op vrijdag 4 september 2020 om 22:26:59 UTC+2 schreef Eric Shulman:

> On Friday, September 4, 2020 at 12:58:55 PM UTC-7, vinvi...@gmail.com 
> wrote:
>>
>> I have a piece of code that uses details macro from the Shiraz plugin.
>> This is the piece of code:
>> << details sum: "NameOfCurrentTiddlerHere" "BodyTextHere" class: 
>> "alert-primary" >>
>> It all works fine, but how do I make the current tiddler title appear 
>> *automatically 
>> *with: "NameOfCurrentTiddlerHere" as a *link*?
>>
>> In the place "Body text here" I want a list of links. For this I have the 
>> following code:
>> << list-links filter: "[tag ] + [tag [NameOfTheTag]]" >>
>>
>> The code is correct but if I paste it between the other code it is not 
>> working. How do I do this?
>>
>
> As you have discovered, you can't use macro syntax as parameter values 
> *inside another macro*.
>
> To get around this, you should use the <$macrocall> widget with *named* 
> parameters, like this:
> <$macrocall $name="details" sum=<> src="""< filter:"[tag] + [tag[NameOfTheTag]]">>""" 
> class="alert-primary"/>
> Note that the src parameter value is surrounded by tripled quotes.  This 
> is needed to allow you to use the regular quote character within the 
> parameter value.
>
> Alternatively, if you define a macro to specify the parameter value, you 
> could write it like this:
> \define detailsSrc() <] + 
> [tag[NameOfTheTag]]">>
>
> <$macrocall $name="details" sum=<> src=<> 
> class="alert-primary" />
>
> enjoy,
> -e
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/27fbe342-99ed-4b76-aa4c-3dc665b812d6n%40googlegroups.com.


Re: [tw5] Re: Adjusting IFrame Trick I would like to implement in TW

2020-09-05 Thread Eric Shulman
On Saturday, September 5, 2020 at 4:07:29 AM UTC-7, Jan wrote:
>
> so far it does not work yet...thought I took a really small but long page 
> and gave it a 1000 milliseconds.
> But at least it does not throw an error-message like my brute first 
> attempt did.
>
> If you want to inspect the installation look here: 
> https://www.szen.io/Kunstgeschichte/#FlexframeTest
>

In my instructions, I wrote:

> * Set the tiddler's type field to a value of "application/javascript" *and 
> create a "module-type" field with value of "startup"*


However, when I checked your test, $:/plugins/es/FlexFrame.js did NOT have 
a module-type field.
This field is required in order to cause the code to be invoked.  Without 
it, the hooks are not
actually being defined.

You need to edit $:/plugins/es/FlexFrame.js and add that field.  Then 
save-and-reload.

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f845ffda-6d33-4571-bf25-85b33a8cdab2o%40googlegroups.com.


Re: [tw5] Re: Adjusting IFrame Trick I would like to implement in TW

2020-09-05 Thread Jan

Am 05.09.2020 um 05:55 schrieb TW Tones:

Jan,

I just had a look at etherpad, and reminds me of document part the now 
defunct Google Wave, but various google and Microsoft products have 
similar editing opportunities.


I see why you value having a iframe to access such documents. In 
addition to multi-user documents it gives rise to a WYSIWYG editor.


Always wishing to extend the functionality within tiddlywiki, I can 
see how this may be away to address some of out multi-user issues with 
tiddlywiki.


Given it is an open source environment, and tiddlywiki is too, perhaps 
this is an opportunity to bring the two projects together. Either read 
only or read/write tiddlywikis could delegate shared documents to 
etherpad as a special kind of tiddler, but tiddlywiki is in an ideal 
position to manage the multiple document view into multiple etherpad 
documents.


Much of this may already be the case with the iframe solution you are 
working on, so thanks for raising it here. But I think a little deeper 
integration would help both projects.


What may deeper integration look like?

  * Create a new etherpad document from within a special tiddler
  * Seed it with the content of the tiddler before conversion
  * Be able to use the wiki to manage/wrap multiple etherpads
  o Includes searchable and other features
  * Be able to import.export cut/copy and paste between etherpad and
tiddlers
  o Include drag and drop and handle conversions if needed.
  * Perhaps the etherpad client component can be made a plugin in
tiddlywiki
  * and the etherpad server component deployed with the tiddlywiki
node server install

If the technology or the etherpad community is not open to this 
valuable contribution, perhaps the tiddlywiki community could build a 
method for collaborative and external tiddler by tiddler server. Kind 
of taking the external tiddler model further. If we took this path we 
may be able to designer even tighter integration to the extent that 
once implemented interactive "shared" tiddlers could become a feature.


just thinking.

Regards
Tones

Hi Tones,
Etherpad also uses node.js on the server. For using it in class the 
possibility of using realtime cooperation is great.
I also think, the ability to create and show an etherpad in TW would be 
a great enhancement because reatime cooperation is difficult in TW so far.


Best wishes Jan

--
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/5F5372A5.207%40googlemail.com.


Re: [tw5] Re: Adjusting IFrame Trick I would like to implement in TW

2020-09-05 Thread Jan

Hi Eric,
so far it does not work yet...thought I took a really small but long 
page and gave it a 1000 milliseconds.
But at least it does not throw an error-message like my brute first 
attempt did.


If you want to inspect the installation look here:
https://www.szen.io/Kunstgeschichte/#FlexframeTest

Best wishes Jan


Am 05.09.2020 um 02:24 schrieb Eric Shulman:

On Friday, September 4, 2020 at 2:50:16 PM UTC-7, Jan wrote:

recently I stumbled upon a script which is able to adjust the size
of an Iframe to the content.
Because I like to work with external files like etherpads for
interaction, this would make a lot of things possible.
Here's a Demo
https://css-tricks.com/examples/iFrameResize/crossdomain.php#


||

|

functionresizeIFrameToFitContent(iFrame ){
iFrame.width =iFrame.contentWindow.document.body.scrollWidth;
iFrame.height =iFrame.contentWindow.document.body.scrollHeight;
}
window.addEventListener('DOMContentLoaded',function(e){
variFrame =document.getElementById('iFrame1');
resizeIFrameToFitContent(iFrame );
// or, to resize all iframes:
variframes =document.querySelectorAll("iframe");
for(vari =0;i 
|

I wonder if this could be implemented to tiddlywiki.

Two things to change
-It needs to have flexible Ids to allow multiple instances.


The first two lines from the event listener are looking for an iframe 
with a specific ID.  The rest of the listener does the same for ALL 
iframes, regardless of ID.  Thus, you can simply omit the first two 
lines and keep the rest.


-width should be fixed only the height should adapt.


Just omit the "iFrame.width  = ... " line from the 
resizeIFrameToFitContent function, so that only the height is adjusted.


What do you think, is this possible?


Normally, this kind of code would be added to the  section of 
the HTML file.  To do this in TiddlyWiki, you would place the code in 
a tiddler tagged with $:/tags/RawMarkup and then save-and-reload so 
the code is inserted into the  of the HTML file.


HOWEVER... having said all of the above... *This code, as written, 
will NOT work in TiddlyWiki.*

*
*
The problem is that, in TiddlyWiki, any IFrame that is contained in a 
tiddler will not even *exist* until that tiddler is actually 
displayed... and at the time that the document is *loaded*, no 
tiddlers are displayed yet.  Thus, the above code will not find any 
"iframe" elements to modify. To make this work in TiddlyWiki, you need 
to trigger the code whenever a tiddler is opened or refreshed rather 
than when the DOM content is loaded.


Here's some EXPERIMENTAL code that uses the TiddlyWiki core "hook" 
mechanism instead of window.addEventListener()

|
/*\
title: ResizeIFrame
type: application/javascript
module-type: startup

\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";

// Export name and synchronous status
exports.name ="resizeIFrame";
exports.platforms =["browser"];
exports.after =["startup"];
exports.synchronous =true;
exports.startup =function(){
   $tw.hooks.addHook("th-page-refreshed",function(){
  setTimeout(function(){
variframes =document.querySelectorAll("iframe");
for(vari =0;i iframes[i].height 
=iframes[i].contentWindow.document.body.scrollHeight;

}
},100);
});
   $tw.hooks.addHook("th-navigating",function(event){
  setTimeout(function(){
variframes =document.querySelectorAll("iframe");
for(vari =0;i iframes[i].height 
=iframes[i].contentWindow.document.body.scrollHeight;

}
},100);
returnevent;
});
};
})();
|

Notes:
* Enter the code above into the text field of a tiddler (e.g., 
"ResizeIFrame")
* Set the tiddler's type field to a value of "application/javascript" 
and create a "module-type" field with value of "startup"

* Save-and-reload for the code to take effect.

To test:
* Create a tiddler containing an iframe, like this:
|

|
* IMPORTANT NOTE: the src="..." file must be from the *same domain* as 
your TiddlyWiki file because, for security reasons, modern browsers do 
not permit "cross-domain" access to the "document" object of another file.


How it works:
* The code defines a "startup" function that is invoked when your 
TiddlyWiki file is loaded.
* This code sets up two "hooks" that will be triggered in response to 
TWCore activities
* The "th-page-refreshed" hook is triggered when the page is first 
displayed and whenever it is refreshed (e.g., if you edit the 
PageTemplate)
* The "th-navigating" hook is triggered whenever you open a tiddler or 
follow a link to an already opened tiddler.
* Each hook uses setTimeout(...) to delay it's action by 100 
milliseconds.  This is needed because the hooks are triggered *before* 
the IFrame contents are actually rendered, so we need to wait just a 
little bit for the Iframe to do it's thing.  You might need to 
increase this delay depending upon the speed of your system and/or the 

Re: [tw5] Re: Slider Tags Sidebar

2020-09-05 Thread Birthe C
Jin,

Totally as Tony says. I will add to me it looks very nice, but I would not 
want to use it. Reason I think I will have difficulties remembering all the 
details and thus it will take far too much time in real life use. But that 
is only me of course.

Interesting wiki, thanks for linking, I did not know this one.

Birthe

-- 
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/de1d436d-c325-4e61-abb5-801a9525f2f6o%40googlegroups.com.


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

2020-09-05 Thread Birthe C
Time zone correct here too.

Birthe

-- 
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/2cb0defc-902e-4736-9a38-c652698211f3o%40googlegroups.com.


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

2020-09-05 Thread Eric Shulman
On Friday, September 4, 2020 at 11:01:23 PM UTC-7, TW Tones wrote:
>
> Perhaps you plan so but It would be nice to remove the left and right 
> arrows from the year view?
>

Done.  Arrows omitted for year view, still present for month view.

By the way I edited TiddlyTools/Timer/Calendar and see it is eminently hack 
> able, Beautiful.
>

Good modularity of macros makes it easier to read (and thus, easier to 
hack).

Please let me know what specific changes you make, so I can consider 
rolling them back into the official version.
 

> Love your work
>

Thanks.

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/de6461a6-16c0-4073-81c0-c0dd1f8c53f6o%40googlegroups.com.


Re: [tw5] Re: Slider Tags Sidebar

2020-09-05 Thread jin
Thanks tony! I suppose I'll try to uncover more about it soon since its not
a priority even though I want one haha

On Sat, Sep 5, 2020, 4:00 PM TW Tones  wrote:

> Jin,
>
> You or someone needs to hack your way through the wiki to find out how its
> done, or hope the author will respond.
>
> Open the root tiddler and edit it, the three star header and footer when
> clicked opens root.
>
>- Inside is some html and css with two macros in use tag-link and
>tagSlider
>- Advanced search for these macro names
>
> From there you start to uncover how but given there is a plugin
> $:/plugins/sphygmus/core this looks like a bespoke solution so either you
> hack or get help from the author.
>
> Regards
> Tony
> fff
> On Friday, 4 September 2020 23:37:54 UTC+10, jin wrote:
>>
>>
>> I saw Sphygmus'  wiki and the Root of her wiki has
>> this tag link and tag slider wherein you can see/unsee some of the tags and
>> it has a + button! How can I achieve this? I've been looking into it and I
>> just don't know how...
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/bjqzC-ntQWs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/11ee6b5e-fa85-46bf-8624-b6ce6b4e04b7o%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CA%2Bf--2T1%2BAZvaAX3FZcjEv21mjYLGqUsEQzOpsMH47uF78ww-A%40mail.gmail.com.


[tw5] Re: How do I show summary or caption field of a tiddler in the story river?

2020-09-05 Thread Brian Radspinner

   
   1. Create a new tiddler;
   2. Give it the tag: *$:/tags/ViewTemplate*. -- this will tell TW to 
   display the contents of the tiddler in View mode;
   3. Put *{{!!summary}}* in the main text field of the tiddler -- this 
   tells TW to display the content of the "summary" field;
   4. Save the new tiddler -- now, any tiddler with a summary field should 
   show the content of that field at the bottom of the tiddler;
   5. If you want the summary to show up above the main text field, edit 
   the new tiddler and add a field: *list-before* and enter 
   *$:/core/ui/ViewTemplate/body* -- this tells TW to display the contents 
   of this new tiddler before/above the main text field.


On Saturday, September 5, 2020 at 12:34:38 AM UTC-7 bimlas wrote:

> Instead of a separate field, I use the first paragraph as a summary. I 
> attach a macro that transcludes the first paragraph of the specified 
> tiddler.
>

-- 
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/939aa9c3-3bf3-4567-98ec-9583263e8c26n%40googlegroups.com.


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

2020-09-05 Thread Eric Shulman
On Saturday, September 5, 2020 at 1:05:12 AM UTC-7, TW Tones wrote:
>
> Fine in 10+ time zone now thanks
>

Saq and Tony:  YAY! 

I think I should open a ticket re: sameday[...] needing a full 17-digit 
time value if not in UTC+0 zone.

Note: sameday[...] works OK in the <> macro because it gets a 
complete 17-digit date param from an existing tiddler:
<$list 
filter="[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]">
and then uses sameday:$dateField${!!$dateField$} to find all the other 
tiddlers for that date.

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/78d7-7540-4ba1-bf8b-03590ca1d553o%40googlegroups.com.


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

2020-09-05 Thread TW Tones
Eric,

Fine in 10+ time zone now thanks

Tony

On Saturday, 5 September 2020 17:47:33 UTC+10, Eric Shulman wrote:
>
> On Friday, September 4, 2020 at 10:49:46 PM UTC-7, TW Tones wrote:
>>
>> *Example of current timezone related issue.*
>> I see this date issue as well see the image, I went to add a note for 
>> Christmas day, I live at +10 GMT/UTC, I selected 24th in this snapshot.
>>
>
> I *think* I fixed the timezone issue.  If I'm right, it was related the 
> parameter used in the sameday[D] filter:
>
> The documentation at https://tiddlywiki.com/#sameday%20Operator says:
>
>>
>> *parameter D = a date, in the format MMDD**D may include a time of 
>> day, but this is ignored.*
>
>
> However, if you don't provide a time of day (or use all zeros), then the 
> filter seems sensitive to timezone offset.
> I suspect that Jeremy didn't notice a problem since he is located in 
> London, which is naturally UTC+0
>
> Here's my OLD code that went wrong:
><$vars  month={{{ [[$mm$]addprefix[0]split[]last[2]join[]] }}}>
><$varsday={{{ [add[1]addprefix[0]split[]last[2]join[]]   }}}>
><$vars  today={{{ [[$$]addsuffixaddsuffix] }}}>
> Note the "add[1]" in the day calculation.  This was a "magical mystery 
> hack" that seemed to work for UTC-7 (my current timezone in California), 
> but apparently not for other timezones such as UTC+2 (Birthe) or UTC+10 
> (Tony)
>
> and here's the NEW code:
><$vars  month={{{ [[$mm$]addprefix[0]split[]last[2]join[]] }}}>
><$varsday={{{ [addprefix[0]split[]last[2]join[]]   }}}>
><$vars  today={{{ 
> [[$$]addsuffixaddsuffixaddsuffix[12000]] 
> }}}>
> Note the removal of the "add[1]" in the "day" calculation, and the 
> addition of addsuffix[12000] (i.e., "noon" for UTC+0) in the "today"
>
> This change still gives the correct results for my timezone (YAY!) and, I 
> hope, will now also be correct for all other timezones (i.e., everything 
> from UTC-12 through UTC+12)
>
> However, I can't really be sure until you both (Birthe and Tony) test it!
>
> Please download the update from
> http://tiddlytools.com/timer.html#TiddlyTools%2FTimer%2FCalendar
> and let me know if it actually does fix the problem.
>
> Awaiting your response with bated breath...
>
> -e
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3064e3d5-163f-439b-9602-2e3bff0a3767o%40googlegroups.com.


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

2020-09-05 Thread Saq Imtiaz
@Eric not seeing any time zone issues. Timezone: CET (UTC +2)

-- 
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/afdecd80-163b-47cd-9510-213ff3da4046o%40googlegroups.com.


[tw5] Re: Slider Tags Sidebar

2020-09-05 Thread TW Tones
Jin,

You or someone needs to hack your way through the wiki to find out how its 
done, or hope the author will respond.

Open the root tiddler and edit it, the three star header and footer when 
clicked opens root.

   - Inside is some html and css with two macros in use tag-link and 
   tagSlider
   - Advanced search for these macro names

>From there you start to uncover how but given there is a plugin 
$:/plugins/sphygmus/core this looks like a bespoke solution so either you 
hack or get help from the author.

Regards
Tony
fff
On Friday, 4 September 2020 23:37:54 UTC+10, jin wrote:
>
>
> I saw Sphygmus'  wiki and the Root of her wiki has 
> this tag link and tag slider wherein you can see/unsee some of the tags and 
> it has a + button! How can I achieve this? I've been looking into it and I 
> just don't know how...
>

-- 
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/11ee6b5e-fa85-46bf-8624-b6ce6b4e04b7o%40googlegroups.com.


[tw5] Re: Advice for new TW5 user regarding line breaks

2020-09-05 Thread TW Tones
Hi,

Try wrapping all your pasted text in html pre tag

pasted text here
new lines honoured

In tiddlywiki this gives it a grey background and does not render wiki text

Same if you wrap it all in div with the pre white space

pasted text here
new lines honoured
*List
* list


Do you want to edit it and add Wikitext?

Also rather than content type = text/x-tiddlywiki have you tried content 
type = text/plain



Tones




On Saturday, 5 September 2020 13:13:44 UTC+10, BhKh wrote:
>
> Hello! After about 7 years I am considering getting back into using 
> TiddlyWiki again. When Iast I used, it was 2.4.4.
>
> Now I am starting a new TW5 and I am a bit perplexed as to how to deal 
> with line breaks.
>
> I'm planning on using my wiki to collect notes clipped from other places, 
> write my own notes, and copy my notes out of TW into other things. I 
> thought that this was the primary function of TW, so this issue has me 
> scratching my head.
>
> In 2.4.3, you could simply put a line break in the editor and you got a 
> line break (new line) in the rendered tiddler.
>
> In TW5 this seems to no longer be the case. If I have ten lines of text 
> that I copy from one location into a my TW, it all gets put onto a single 
> line. Obviously not good. I can understand formatting like bold, italics, 
> and headings not surviving a copy paste. But line breaks?
>
> So I have implemented the solution here: 
> https://tiddlywiki.com/#Hard%20Linebreaks%20with%20CSS
> As I understand this solution, I'm just tagging all tiddlers that I want 
> to show the same breaks in the editor as in the final doc with a certain 
> class.
>
> Now when I paste in ten lines of text into a tiddler I get ten lines in 
> the rendered version. Great!! However, when I copy those ten lines from my 
> tiddly wiki back into another document, they are all on a single line.
>
> As well, the breaks are not shown in the preview window. There it is just 
> all one big line.
>
> So my questions are: *Am I doing something wrong? Is there a different 
> way I'm supposed to be doing things?*
>
> It seems like if TW is supposed to be for keeping notes on things, this is 
> odd behaviour. I thought I should be able to paste things in and cut things 
> out and have them at least keep line breaks. However it seems like TW is 
> now designed to be more a code editor and less a document editor. I realize 
> that the line is necessarily blurry in TW, but in the end the purpose of a 
> TW is not to write code.
>
> All the threads on this topic seem to be long and complicated and hard to 
> piece together a solution. I realize this may be difficult since different 
> people may need different solutions. 
>
> I thought I could start all tiddlers with """. However it seems that this 
> needs to be done on a paragraph by paragraph basis. If I try to make a 
> heading by typing 
> ! title
> it gets rendered literally. So that solution seems to fall into the 
> "reformat my text every time category."
>
> So keeping in mind that I plan to use my TW for collecting text, writing 
> text, and re-using text, *what is my best solution?* I really don't want 
> to have to re-format everything I paste into a tiddler. Also keep in mind 
> that I am starting fresh, so that may give more options.
>
> I'd even be fin with a solution that involved copy and pasting through 
> some sort of intermediary system if it was a simple as pasting it in and 
> copying it out.
>
> Thanks! I appreciate everyone's contributions over the years I have been 
> away!
>

-- 
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/aaa92e36-2b2f-408f-a7bb-cfd3bbdbadceo%40googlegroups.com.


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

2020-09-05 Thread Eric Shulman
On Friday, September 4, 2020 at 10:49:46 PM UTC-7, TW Tones wrote:
>
> *Example of current timezone related issue.*
> I see this date issue as well see the image, I went to add a note for 
> Christmas day, I live at +10 GMT/UTC, I selected 24th in this snapshot.
>

I *think* I fixed the timezone issue.  If I'm right, it was related the 
parameter used in the sameday[D] filter:

The documentation at https://tiddlywiki.com/#sameday%20Operator says:

>
> *parameter D = a date, in the format MMDD**D may include a time of 
> day, but this is ignored.*


However, if you don't provide a time of day (or use all zeros), then the 
filter seems sensitive to timezone offset.
I suspect that Jeremy didn't notice a problem since he is located in 
London, which is naturally UTC+0

Here's my OLD code that went wrong:
   <$vars  month={{{ [[$mm$]addprefix[0]split[]last[2]join[]] }}}>
   <$varsday={{{ [add[1]addprefix[0]split[]last[2]join[]]   }}}>
   <$vars  today={{{ [[$$]addsuffixaddsuffix] }}}>
Note the "add[1]" in the day calculation.  This was a "magical mystery 
hack" that seemed to work for UTC-7 (my current timezone in California), 
but apparently not for other timezones such as UTC+2 (Birthe) or UTC+10 
(Tony)

and here's the NEW code:
   <$vars  month={{{ [[$mm$]addprefix[0]split[]last[2]join[]] }}}>
   <$varsday={{{ [addprefix[0]split[]last[2]join[]]   }}}>
   <$vars  today={{{ 
[[$$]addsuffixaddsuffixaddsuffix[12000]] 
}}}>
Note the removal of the "add[1]" in the "day" calculation, and the addition 
of addsuffix[12000] (i.e., "noon" for UTC+0) in the "today"

This change still gives the correct results for my timezone (YAY!) and, I 
hope, will now also be correct for all other timezones (i.e., everything 
from UTC-12 through UTC+12)

However, I can't really be sure until you both (Birthe and Tony) test it!

Please download the update from
http://tiddlytools.com/timer.html#TiddlyTools%2FTimer%2FCalendar
and let me know if it actually does fix the problem.

Awaiting your response with bated breath...

-e

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5b4e1e4d-1cc9-458a-b53a-ac9c30550e79o%40googlegroups.com.


[tw5] Re: How do I show summary or caption field of a tiddler in the story river?

2020-09-05 Thread bimlas
Instead of a separate field, I use the first paragraph as a summary. I 
attach a macro that transcludes the first paragraph of the specified 
tiddler.

-- 
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/727f83bb-e480-4f92-8267-c82072027989n%40googlegroups.com.


$__bimlas_doc-macro_first-paragraph_macro.json
Description: application/json


[tw5] Re: Advice for new TW5 user regarding line breaks

2020-09-05 Thread Birthe C
TW Tones,

text/x-tiddlywiki is tiddlywiki classic format.

The warning is: This tiddler is written in TiddlyWiki 
 Classic wiki text format, 
which is not fully compatible with TiddlyWiki 
 version 5. See 
https://tiddlywiki.com/static/Upgrading.html for more details.

Birthe

-- 
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/c8e2122b-8055-4ae2-a990-0744e18f5fe6o%40googlegroups.com.


[tw5] Re: How to keep multiple wikis running on node.js without terminal up

2020-09-05 Thread TW Tones
On other thing

When I setup node on my android and my Disk Station some liniux people told 
be to load tiddlywiki with the nohup command, no hang up, it returns to the 
console and you can load another.

I am not expert here.

Regards
Tony

On Monday, 31 August 2020 12:37:09 UTC+10, Morgaine O'Herne wrote:
>
> Hi all. I have 3 wikis running on node.js on my computer. They each 
> connect through a different port number. I want to be able to access any of 
> them in the browser at any time without pulling up the terminal. I believe 
> I remember doing this before, but I don't know how. How do I make my wikis 
> permanent?

-- 
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/95f5079f-8428-4e50-9c12-2596bb9e7f9eo%40googlegroups.com.


[tw5] Re: Installing plugins via drag and drop in nodejs

2020-09-05 Thread TW Tones
Mark,

Are there instructions anywhere to take an in wiki plugin and make it a 
server plugin (file?).

Regards
Tones

On Saturday, 5 September 2020 06:27:02 UTC+10, Mark S. wrote:
>
> Let me add, that there are two ways to add a plugin folder.
>
> The first is to add it to just a single wiki, in the plugins folder of 
> your tiddly data folder.
>
> The second is to add it to your node.js master copy of tiddlywiki.
>
> The advantage of the first method is that the plugins will continue to be 
> there as you upgrade, and it's pretty easy.
>
> The advantage of the second method is that once you have the plugins in 
> place, they are available to all your wikis just by insert some lines into 
> tiddlywiki.info.
>
> The disadvantage of the second method is that you have to find where your 
> master copy of TW is (On Windows, the path to the default TW version is 
> buried pretty deep.), and, possibly, your plugins won't survive when you 
> upgrade (don't know for sure on this point.) Certainly if you relink to a 
> different TW directory structure, your personal plugins aren't going to be 
> there automatically. 
>
> On Thursday, September 3, 2020 at 4:56:07 PM UTC-7, TW Tones wrote:
>>
>> Mark,
>>
>> That is possibly the clearest description so far. We need to document 
>> this a bit better.
>>
>> I admit I am no expert in this yet, and I hope if what I state is 
>> incorrect someone will contradict me.
>>
>> I would add to your points, as I understand it, that if installed in node 
>> apparently they are available to all wikis within Node such as under Bob, 
>> but installed by Drag and drop they become tiddlers installed in the 
>> specific wiki.
>>
>> You can see that except for the exceptions Mark mentions, drag and drop 
>> can be an intentional approach to installing a different set of plugins in 
>> different wikis.
>>
>> Despite this I am not sure what happens to to make correctly installed 
>> server plugins visible in the wikis below.
>>
>> Regards
>> Tony
>>
>>
>> On Friday, 4 September 2020 00:56:10 UTC+10, Mark S. wrote:
>>>
>>> I think it means there some plugins meant for node.js that need to be 
>>> installed in a directory (maybe because they need to communicate directly 
>>> with the operating system).
>>>
>>> For most 3rd party plugins I think you're OK with d But if you have a 
>>> plugin that needs to directly communicate with the OS or over the internet, 
>>> then you will need to install local plugin directories.
>>>
>>> If you have official plugins, then you can "install" them just by 
>>> listing them in the tiddlywiki.info file. You do not want there to also 
>>> be a drag-and-drop plugin version of them because the d version will 
>>> block the latest copy of the official version. The idea is that your 
>>> official plugins will automatically be upgraded on node.js when you upgrade 
>>> your tiddlywiki installation on node.js.
>>>
>>> Having said that, if you're using code-mirror, and your drag-and-drop 
>>> version seems to be working, maybe just stick with it for the current 
>>> generation. It seemed to me that there was some internal inconsistency with 
>>> the next gen of code-mirror. Whenever I tried to do the official install, 
>>> things broke. But that's just my thinking.
>>>
>>>
>>> Good luck!
>>>
>>>
>>>
>>> On Thursday, September 3, 2020 at 5:49:25 AM UTC-7, demon...@gmail.com 
>>> wrote:

 So I have my nodejs server up and running, but I did not want to start 
 an entirely new wiki, instead I wanted to import my old wiki and continue 
 using that. I imported it via just drag and dropping my .html file onto 
 the 
 newly made empty wiki. It imported everything just fine and everything 
 seems to work ok.

 However, I noticed that installing plugins in nodejs 
 server
  
 should *not *be done by drag and dropping them as individual tiddlers 
 but instead you should make plugins folder in the server and put them 
 there 
 and tell in the tiddlywiki.info file what plugins to load. It is said 
 that:

 > Note that including a plugin as an ordinary tiddler (e.g. by dragging 
 and dropping a plugin into the browser) will result in the plugin only 
 being active in the browser, and not available under Node.js.

 So what does this *actually *mean? All my old plugins were installed 
 this way when I was not using nodejs. They still seem to work fine. Should 
 I remove all my plugins installed with drag and drop and install them 
 manually as per the link?

>>>

-- 
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: Bob - syncing tid files on WIndows 10

2020-09-05 Thread TW Tones
Jed,

I have noticed this as well, but spaces in wiki names was OK prior because 
I created and used them. Perhaps this helps

Now I can *open these wikis* but at the bottom I see
*WARNING: The connection to server hasn't been established yet.*

The save just does not happen automatically or manually, and nothing 
appears on the console.

Regards
Tones

On Friday, 4 September 2020 16:51:52 UTC+10, Jed Carty wrote:
>
> I have done some testing and this is a bug that doesn't just affect 
> windows, there is something that prevents the websocket connection when 
> there are spaces in the wiki name.
> I thought I had fixed this bug, but something in how I updated the 
> websockets connection seems to have broken it again. I will find a fix so 
> wikis with spaces in their names can work again in the next release.
> Thanks for finding the bug!
>

-- 
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/c5a5e676-5172-42e5-9f37-296d54d327f1o%40googlegroups.com.


[tw5] Re: Advice for new TW5 user regarding line breaks

2020-09-05 Thread TW Tones
BhKh

I have noticed your involvement in several related threads and I appreciate 
> the work you and others are doing on this.
>

Thanks
 

>
> > Quite a few existing solutions can help (many exist so I am not sure 
> where to start for you) 
>
> I wonder if you could just try to pick one? :-) Lets say I'm going to 
> paste twenty lines of text into a tiddler from a word document. Each line 
> is (as is standard) on it's own line. How can I make them appear on their 
> own lines
>
>1. in the editor
>2. in the preview
>3. in the final tiddler
>4. and when I copy from the tiddler into another document
>
> without
>
>- having to put double enters at the end of every line
>- code the whole thing in html
>- have other markup be broken
>
> Is that possible?
>

Sure.  C*an you point to an example slab of text* I can use to test this on 
an internet location, that would help.

 I really wanted to get back into using TiddlyWiki, but this issue seems 
> almost absurd. 


I understand but there are good reasons, for example in simple text you 
cant add macros and widgets that build content from dynamic lockups etc... 
It is the rich features of tiddlywiki that creates this anomaly. So 
remember as I suggested we have a new solution. In the mean time I will 
give you one or more of the existing solutions, and others may too.


> I found this post and am wondering if it provides a solution. I tried to 
> implement it, but I just don't know enough yet about how TW works to get it 
> working.
> https://github.com/Jermolene/TiddlyWiki5/issues/443#issuecomment-368355140 
> 
>

That's somewhat related to a solution I am thinking of.
 

>
> Alternatively, I wonder if I should be using the wysiwyg editor here: 
> http://bjtools.tiddlyspot.com/#VisualEditor. I've tried getting that 
> setup but have so far been unsuccessful.
>
>
This visual editor saves HTML in your tiddlers, which is fine, but I 
suspect that is not what you are after.
 

> Am I to assume correctly that I don't want to be tagging tiddlers as 
> text/x-tiddlywiki? This seems to fix it, but there must be some problem 
> with it since a big warning box is displayed.
>

What is the warning?
 

>
> Any help you can give is most appreciated.
>

No problems, 

Tones.
 

>
> On Saturday, September 5, 2020 at 9:58:27 AM UTC+5:30 TW Tones wrote:
>
>> BhKh,
>>
>> This is a common issue for new users, and as annoying as it is there are 
>> good reasons for it. However it has long being a "bug bear" of myself and 
>> many others.
>>
>> The good news is;
>>
>>- You tend to get used to it
>>- Quite a few existing solutions can help (many exist so I am not 
>>sure where to start for you)
>>- Some of us are currently working on a solution which introduces a 
>>much more powerful set of choices that will all but eliminate the issue.
>>- A lot of copy and pastes work out of the box with tiddlywiki 
>>already so this is not a problem in many cases
>>- If you wish you can copy as html and paste html into a tiddler and 
>>reasonable well rendered.
>>- You can also past anything into one "data tiddler" and create 
>>another tiddler that extracts content from the data tiddler, according to 
>>your desired rules and presents it correctly. Eg each line as a paragraph.
>>   - This is a powerful solution because you could past updated 
>>   content in the data tiddler and the same "re-parse" rules will be 
>> applied.
>>   - This allows one effort to parse the input that can be reused 
>>   again on other data with a click.
>>   - Note: This is a design possibility I have noted as an advanced 
>>   solution one-day
>>
>> Some even find it difficult to enter two new lines to separate each line 
>> and paragraph and stop this concatenation occurring when rendered.
>>
>>- As you seem to have noticed if you use a Heading !! , bullet # and 
>>* or ; and ; you discover that the end of line does wrap and not 
>>concatenate.
>>- What you may not know each of these can be followed with one or 
>>more css classnames to format that same line eg "*.classname1.classname2 
>>Test here" so you could use a class name of .green and .r to make the 
>> line 
>>green and also indented from the right. 
>>- Obviously the above wikitext markup are designed for lists and do 
>>not have a blank line between each (when displayed)
>>
>> Our recent work is to introduce a special character you can pace as the 
>> first character of any other line to turn each line into a html div or p 
>> paragraph.
>>
>>- All you need to do then in your imported text to to select all 
>>lines and prefix them with this special character using an editor toolbar 
>>button and they should render as expected.
>>- In 

[tw5] Generating a static site from a Stroll Tiddlywiki

2020-09-05 Thread Nirmal Thacker
I've been using Tiddlywiki+Stroll [https://giffmex.org/stroll/stroll.html] 
since I quite like the idea of backlinks, auto-completion links and the 2 
column layout. However when I generate a static site from Stroll, backlinks 
and most of the formatting abilities are lost. 

My process of generating a static site from a Tiddlywiki+Stroll set up is 
as follows:
1. Using the Node TW5 tiddlywiki, generate a new wiki
2. Load the Tiddlywiki+Stroll HTML into the new wiki (tiddlywiki --load)
3. Generate a static site as per these instructions: 
https://tiddlywiki.com/static/Generating%2520Static%2520Sites%2520with%2520TiddlyWiki.html
4. Move the static files to the desired location and clean up

I understand why this may lose all the Stroll configurations, however the 
alternative does not work either - Directly export a static site from the 
Tools pane on a Stroll + Tiddlywiki site, which you can try on the authors 
page linked above. In fact this method creates a flat HTML page with no 
backlinks or formatting.

Any ideas what would be the right way to approach this? 

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8b824c3e-b796-4555-b395-575eed51800bn%40googlegroups.com.