[tw5] Re: How to? --- APPEND one tiddler "text" to another? #append

2019-04-06 Thread @TiddlyTweeter
Thanks Mohammad!

Very good. And excellent it silently creates the target tiddler if it 
doesn't exist. Exactly what I needed.

Best wishes
Josiah



On Saturday, 6 April 2019 22:31:06 UTC+2, Mohammad wrote:
>
> Hi Josiah!
>  This new version works ALSO with empty tiddlers
>
> \define append-text(tidTitle, text:"", btnLabel:"Append Text", sep:"")
> <$button> $btnLabel$
> <$list variable="newText" 
> filter="[<__tidTitle__>get[text]addsuffix<__sep__>addsuffix<__text__>]" 
> emptyMessage="""<$action-setfield $tiddler=<<__tidTitle__>> 
> text=<<__text__>> />""" >
> <$action-setfield $tiddler=<<__tidTitle__>> text=<> />
> 
> 
> \end
>
>
>
> On Saturday, April 6, 2019 at 2:01:54 PM UTC+4:30, @TiddlyTweeter wrote:
>>
>> Thanks for the quick response! Very useful tool!
>>
>> It works well except that if the target Tiddler (in the example TidB) has 
>> an empty text field it won't get appended to. 
>>
>> Is there a way to get the append working even if the text field is empty?
>>
>> Many thanks!
>> Josiah
>>
>> Mohammad wrote:
>>>
>>>
>>>  You may like the below macro!
>>>
>>>
>>> \define append-text(tidTitle, text:"", btnLabel:"Append Text", sep:
>>> "")
>>> <$button> $btnLabel$
>>> <$list variable="newText" filter=
>>> "[<__tidTitle__>get[text]addsuffix<__sep__>addsuffix<__text__>]" >
>>> <$action-setfield $tiddler=<<__tidTitle__>> text=<> />
>>> 
>>> 
>>> \end
>>>
>>>
>>> *Examples*
>>> Test on Tiddlywiki.com. Create two tiddlers, titles TidA and TidB
>>>
>>> Example 1:
>>>
>>> <>
>>>
>>> Example 2:
>>>
>>> <$macrocall $name=append-text tidTitle="TidB" text={{TidA}} sep=" " />
>>>
>>>
>>> Remarks
>>> Note changing a field needs some kind of triggering widgets! So, here I 
>>> used a button!
>>>
>>>- *tidTitle *gets the title of tiddler you want to append text to it
>>>- *text *the text to be appended
>>>- *btnLabel*: the label for button
>>>- sep: the separator is used when appending text to end of the text 
>>>of tiddler
>>>
>>> If you want to append text of a base tiddler use syntax of example 2.
>>>
>>>
>>> I hope other people gives their solutions, comment for a better and more 
>>> concise macro!
>>>
>>> --Mohammad
>>>
>>>
>>>
>>> On Thursday, April 4, 2019 at 7:05:32 PM UTC+4:30, @TiddlyTweeter wrote:

 The use case is you create a tiddler and realise it would  be better 
 added to another (not via transclusion, rather, the literal content of 
 "text" is appended to another Tiddler's "text" field.).

 Do you know how to do this?

 Any tips appreciated.

 Best wishes
 Josiah

>>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d7aa0b36-83d2-41c3-acfa-727c599616f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: "tags" comments and questions

2019-04-06 Thread @TiddlyTweeter
Thanks Tony!

durr I'm silly! Totally confusing title to the post! I changed the title.

J.

On Sunday, 7 April 2019 05:57:54 UTC+2, TonyM wrote:
>
> Just to add to this thread
>
> Joshua is talking about tags on the Google Forum Posts (not in TiddlyWIki) 
> but about tiddleywiki
>
> Tony
>
> On Sunday, April 7, 2019 at 2:22:29 AM UTC+10, @TiddlyTweeter wrote:
>>
>> We done tags a bit now.
>>
>> So i'll comment.
>>
>> 1 -- They are *OPTIONAL* on web, so under-used.
>>
>> 2 -- They are not on email. What PROPORTION of users are on email?
>>
>> 3 -- I can't see how you'd benefit in SEARCHES.
>>
>> Is it worth it?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a9be4321-3168-44f0-b152-1efec652490d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Tiddlywiki on Node.js: Backup

2019-04-06 Thread Mohammad
Thanks Tony for suggestion!
I am still thinking if a button can run the batch file in the background 
and make the backup!

--Mohammad

On Sunday, April 7, 2019 at 8:42:36 AM UTC+4:30, TonyM wrote:
>
> Something I discovered for exporting batch files
>
>
>- Place the batchfile in a tiddler of the type text/plain
>- In windows install a printer of the Generic / Text Only type
>- In Properties/Ports select file: to print to file
>
> Now when you come across your batch file tiddler 
>
>- Optional copy the filename of the batch file to the clipboard
>- Open the tiddler in a New window
>- Select Print
>- Select Generic / Text Only Printer
>- The save file dialogue opens, paste or type the filename eg test.bat 
>test.cmd
>- Ok to save the file - the HTML extension will not be added and it is 
>a valid batch file ready to run.
>
> Regards
> Tony
>
> On Sunday, April 7, 2019 at 6:22:46 AM UTC+10, Mohammad wrote:
>>
>> Good to share! If you work on Windows the below batch file can be used to 
>> create
>> backups from you Tiddlywiki files using robocopy!
>>
>> save this is .bat or .cmd file like mybackup.cmd
>> set the source and destination folder and it works!
>>
>> I used for example 
>>
>> source=G:\TW\TW-Yazd
>> dest =G:\TW\MyArchive\TW-Yazd 
>>
>>
>> @echo off
>> cls
>>
>> :: Set Source folder, from which you copy files/folders
>> set source=G:\TW\TW-Yazd
>> :: Set Destination folder, from which you copy files/folders
>> set dest=G:\TW\MyArchive\TW-Yazd
>> :: Set Archive folder (keeps zipped files) 
>> set archive=%dest%\backups
>>
>> :: Sets specific copy instructions
>> :: See readme for more details
>> SET what=/COPY:DT /E
>>
>>
>> :: See readme for more details
>> :: Log file specifications
>> SET _options=/LOG:%dest%\backup.log
>>
>>
>> :: Generate a .mm.dd-hh.mm.ss extension
>> set 
>> _dateExt=%date:~-4,4%.%date:~-7,2%.%date:~-10,2%-%time:~0,2%.%time:~3,2%.%time:~6,2%
>> :: add leading zeros
>> set _dateExt=%_dateExt: =0%
>>
>> :: Starts ROBOCOPY
>> ROBOCOPY "%source%" "%dest%\%_dateExt%" %what% %_options%
>>
>> :: zips up the backup folder
>> "C:\Program Files\7-Zip\7z.exe" a -t7z  "%archive%\%_dateExt%.7z" 
>> "%source%\*" -r > null
>>
>> ::REF
>> :: 
>> https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy
>>
>>
>> You can turn off zip or plane backup or keep both of them as I used above!
>> Note: for zip, it uses 7zip if you have other programs replace the below 
>> line
>> "C:\Program Files\7-Zip\7z.exe"
>>
>>
>> --Mohammad
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/84d343d3-6cad-4af2-aa0d-3638a18ce5f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Global Macro or Local

2019-04-06 Thread Mohammad
Thanks Jeremy!

Added to TW-Scripts.

On Saturday, April 6, 2019 at 1:11:55 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Mohammad
>
>  I understood, the encourage is NOT to use global variable and seems 
> performance is here not a big issue!
>
>
> There is minimal processing at the point where a macro is defined; we just 
> save the text of the macro. It's only when the macro is used that its 
> content is parsed and rendered.
>
> Best wishes
>
> Jeremy.
>
>
> --Mohammad
>
> On Saturday, April 6, 2019 at 12:31:16 PM UTC+4:30, Jeremy Ruston wrote:
>>
>> Hi Tony 
>>
>> > Not avoiding duplicate names is the problem from which importvariables 
>> is a work around. 
>>
>> The purpose of importvariables is to allow macros to be local to a 
>> particular tiddler, giving much more flexibility in their reuse. Variables 
>> in TW are much like variables in an ordinary programming language in that 
>> we can reuse the same variable names in separate functions/tiddlers without 
>> them clashing. 
>>
>> Best wishes 
>>
>> Jeremy 
>>
>> > 
>> > Tony 
>> > 
>> > -- 
>> > 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 tiddl...@googlegroups.com. 
>> > To post to this group, send email to tiddl...@googlegroups.com. 
>> > Visit this group at https://groups.google.com/group/tiddlywiki. 
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/a0563edb-cc4c-44c2-a6b4-b5d060deb319%40googlegroups.com.
>>  
>>
>> > For more options, visit https://groups.google.com/d/optout. 
>>
> -- 
> 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 tiddl...@googlegroups.com .
> To post to this group, send email to tiddl...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/42cbc1dd-0cf4-4515-bda2-69dbf7451e43%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4c7158d2-0cda-4d16-bae2-532f42f1c2bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Tiddlywiki on Node.js: Backup

2019-04-06 Thread TonyM
Something I discovered for exporting batch files


   - Place the batchfile in a tiddler of the type text/plain
   - In windows install a printer of the Generic / Text Only type
   - In Properties/Ports select file: to print to file

Now when you come across your batch file tiddler 

   - Optional copy the filename of the batch file to the clipboard
   - Open the tiddler in a New window
   - Select Print
   - Select Generic / Text Only Printer
   - The save file dialogue opens, paste or type the filename eg test.bat 
   test.cmd
   - Ok to save the file - the HTML extension will not be added and it is a 
   valid batch file ready to run.

Regards
Tony

On Sunday, April 7, 2019 at 6:22:46 AM UTC+10, Mohammad wrote:
>
> Good to share! If you work on Windows the below batch file can be used to 
> create
> backups from you Tiddlywiki files using robocopy!
>
> save this is .bat or .cmd file like mybackup.cmd
> set the source and destination folder and it works!
>
> I used for example 
>
> source=G:\TW\TW-Yazd
> dest =G:\TW\MyArchive\TW-Yazd 
>
>
> @echo off
> cls
>
> :: Set Source folder, from which you copy files/folders
> set source=G:\TW\TW-Yazd
> :: Set Destination folder, from which you copy files/folders
> set dest=G:\TW\MyArchive\TW-Yazd
> :: Set Archive folder (keeps zipped files) 
> set archive=%dest%\backups
>
> :: Sets specific copy instructions
> :: See readme for more details
> SET what=/COPY:DT /E
>
>
> :: See readme for more details
> :: Log file specifications
> SET _options=/LOG:%dest%\backup.log
>
>
> :: Generate a .mm.dd-hh.mm.ss extension
> set 
> _dateExt=%date:~-4,4%.%date:~-7,2%.%date:~-10,2%-%time:~0,2%.%time:~3,2%.%time:~6,2%
> :: add leading zeros
> set _dateExt=%_dateExt: =0%
>
> :: Starts ROBOCOPY
> ROBOCOPY "%source%" "%dest%\%_dateExt%" %what% %_options%
>
> :: zips up the backup folder
> "C:\Program Files\7-Zip\7z.exe" a -t7z  "%archive%\%_dateExt%.7z" 
> "%source%\*" -r > null
>
> ::REF
> :: 
> https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy
>
>
> You can turn off zip or plane backup or keep both of them as I used above!
> Note: for zip, it uses 7zip if you have other programs replace the below 
> line
> "C:\Program Files\7-Zip\7z.exe"
>
>
> --Mohammad
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bdcc7c02-b08d-466d-9b0f-b8b9a64e881c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How do I change the default Tiddler

2019-04-06 Thread TonyM
And a quicker and simple way to to take a tiddler with the content, tag and 
type you want and using the Clone Button. Then edit as desired.

The other is to build your own new tiddler button that acts to create 
tiddlers as you want them, a form of create from template, but the template 
is stored within the button definition and action widgets.

Regards
Tony

On Sunday, April 7, 2019 at 1:03:50 AM UTC+11, ss48 wrote:
>
> Any time I insert a new Tiddler, I find myself assigning the same tags and 
> changing the content type to Markdown. How do I enable new Tiddlers created 
> (whether a new tiddler or journal tiddler, etc) to have these by default?
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bc816206-eeed-4790-9433-6dd3fb923e21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: "tags" comments and questions

2019-04-06 Thread TonyM
Just to add to this thread

Joshua is talking about tags on the Google Forum Posts (not in TiddlyWIki) 
but about tiddleywiki

Tony

On Sunday, April 7, 2019 at 2:22:29 AM UTC+10, @TiddlyTweeter wrote:
>
> We done tags a bit now.
>
> So i'll comment.
>
> 1 -- They are *OPTIONAL* on web, so under-used.
>
> 2 -- They are not on email. What PROPORTION of users are on email?
>
> 3 -- I can't see how you'd benefit in SEARCHES.
>
> Is it worth it?
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fef991d7-280e-4939-a3c3-a4f70c6b73fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: IF you made a "database" of plugins, what would be the fields?

2019-04-06 Thread TonyM
I do have my own registry.

I create a new tiddler with a related tiddler name eg 
$:/plugins/tobibeer/split 
 has 
Plugin-tobibeer/split containing


   - Source 
   - keywords: 
   - plugintiddler: 
   - reference: 
   - repository:

   This lets me avoid changing the actual plugin tiddler whilst adding 
details that may have being omitted from the plugin tiddler.
RegardsTony
On Sunday, April 7, 2019 at 4:29:22 AM UTC+10, @TiddlyTweeter wrote:
>
> Thanks Jed, Very helpful.
>
> On Saturday, 6 April 2019 18:55:10 UTC+2, Jed Carty wrote:
>>
>> If I were to do this hypothetical thing it would be done about like this 
>> http://inmysocks.tiddlyspot.com/#twCard%20Listing%20-%20Plugins
>>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9f71ecbc-cd7b-4da3-9348-a5c97c6ded33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re:

2019-04-06 Thread Mal


On Saturday, 6 April 2019 17:46:15 UTC+10, S. S. wrote:
>
> Mal,
>
> Unfortunately that *color:black* styles the normal text and not the text 
> inside the my code tags.
>
> 
> This would get green color
> `this does not change color`
> This also gets green color
> 
>
> S. S,,

You're right - when I tried this in tiddlywiki.com, I was using a code 
block (triple backticks) and it seemed to work, but as you point out, it 
does not work with inline code (`code`).

A span element seems to also work for code blocks.

Mal

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b3ce21e6-205b-4be7-8917-bd2602fb6f72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] When syncing TW, modified date of duplicate tiddlers is updated

2019-04-06 Thread TonyM
have you tried simply turning off the timestamps option in sidebar before 
importing?

tony

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d4891e59-c074-4d6e-b5d1-043ba1f75854%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to? --- APPEND one tiddler "text" to another? #append

2019-04-06 Thread Mohammad
Hi Josiah!
 This new version works ALSO with empty tiddlers

\define append-text(tidTitle, text:"", btnLabel:"Append Text", sep:"")
<$button> $btnLabel$
<$list variable="newText" 
filter="[<__tidTitle__>get[text]addsuffix<__sep__>addsuffix<__text__>]" 
emptyMessage="""<$action-setfield $tiddler=<<__tidTitle__>> 
text=<<__text__>> />""" >
<$action-setfield $tiddler=<<__tidTitle__>> text=<> />


\end



On Saturday, April 6, 2019 at 2:01:54 PM UTC+4:30, @TiddlyTweeter wrote:
>
> Thanks for the quick response! Very useful tool!
>
> It works well except that if the target Tiddler (in the example TidB) has 
> an empty text field it won't get appended to. 
>
> Is there a way to get the append working even if the text field is empty?
>
> Many thanks!
> Josiah
>
> Mohammad wrote:
>>
>>
>>  You may like the below macro!
>>
>>
>> \define append-text(tidTitle, text:"", btnLabel:"Append Text", sep:""
>> )
>> <$button> $btnLabel$
>> <$list variable="newText" filter=
>> "[<__tidTitle__>get[text]addsuffix<__sep__>addsuffix<__text__>]" >
>> <$action-setfield $tiddler=<<__tidTitle__>> text=<> />
>> 
>> 
>> \end
>>
>>
>> *Examples*
>> Test on Tiddlywiki.com. Create two tiddlers, titles TidA and TidB
>>
>> Example 1:
>>
>> <>
>>
>> Example 2:
>>
>> <$macrocall $name=append-text tidTitle="TidB" text={{TidA}} sep=" " />
>>
>>
>> Remarks
>> Note changing a field needs some kind of triggering widgets! So, here I 
>> used a button!
>>
>>- *tidTitle *gets the title of tiddler you want to append text to it
>>- *text *the text to be appended
>>- *btnLabel*: the label for button
>>- sep: the separator is used when appending text to end of the text 
>>of tiddler
>>
>> If you want to append text of a base tiddler use syntax of example 2.
>>
>>
>> I hope other people gives their solutions, comment for a better and more 
>> concise macro!
>>
>> --Mohammad
>>
>>
>>
>> On Thursday, April 4, 2019 at 7:05:32 PM UTC+4:30, @TiddlyTweeter wrote:
>>>
>>> The use case is you create a tiddler and realise it would  be better 
>>> added to another (not via transclusion, rather, the literal content of 
>>> "text" is appended to another Tiddler's "text" field.).
>>>
>>> Do you know how to do this?
>>>
>>> Any tips appreciated.
>>>
>>> Best wishes
>>> Josiah
>>>
>>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/39d6243a-6408-4ab9-8b9f-4a9d817b743d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Tiddlywiki on Node.js: Backup

2019-04-06 Thread Mohammad
Good to share! If you work on Windows the below batch file can be used to 
create
backups from you Tiddlywiki files using robocopy!

save this is .bat or .cmd file like mybackup.cmd
set the source and destination folder and it works!

I used for example 

source=G:\TW\TW-Yazd
dest =G:\TW\MyArchive\TW-Yazd 


@echo off
cls

:: Set Source folder, from which you copy files/folders
set source=G:\TW\TW-Yazd
:: Set Destination folder, from which you copy files/folders
set dest=G:\TW\MyArchive\TW-Yazd
:: Set Archive folder (keeps zipped files) 
set archive=%dest%\backups

:: Sets specific copy instructions
:: See readme for more details
SET what=/COPY:DT /E


:: See readme for more details
:: Log file specifications
SET _options=/LOG:%dest%\backup.log


:: Generate a .mm.dd-hh.mm.ss extension
set 
_dateExt=%date:~-4,4%.%date:~-7,2%.%date:~-10,2%-%time:~0,2%.%time:~3,2%.%time:~6,2%
:: add leading zeros
set _dateExt=%_dateExt: =0%

:: Starts ROBOCOPY
ROBOCOPY "%source%" "%dest%\%_dateExt%" %what% %_options%

:: zips up the backup folder
"C:\Program Files\7-Zip\7z.exe" a -t7z  "%archive%\%_dateExt%.7z" 
"%source%\*" -r > null

::REF
:: 
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy


You can turn off zip or plane backup or keep both of them as I used above!
Note: for zip, it uses 7zip if you have other programs replace the below 
line
"C:\Program Files\7-Zip\7z.exe"


--Mohammad

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/104c34b2-0088-42f1-8caf-26dc5f873775%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: IF you made a "database" of plugins, what would be the fields?

2019-04-06 Thread @TiddlyTweeter
Thanks Jed, Very helpful.

On Saturday, 6 April 2019 18:55:10 UTC+2, Jed Carty wrote:
>
> If I were to do this hypothetical thing it would be done about like this 
> http://inmysocks.tiddlyspot.com/#twCard%20Listing%20-%20Plugins
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/825c152f-bed9-4597-b18e-b1944550bcfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: "tags" comments and questions

2019-04-06 Thread @TiddlyTweeter
S.S. I agree that using them does no harm, Its fine to go on trying a few 
months yet.

My Point was they are basically ineffectual.

Perhaps somebody can show otherwise later. Right now they mean little IMO.

But let us see. 

I can wait on your proof :-).

Best wishes
Josiah

On Saturday, 6 April 2019 19:41:54 UTC+2, S. S. wrote:
>
> I feel there is no harm using them. It takes months if not longer for 
> their usefulness to become apparent. And if that doesn't happen, nothing 
> lost. But if it does become useful, so much gained.
>
> On Saturday, April 6, 2019 at 11:22:29 PM UTC+7, @TiddlyTweeter wrote:
>>
>> We done tags a bit now.
>>
>> So i'll comment.
>>
>> 1 -- They are *OPTIONAL* on web, so under-used.
>>
>> 2 -- They are not on email. What PROPORTION of users are on email?
>>
>> 3 -- I can't see how you'd benefit in SEARCHES.
>>
>> Is it worth it?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ce50be66-f5dd-478a-a58f-630cd2d33314%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: "tags" comments and questions

2019-04-06 Thread S. S.
I feel there is no harm using them. It takes months if not longer for their 
usefulness to become apparent. And if that doesn't happen, nothing lost. 
But if it does become useful, so much gained.

On Saturday, April 6, 2019 at 11:22:29 PM UTC+7, @TiddlyTweeter wrote:
>
> We done tags a bit now.
>
> So i'll comment.
>
> 1 -- They are *OPTIONAL* on web, so under-used.
>
> 2 -- They are not on email. What PROPORTION of users are on email?
>
> 3 -- I can't see how you'd benefit in SEARCHES.
>
> Is it worth it?
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/40e55f59-7176-4db1-abe8-b25c737060dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How do I change the default Tiddler

2019-04-06 Thread S. S.
The really quick answer lies here: TemplateTiddlers 

That will show you that it can be done!

For a more complete solution, you may try searching the group for more 
examples of template tiddlers.

On Saturday, April 6, 2019 at 9:03:50 PM UTC+7, ss48 wrote:
>
> Any time I insert a new Tiddler, I find myself assigning the same tags and 
> changing the content type to Markdown. How do I enable new Tiddlers created 
> (whether a new tiddler or journal tiddler, etc) to have these by default?
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8413fc6a-8d48-4ef1-a123-dfeaab7ce84e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: "tags" comments and questions

2019-04-06 Thread @TiddlyTweeter
repeat for email ...

On Saturday, 6 April 2019 18:22:29 UTC+2, @TiddlyTweeter wrote:
>
> We done tags a bit now.
>
> So i'll comment.
>
> 1 -- They are *OPTIONAL* on web, so under-used.
>
> 2 -- They are not on email. What PROPORTION of users are on email?
>
> 3 -- I can't see how you'd benefit in SEARCHES.
>
> Is it worth it?
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/826fa5fc-c667-46f1-b45e-244a5b0f6e76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: IF you made a "database" of plugins, what would be the fields?

2019-04-06 Thread Jed Carty
If I were to do this hypothetical thing it would be done about like 
this http://inmysocks.tiddlyspot.com/#twCard%20Listing%20-%20Plugins

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/00f06522-cfd6-474d-b300-a5297c326aa7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: IF you made a "database" of plugins, what would be the fields?

2019-04-06 Thread @TiddlyTweeter
Ciao Dave

Perhaps, rather "fetch" for plugin and "view demo".

I updated accordingly.

J. x

On Saturday, 6 April 2019 18:15:41 UTC+2, David Gifford wrote:
>
> Two fetch addresses, one for the plugin and one for the demo
>
> Topic(s)
>
> Dave
>
> On Saturday, April 6, 2019 at 9:31:20 AM UTC-6, @TiddlyTweeter wrote:
>>
>> Following from my last post.
>>
>> I'm unclear what info is needed on a plugin to ensure it documented ...
>>
>> I got as far as ...
>>
>> author...
>> release-no...
>> tw-version-up...
>> fetch-address...
>> license...
>>
>> I am NOT clear if this was ever standardised?
>>
>> J.
>>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/268369b0-ef99-4ae5-9ac6-a262391adf36%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: IF you made a "database" of plugins, what would be the fields?

2019-04-06 Thread David Gifford
Two fetch addresses, one for the plugin and one for the demo

Topic(s)

Dave

On Saturday, April 6, 2019 at 9:31:20 AM UTC-6, @TiddlyTweeter wrote:
>
> Following from my last post.
>
> I'm unclear what info is needed on a plugin to ensure it documented ...
>
> I got as far as ...
>
> author...
> release-no...
> tw-version-up...
> fetch-address...
> license...
>
> I am NOT clear if this was ever standardised?
>
> J.
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f0c1c48e-b61c-4e76-a349-6df2a3a57700%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] How do I change the default Tiddler

2019-04-06 Thread ss48
Any time I insert a new Tiddler, I find myself assigning the same tags and 
changing the content type to Markdown. How do I enable new Tiddlers created 
(whether a new tiddler or journal tiddler, etc) to have these by default?

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6f1db8b2-a2a2-41ad-afbc-28ac623b6f7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re:

2019-04-06 Thread barrowgloom


On Saturday, April 6, 2019 at 3:46:15 AM UTC-4, S. S. wrote:
>
> Mal,
>
> Unfortunately that *color:black* styles the normal text and not the text 
> inside the my code tags.
>
>  
how 'bout a inline styling on a ?

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/362b3fb0-f46c-4498-8911-529de79af749%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to listing indexes/values for multiple data tiddlers?

2019-04-06 Thread barrowgloom
A json tiddler with the page with the code from above and 15 small data 
tiddlers so show what I was attempting.  There's some extra coding and 
display elements on the main page that are for assisting with 
troubleshooting, it should make sense I hope.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a63ac136-4950-4ab4-871c-722fcf215195%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


exampletiddlers.json
Description: application/json


Re: [tw5] Re: [TW5] Bob and BobEXE version 1.2.2 Friend Potatoes

2019-04-06 Thread Stefan Pfister
Jed, can you post your raspi configuration of tw bob? I would like to use
this too on my raspi nas. Thanks, Stefan

Jed Carty  schrieb am Sa., 6. Apr. 2019, 13:44:

> Paul,
>
> Bob is a plugin that replaces the server component of the normal node
> tiddlywiki. The big differentiating features are that it has close to
> real-time updates to sync tiddlers between any connected browsers and the
> harddrive, multi-user features so multiple people can use and edit the same
> wiki at the same time, and features to create and manage wikis within the
> wiki itself.
>
> Edits made to tiddlers outside a wiki will appear in all of the browsers
> viewing that wiki almost immediately. The syncing also goes the same way,
> so if you have two browsers that are viewing the same wiki if you edit one
> of them the edits show up in the other one. This allows multiple people to
> use the same wiki at the same time without conflicting edits or losing
> information. Unfortunately this isn't the same sort of real-time
> collaboration like on google docs where you see someone else typing,
> instead when someone starts to edit a tiddler it locks that tiddler in
> every other connected browser and shows the changes after the editing is
> finished.
>
> The wiki management features include the ability to share a plugin library
> between all wikis served by Bob, creating new wikis from within Bob,
> converting single file wikis into node wikis, exporting node wikis as
> single file wikis with the unneeded plugins stripped out, and just about
> every configuration setting for the server can be set and modified from
> within the wiki itself. You can also fetch plugins directly from GitHub
> instead of having to drag and drop them into wikis.
>
> Within the next week or two I will add the ability to rename/move, delete,
> and duplicate wikis as well. And I am in the process of adding syncing
> between servers so that you could have a version on your laptop and on the
> pi at home and the two versions would sync when you are on the same network.
>
> I have it running on a raspberry pi 3 on my home network and it hasn't
> given me any trouble. I added a line to rc.local to start up the server
> process when the pi boots.
>
> --
> 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 post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/54ebf41e-317b-4e97-8495-02a8753aacd6%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAM57EO1JTn-bsVcDS5yUt3MRNHj9yqKM%2B7Y9scF4fbs%2B-h32UA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TW5] Bob and BobEXE version 1.2.2 Friend Potatoes

2019-04-06 Thread Jed Carty
Paul,

Bob is a plugin that replaces the server component of the normal node 
tiddlywiki. The big differentiating features are that it has close to 
real-time updates to sync tiddlers between any connected browsers and the 
harddrive, multi-user features so multiple people can use and edit the same 
wiki at the same time, and features to create and manage wikis within the 
wiki itself.

Edits made to tiddlers outside a wiki will appear in all of the browsers 
viewing that wiki almost immediately. The syncing also goes the same way, 
so if you have two browsers that are viewing the same wiki if you edit one 
of them the edits show up in the other one. This allows multiple people to 
use the same wiki at the same time without conflicting edits or losing 
information. Unfortunately this isn't the same sort of real-time 
collaboration like on google docs where you see someone else typing, 
instead when someone starts to edit a tiddler it locks that tiddler in 
every other connected browser and shows the changes after the editing is 
finished.

The wiki management features include the ability to share a plugin library 
between all wikis served by Bob, creating new wikis from within Bob, 
converting single file wikis into node wikis, exporting node wikis as 
single file wikis with the unneeded plugins stripped out, and just about 
every configuration setting for the server can be set and modified from 
within the wiki itself. You can also fetch plugins directly from GitHub 
instead of having to drag and drop them into wikis.

Within the next week or two I will add the ability to rename/move, delete, 
and duplicate wikis as well. And I am in the process of adding syncing 
between servers so that you could have a version on your laptop and on the 
pi at home and the two versions would sync when you are on the same network.

I have it running on a raspberry pi 3 on my home network and it hasn't 
given me any trouble. I added a line to rc.local to start up the server 
process when the pi boots.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/54ebf41e-317b-4e97-8495-02a8753aacd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] When syncing TW, modified date of duplicate tiddlers is updated

2019-04-06 Thread talha131


I have a TW running on nodejs and stored in Git. Each tiddler is a separate 
file. 

When I have to sync another copy of the same TW, I drop the TW.html file on 
it. TW is smart enough to create the new tiddlers.

The tiddlers that are already present and have not changed, their modified 
date is updated.

How do I tell TW that if a tiddler is already present and its content has 
not changed then do not touch its modified date?

Or how to tell TW, when importing another wiki, do not copy the modified 
date?
​

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7ff79943-c3b4-4548-ac4a-a7c02558c83a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to change the language menomic that highlightjs uses?

2019-04-06 Thread talha131
See this thread

https://groups.google.com/forum/#!topic/tiddlywiki/LUFCr2-KcP0

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/89f28a6a-013d-4cda-bb7f-8ac3ce5c19d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Why highlight.js language alias does not work?

2019-04-06 Thread talha131
Highlight.js lets you use aliases for languages. It's list of aliases is 
[available 
here](https://highlightjs.readthedocs.io/en/latest/css-classes-reference.html#language-names-and-aliases).


According to it, both of the following code blocks are similar

```
```javascript
```

```
```js
```

But in TW, `js` does not work for javascript, or any alias for other 
languages.

I looked into the [source code of highlight.js plugin in 
TW](https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/highlight/files/highlight.pack.js).

After prettifying it, it was clear that aliases for each language were 
defined in the highlight.js source code.

Then I looked up the code of 
[highlightblock.js](https://github.com/Jermolene/TiddlyWiki5/blob/master/plugins/tiddlywiki/highlight/highlightblock.js).

What I understand, this line of code is used to see if language is 
supported by the plugin or not

```js
if(language && hljs.listLanguages().indexOf(language) !== -1) {
```

`listLanguages()` method does not support aliases. It only returns a list 
of full name of supported languages.

Its API has another method 
[getLanguage()](https://highlightjs.readthedocs.io/en/latest/api.html#getlanguage-name)
 
that supports aliases. So

```
hljs.getLanguage('javascript') // Object
hljs.getLanguage('js') // Object
hljs.getLanguage('blahblah') // undefined
```

So changing the offending line with 

```js
if(language && hljs.getLanguage(language)) {
```

fixed the issue in my tests. I have submitted a PR with this patch

https://github.com/Jermolene/TiddlyWiki5/pull/3898/files

I am writing it in detail in here so that if my understanding is incorrect 
then someone would correct me and suggest a proper solution.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d5c412e8-30c9-4513-a460-c31852afc4b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re:

2019-04-06 Thread TonyM
if in the tiddlers in question or using view template what you include between 
the style tags is a definition of the myclass and in the body you use 
style="myclassname" in correct format you define a cistom class and apply and 
it will note change it elsewhere.

Tony

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5a490775-b443-4d3f-b098-ff3da14c4ac8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to listing indexes/values for multiple data tiddlers?

2019-04-06 Thread barrowgloom
>> Without some example tiddlers I don't think I can do more than point out 
where I think the problem is.

You mean the data tiddlers?  I could provide altered copies (the originals 
have proprietary info but this is important enough for the effort) in a 
json tid which would have shorter data tiddlers and the display tiddler 
that the code from above came from.  If you're willing to toy with the 
actual tid's, I will definitely take you up on that generosity.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a66e2cd8-a780-4b37-9cec-c1a895ea92f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to listing indexes/values for multiple data tiddlers?

2019-04-06 Thread barrowgloom

>
> First because I don't think I can explain it in text, here is simplified 
> annotated code:
>
>
That will work just as well as an explanation-- will give me something to 
experiment will to see how it works.  The same way I got the filter run 
expression to work between the select and display table -- kept trying 
different ways till one got me the results I was hoping for-- love TW's 
preview pane.  I greatly appreciate your assistance.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/687d3e13-8ab8-463b-9d73-428ed878e80b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to? --- APPEND one tiddler "text" to another? #append

2019-04-06 Thread @TiddlyTweeter
Thanks for the quick response! Very useful tool!

It works well except that if the target Tiddler (in the example TidB) has 
an empty text field it won't append. 

Is there a way to get the append working even if the text field is empty?

Many thanks!
Josiah

Mohammad wrote:
>
>
>  You may like the below macro!
>
>
> \define append-text(tidTitle, text:"", btnLabel:"Append Text", sep:"")
> <$button> $btnLabel$
> <$list variable="newText" filter=
> "[<__tidTitle__>get[text]addsuffix<__sep__>addsuffix<__text__>]" >
> <$action-setfield $tiddler=<<__tidTitle__>> text=<> />
> 
> 
> \end
>
>
> *Examples*
> Test on Tiddlywiki.com. Create two tiddlers, titles TidA and TidB
>
> Example 1:
>
> <>
>
> Example 2:
>
> <$macrocall $name=append-text tidTitle="TidB" text={{TidA}} sep=" " />
>
>
> Remarks
> Note changing a field needs some kind of triggering widgets! So, here I 
> used a button!
>
>- *tidTitle *gets the title of tiddler you want to append text to it
>- *text *the text to be appended
>- *btnLabel*: the label for button
>- sep: the separator is used when appending text to end of the text of 
>tiddler
>
> If you want to append text of a base tiddler use syntax of example 2.
>
>
> I hope other people gives their solutions, comment for a better and more 
> concise macro!
>
> --Mohammad
>
>
>
> On Thursday, April 4, 2019 at 7:05:32 PM UTC+4:30, @TiddlyTweeter wrote:
>>
>> The use case is you create a tiddler and realise it would  be better 
>> added to another (not via transclusion, rather, the literal content of 
>> "text" is appended to another Tiddler's "text" field.).
>>
>> Do you know how to do this?
>>
>> Any tips appreciated.
>>
>> Best wishes
>> Josiah
>>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/97739e18-cb6c-4e08-8ac8-6f0b2f1e0db3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] [TW5] Bob and BobEXE version 1.2.2 Friend Potatoes

2019-04-06 Thread Paul Richards
Hello Jed,

I setup a node.js version of TW on a Raspberry Pi last year to run a family GTD 
system. Unfortunately, it didn't have a great reception, being deemed too 
complicated. I also had hosting issues.

I've decided to revisit the project, did some reading to refresh my memory and 
saw Bob. I'd like to know a bit more about how it differs from a straight 
node.js implementation (which I had configuration issues with) and whether Bob 
will suit my needs. Are there any resources I can look to to get a better grasp 
of what Bob does.

Any help gratefully received. (I regularly contribute to open source projects 
and will do so gladly if Bob is something I can use). One of the problems of 
the TW universe is that there are so many variations, so many use cases, so 
much information that it is quite difficult even knowing where to start. BTW I 
am computer literate, being an ex analyst programmer.

Regards Paul.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f8a1c027-46fc-470e-a9b1-bbd8e55fabdd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: [Off Topic] Laser cut Motovun Jack

2019-04-06 Thread Jeremy Ruston
Hi Jed

Marvellous, thank you. It'll be a fitting way to mark all your work helping the 
TiddlyWiki community.

Best wishes

Jeremy

--
Jeremy Ruston
jer...@jermolene.com
https://jermolene.com

> On 5 Apr 2019, at 23:43, Jed Carty  wrote:
> 
> Jeremy,
> 
> After getting the focus worked out we have had some much better results. Next 
> week I will cut out another one that has better lines and isn't missing a 
> tail and get Ben (the resident photography person) to get a good photo of it 
> for tiddlywiki.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 post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/53c624bb-19ff-4f7f-9ce0-961348e65190%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/C130EEBA-3A26-437A-AFA9-A75948E8F72D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Global Macro or Local

2019-04-06 Thread Jeremy Ruston
Hi Mohammad

>  I understood, the encourage is NOT to use global variable and seems 
> performance is here not a big issue!

There is minimal processing at the point where a macro is defined; we just save 
the text of the macro. It's only when the macro is used that its content is 
parsed and rendered.

Best wishes

Jeremy.

> 
> --Mohammad
> 
>> On Saturday, April 6, 2019 at 12:31:16 PM UTC+4:30, Jeremy Ruston wrote:
>> Hi Tony 
>> 
>> > Not avoiding duplicate names is the problem from which importvariables is 
>> > a work around. 
>> 
>> The purpose of importvariables is to allow macros to be local to a 
>> particular tiddler, giving much more flexibility in their reuse. Variables 
>> in TW are much like variables in an ordinary programming language in that we 
>> can reuse the same variable names in separate functions/tiddlers without 
>> them clashing. 
>> 
>> Best wishes 
>> 
>> Jeremy 
>> 
>> > 
>> > Tony 
>> > 
>> > -- 
>> > 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 tiddl...@googlegroups.com. 
>> > To post to this group, send email to tiddl...@googlegroups.com. 
>> > Visit this group at https://groups.google.com/group/tiddlywiki. 
>> > To view this discussion on the web visit 
>> > https://groups.google.com/d/msgid/tiddlywiki/a0563edb-cc4c-44c2-a6b4-b5d060deb319%40googlegroups.com.
>> >  
>> > For more options, visit https://groups.google.com/d/optout. 
> 
> -- 
> 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 post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/42cbc1dd-0cf4-4515-bda2-69dbf7451e43%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/DAEBF80A-0661-48C8-90DA-6086F6D0E4C7%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Global Macro or Local

2019-04-06 Thread Mohammad
Dear all,
Thank you for your inputs.

 I understood, the encourage is NOT to use global variable and seems 
performance is here not a big issue!

--Mohammad

On Saturday, April 6, 2019 at 12:31:16 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Tony 
>
> > Not avoiding duplicate names is the problem from which importvariables 
> is a work around. 
>
> The purpose of importvariables is to allow macros to be local to a 
> particular tiddler, giving much more flexibility in their reuse. Variables 
> in TW are much like variables in an ordinary programming language in that 
> we can reuse the same variable names in separate functions/tiddlers without 
> them clashing. 
>
> Best wishes 
>
> Jeremy 
>
> > 
> > Tony 
> > 
> > -- 
> > 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 tiddl...@googlegroups.com . 
> > To post to this group, send email to tiddl...@googlegroups.com 
> . 
> > Visit this group at https://groups.google.com/group/tiddlywiki. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/a0563edb-cc4c-44c2-a6b4-b5d060deb319%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/42cbc1dd-0cf4-4515-bda2-69dbf7451e43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: $list filter with empty tiddler values - interesting behaviour to know

2019-04-06 Thread S. S.

LorenzGL - it's always better to open a new Topic than change the subject 
of a running topic completely - as others will most likely not benefit from 
this discussion. It also detracts from discussion on the original topic.

Anyway, since this topic is already corrupted, I believe this also works:

<$set name="fieldValue" 
filter="[[TiddlerA]get[text]removeprefix[prefix]get[fieldname]]">

<>




-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/748c6c91-0546-402f-9ddb-58e503658be4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to listing indexes/values for multiple data tiddlers?

2019-04-06 Thread Jed Carty
First because I don't think I can explain it in text, here is simplified 
annotated code:


<$set name="data" value={{!!filter-field2}}> // <-- the variable data is a 
suffix we want
<$list filter="[tag[#dataset]suffixindexes[all]]"> // <-- get a list 
of all indexes in all tiddlers with the suffix
{{!!title}} // <-- This title is the current title returned by the 
list, so it is an index name from the list above
<$transclude tiddler=<> index=<>/> // <-- The 
problem is here, currentTiddler is the current item in the list, which is 
the same as {{!!title}} above and tiddler=<> tries to go to the 
tiddler named 'mobs/hau' not a tiddler with that suffix.



so the line is in the transclude widget, it is trying to transclude from a 
tiddler called mob/hau, not the data tiddler you want. Without some example 
tiddlers I don't think I can do more than point out where I think the 
problem is.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5e6c85f8-9b2b-44e5-833f-477dce9a62a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Global Macro or Local

2019-04-06 Thread Jeremy Ruston
Hi Tony

> Not avoiding duplicate names is the problem from which importvariables is a 
> work around.

The purpose of importvariables is to allow macros to be local to a particular 
tiddler, giving much more flexibility in their reuse. Variables in TW are much 
like variables in an ordinary programming language in that we can reuse the 
same variable names in separate functions/tiddlers without them clashing.

Best wishes

Jeremy

> 
> Tony
> 
> -- 
> 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 post to this group, send email to tiddlywiki@googlegroups.com.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/a0563edb-cc4c-44c2-a6b4-b5d060deb319%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/A57809D7-69E8-4CB2-B9C0-FE9712B40269%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re:

2019-04-06 Thread S. S.
Mal,

Unfortunately that *color:black* styles the normal text and not the text 
inside the my code tags.


This would get green color
`this does not change color`
This also gets green color



On Saturday, April 6, 2019 at 1:59:14 PM UTC+7, Mal wrote:
>
> I guess you could make this a bit simpler by using inline style in the div 
> element:
>
> 
> `code`
> 
>
> Mal
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/811ba865-7efc-4793-aa31-ddd8e672b773%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Global Macro or Local

2019-04-06 Thread TonyM
mal

Not avoiding duplicate names is the problem from which importvariables is a 
work around.

Tony

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a0563edb-cc4c-44c2-a6b4-b5d060deb319%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re:

2019-04-06 Thread Mal
I guess you could make this a bit simpler by using inline style in the div 
element:


`code`


Mal

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4e8ad4a4-44c5-4780-9c21-6cadbf669fcc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Global Macro or Local

2019-04-06 Thread Mal
The other issue is the potential for namespace collisions when using 
$:/tags/Macro.  In a tiddler with this tag, every macro is available globally, 
so you need to be careful to choose unique names.  Importing macros avoids this 
problem.

Mal

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d8d033ad-6ab8-4339-bc82-d01ae2488b9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re:

2019-04-06 Thread S. S.
Ah! Thanks Tony!

it will effect the whole wiki as long as the tiddler it is in is *displayed*
> .
>

Didn't realize that.
I wanted the style definition to be within the tiddler it would affect - I 
did not want it in another (separate) tiddler.
Hope the solution I found is the right way for it to be done. I used it in 
today's update to the date Macro 
.

Cheers!


On Saturday, April 6, 2019 at 12:57:30 PM UTC+7, TonyM wrote:
>
> it will effect the whole wiki as long as the tiddler it is in is 
> displayed. Css redefines the class for all its use ie cascades.
>
> I recomend moving the css definition to a stylesheet tiddler and tagging 
> it as a stylesheet then it is reusable as a class only when needed.
>
> Regards
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/84bc63ba-76d3-4db2-86c2-51cd83e01ef2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: $list filter with empty tiddler values - interesting behaviour to know

2019-04-06 Thread S. S.
As Tony pointed out, perhaps more on this line:

<$set name="fieldValue" filter="[[TiddlerA]get[text]removeprefix[prefix]]">
<$set name="filterInput" filter="[subfilterget[fieldname]]">

<$text text=<>/>




Regards.



On Saturday, April 6, 2019 at 12:35:48 PM UTC+7, TonyM wrote:
>
> Step 2 filterinput is defoned as a variable.
>
> Thus the final  is [subfilter]
>
> Regards
> tony
>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9b33bb22-223f-413e-ac60-d03b9ce996c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.