[tw5] Re: How to add fonts to TW running on NodeJS

2020-09-10 Thread Tejasvi S Tomar
You may try to limit the choices within "web-safe fonts" 
https://web.mit.edu/jmorzins/www/fonts.html.

On Thursday, September 10, 2020 at 11:13:39 PM UTC+5:30, talha131 wrote:
>
> I am running TW from NodeJS. I need to add some fonts that I use in some 
> CSS classes only.
>
> Currently, TW picks the fonts from the system, which is fine for now. My 
> concern is that when I export the tiddlers to an HTML file using the save 
> command or using the export tiddler menu item, then the font will not be 
> part of it. The target system will most likely not have the required fonts.
>
> How do I add fonts such that they are embedded in export? Should I create 
> a `fonts` folder inside my tiddlers' folder?
>
> What other way is there to add fonts to TW? 
>
> I have found this tutorial, but it is only for hosted fonts; I want to use 
> fonts on HDD.
>
>
> https://ibnishak.github.io/Tesseract/UI/index.html#How%20to%20use%20google%20fonts%20in%20TW5
>  
>
>
>
>
>

-- 
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/62acc0f0-f22e-48bb-9e0c-917cab3546aao%40googlegroups.com.


[tw5] Clarification needed for the difference between drag n' drop and folder installation

2020-09-10 Thread Tejasvi S Tomar

>
> 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.

https://tiddlywiki.com/static/Installing%2520custom%2520plugins%2520on%2520Node.js.html

Why the plugin being "available under Node.js" is relevant as long as it 
works in the browser?

-- 
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/a2689a3f-f9c5-408e-bb00-7df7194e9377o%40googlegroups.com.


[tw5] How to open all AdvancedSearch search results to StoryList instead of exporting?

2020-09-10 Thread tony
Hi 

Does anyone know a way to open all the search matches from 
$:/AdvancedSearch or save them as a list in a separate tiddler? 

I was trying to evangelize Tiddlywiki and ran into a roadblock when they 
asked if there was a way to open all the results from AdvancedSearch 
instead of clicking them one by one to open in the StoryList. That seemed 
surprisingly straightforward since there is an Close All button, but I 
could figure out how to Open All.

I thought there was a plugin or macro that had an Open All from the 
Exporter menu which opened all the titles instead of exporting but maybe 
that was in TiddlyWiki Classic and I cannot recollect or find so in 
TiddlyWiki 5. 

Luckily Tobias Beer's SidebarStories [1] was somewhat a workaround to load 
a story and 
setTo={{$:/StoryList!!list}}

And I also showed Duarte's Local Search engine to great effect and the 
search filter results open the tiddlers in the StoryList directly.[2] 

But I cannot figure out where the search results are stored ?
[!is[system]search{$(searchTiddler)$}]

or how to push them to the StoryList?

Any leads much obliged 

Thank you, 

tony 

[1] https://tobibeer.github.io/tb5/#%24%3A%2F.tb%2Fui%2FSideBar%2FStories 
[2] https://groups.google.com/g/tiddlywiki/c/qBZa9XP5c4I/m/YwHePmZLBgAJ 

-- 
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/2edc1d2e-ea7e-437b-a64f-3b27575d831co%40googlegroups.com.


[tw5] Re: Announcing A Static Site Generator

2020-09-10 Thread Charlie Veniot
That is a right beauty of a blog and a really wonderful TiddlyWiki use 
case.  Bravo!

On Thursday, September 10, 2020 at 9:16:09 PM UTC-3 digit...@gmail.com 
wrote:

>
> I finally "finished" something I have wanted to do for a very long time - 
> made a static site generator using tiddlywiki to generate my blog.
>
> All of this is obviously still very much a work in progress but I think it 
> is done enough to be useful to myself and others.
>
> The code is on [github](
> https://github.com/digitalap3/tiddlywikistaticsitegen). There is a static 
> file tiddlywiki there as well so you can quickly download that and see what 
> it looks like without running any code.
>
> Basically it makes use of TW's amazing templating powers so there is room 
> for changing the structure whenever you desire. I run everything through 
> Docker but obviously you can take the code and do what you like.
>
> The basic workflow is:
>
> # create a post with the tag 'draft'. This will be the displayed title of 
> the post
> # open the `Create New Post` tiddler.
> # follow the instructions. The first field is the uri of the post. It is 
> recommended to use all lower case and hyphens. NO SPACES. I would avoid 
> special characters but apostrophes seemed to work fine. This will be the 
> title of the final draft that is to be rendered.
> # run build script. this moves images out of the tiddler directory and 
> renders all files with appropriate fields and tags.
> # run webserver and check changes in new tab
> # repeat until you have desired outcomes.
> # copy files to root directory of production site
>
> There are slightly more detailed instructions in the readme of the github 
> repo. I will also write more detailed blog posts.
>
> The semi finished product is at https://blog.digitalap3.com
>
> I am sure there is lots that I have overlooked and far easier ways to do a 
> lot of the things done in the tiddlers so I appreciate any suggestions.
>
> I really am enjoying this little project. Tiddlywiki is just mind-blowing.
>

-- 
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/3d2cce0b-4654-4e24-a3c3-fb527ae07ba7n%40googlegroups.com.


[tw5] Re: [Tiddly Research] Public release

2020-09-10 Thread 'Mark S.' via TiddlyWiki
I'm mostly interested in TiddlyRemember. Can I just drag the updated plugin 
into my existing TW file? Does the anki plugin need to be updated?

Thanks!

On Monday, September 7, 2020 at 6:14:02 AM UTC-7, kebi wrote:
>
>
> *New update v1.1! 
> https://github.com/kebifurai/TiddlyResearch/releases/tag/v1.1 
> *
>
> *For everyone using Tiddly Research, it is recommended that you update to 
> this new version.*
>
> How to update from v1.0:
>
>- Open your current wiki
>- Click on the "Export all" button situated on the topbar and export 
>all your tiddlers
>- Download the new version and open it
>- Import all your tiddlers by drag and dropping the file generated 
>from step n.2
>
> Changelog:
>
>- Changed the way Tiddly Research modifies some core javascript 
>tiddlers
>- Added horizontal view (Krystal)
>- Improved search bar
>- Improved preview popup
>- Added relinking for the reference field in rememberq and remembercz
>- Added @ibox  macro for better image 
>embedding
>- Removed unnecessary code from 
>$:/plugins/kebi/tiddlyresearch-references
>- Added toggle-sidebar shortcut
>- Added "Open" menu in the sidebar
>- Removed node max-width (Streams)
>- New $:/favicon.ico
>- CSS enhancements
>
>

-- 
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/5e94835c-5620-416f-941f-3026a68de750o%40googlegroups.com.


[tw5] Re: Tiddlyshow v3.0 beta 2: Major improvement

2020-09-10 Thread TW Tones
Ste,

I did ping Mohammad and he is fine, he hopes to return in the near future. 

Tony

On Friday, 11 September 2020 04:29:18 UTC+10, Ste wrote:
>
> For a moment I thought Mohammed was back! (any one heard from him?) 
> But a cool looking slide show thing! 

-- 
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/00132529-7b23-471d-aab5-88c6254312f2o%40googlegroups.com.


[tw5] Re: How to add fonts to TW running on NodeJS

2020-09-10 Thread TW Tones
Talah,

Another way is to point to those fonts on the internet if they are hosted, 
usually on a content delivery network. Look for the way to include fonts 
using a link in a html page, and do the same in tiddlywiki using a raw 
tiddler tag.

Regards
Tony

On Friday, 11 September 2020 03:43:39 UTC+10, talha131 wrote:
>
> I am running TW from NodeJS. I need to add some fonts that I use in some 
> CSS classes only.
>
> Currently, TW picks the fonts from the system, which is fine for now. My 
> concern is that when I export the tiddlers to an HTML file using the save 
> command or using the export tiddler menu item, then the font will not be 
> part of it. The target system will most likely not have the required fonts.
>
> How do I add fonts such that they are embedded in export? Should I create 
> a `fonts` folder inside my tiddlers' folder?
>
> What other way is there to add fonts to TW? 
>
> I have found this tutorial, but it is only for hosted fonts; I want to use 
> fonts on HDD.
>
>
> https://ibnishak.github.io/Tesseract/UI/index.html#How%20to%20use%20google%20fonts%20in%20TW5
>  
>
>
>
>
>

-- 
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/917f63ff-4bc8-4afe-98c2-a7a03d1a5e46o%40googlegroups.com.


[tw5] Announcing A Static Site Generator

2020-09-10 Thread Donald Coates

I finally "finished" something I have wanted to do for a very long time - 
made a static site generator using tiddlywiki to generate my blog.

All of this is obviously still very much a work in progress but I think it 
is done enough to be useful to myself and others.

The code is on 
[github](https://github.com/digitalap3/tiddlywikistaticsitegen). There is a 
static file tiddlywiki there as well so you can quickly download that and 
see what it looks like without running any code.

Basically it makes use of TW's amazing templating powers so there is room 
for changing the structure whenever you desire. I run everything through 
Docker but obviously you can take the code and do what you like.

The basic workflow is:

# create a post with the tag 'draft'. This will be the displayed title of 
the post
# open the `Create New Post` tiddler.
# follow the instructions. The first field is the uri of the post. It is 
recommended to use all lower case and hyphens. NO SPACES. I would avoid 
special characters but apostrophes seemed to work fine. This will be the 
title of the final draft that is to be rendered.
# run build script. this moves images out of the tiddler directory and 
renders all files with appropriate fields and tags.
# run webserver and check changes in new tab
# repeat until you have desired outcomes.
# copy files to root directory of production site

There are slightly more detailed instructions in the readme of the github 
repo. I will also write more detailed blog posts.

The semi finished product is at https://blog.digitalap3.com

I am sure there is lots that I have overlooked and far easier ways to do a 
lot of the things done in the tiddlers so I appreciate any suggestions.

I really am enjoying this little project. Tiddlywiki is just mind-blowing.

-- 
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/d162131b-57cf-410e-8cb4-10e930f229f7o%40googlegroups.com.


Re: [tw5] Re: How to use TiddlyWiki API in BoxLinux version

2020-09-10 Thread Rob Hoelz
Hi,

What do your HTTP requests look like?  I believe you need to set 
"X-Requested-With: TiddlyWiki" for the server to accept writes.

-Rob

On Thursday, September 10, 2020 at 2:39:13 PM UTC-5 skaczm...@gmail.com 
wrote:

> Hi,
>
> To make things clear - I don't care if your API matches core API. I just 
> need way to retrieve tiddlers and to save new ones via external application 
> that I am about to write. 
>
> Could you please, explain how to do these two basic operations? I know 
> nothing about java script, so I'm not able to figure out anything from 
> provided routes.
>
> Best regards!
>
> pt., 4 wrz 2020 o 09:21 Jed Carty  napisał(a):
>
>> I haven't implemented the core http api in Bob. I made an http api in Bob 
>> but I never updated them to match the core server when the core got the 
>> http api.
>>
>> I think that you are the first person I have seen even mentioned using 
>> the http api with Bob so I haven't put much thought into it past what I 
>> need. I don't think I even wrote documentation about it because there was 
>> no interest.
>>
>> I will add the documentation to my list of things to add, for the moment 
>> there is only the spectacularly unhelpful option of looking at the code for 
>> the server routes 
>> https://github.com/OokTech/TW5-Bob/tree/master/ServerRoutes
>>
>> My plan is to change to use routes that are more like the core server 
>> routes, but so far it has been a very low priority for me.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddlywiki+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/ea91d7af-06c1-4d19-b8ea-34a044218b04o%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/2380b17a-e4c4-4c33-99c2-a8ba20289840n%40googlegroups.com.


Re: [tw5] Re: How to use TiddlyWiki API in BoxLinux version

2020-09-10 Thread s.kaczmarek
Hi,

To make things clear - I don't care if your API matches core API. I just
need way to retrieve tiddlers and to save new ones via external application
that I am about to write.

Could you please, explain how to do these two basic operations? I know
nothing about java script, so I'm not able to figure out anything from
provided routes.

Best regards!

pt., 4 wrz 2020 o 09:21 Jed Carty  napisał(a):

> I haven't implemented the core http api in Bob. I made an http api in Bob
> but I never updated them to match the core server when the core got the
> http api.
>
> I think that you are the first person I have seen even mentioned using the
> http api with Bob so I haven't put much thought into it past what I need. I
> don't think I even wrote documentation about it because there was no
> interest.
>
> I will add the documentation to my list of things to add, for the moment
> there is only the spectacularly unhelpful option of looking at the code for
> the server routes
> https://github.com/OokTech/TW5-Bob/tree/master/ServerRoutes
>
> My plan is to change to use routes that are more like the core server
> routes, but so far it has been a very low priority for me.
>
> --
> 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/ea91d7af-06c1-4d19-b8ea-34a044218b04o%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/CANmWv%2BxcF-ahYuNzG26QAxvxBqJ7s7Tvto005Cn-Y%2BQ9ySVNVQ%40mail.gmail.com.


[tw5] Re: Tiddlyshow v3.0 beta 2: Major improvement

2020-09-10 Thread Ste
For a moment I thought Mohammed was back! (any one heard from him?) 
But a cool looking slide show thing! 

-- 
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/e1c11834-bfa6-482d-8516-bcd14752d8ddo%40googlegroups.com.


[tw5] Re: [Tiddly Research] Public release

2020-09-10 Thread Odin Jorna
Your theme is amazing! Which plugins/tiddlers do I need to import to my own 
wiki to make use of the theme?

Op maandag 7 september 2020 15:14:02 UTC+2 schreef kebi:
>
>
> *New update v1.1! 
> https://github.com/kebifurai/TiddlyResearch/releases/tag/v1.1 
> *
>
> *For everyone using Tiddly Research, it is recommended that you update to 
> this new version.*
>
> How to update from v1.0:
>
>- Open your current wiki
>- Click on the "Export all" button situated on the topbar and export 
>all your tiddlers
>- Download the new version and open it
>- Import all your tiddlers by drag and dropping the file generated 
>from step n.2
>
> Changelog:
>
>- Changed the way Tiddly Research modifies some core javascript 
>tiddlers
>- Added horizontal view (Krystal)
>- Improved search bar
>- Improved preview popup
>- Added relinking for the reference field in rememberq and remembercz
>- Added @ibox  macro for better image 
>embedding
>- Removed unnecessary code from 
>$:/plugins/kebi/tiddlyresearch-references
>- Added toggle-sidebar shortcut
>- Added "Open" menu in the sidebar
>- Removed node max-width (Streams)
>- New $:/favicon.ico
>- CSS enhancements
>
>

-- 
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/25dd87ac-ef02-4572-b5df-534486fc2ef1o%40googlegroups.com.


[tw5] Re: How to create hard link using macro?

2020-09-10 Thread talha131


I see. I posted a similar question few days ago 
. The 
conclusion was to look up the code of ReLink plugin. I ended up using tag 
hierarchy instead of creating backlinks from macro.
​

-- 
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/7aec-a4d0-415e-9aed-d3bc8ed3f458o%40googlegroups.com.


[tw5] Re: How to create hard link using macro?

2020-09-10 Thread Tejasvi S Tomar
@talha, Thanks for the response. But I think I could've phrased my query 
better.

Context:

   - Only hard links can be used to generate Backlinks. 
   https://tiddlywiki.com/static/backlinks%2520Operator.html
  -  I am able to view the backlinks for the hard links.
  - Links generated by macros are soft links. 
   https://tiddlywiki.com/static/Hard%2520and%2520Soft%2520Links.html

End goal:

   - Ability to generate backlinks for transclusion.
  - Ways to achieve:
 - Create an empty text link ( using [[|Tiddler]]) every time while 
 transcluding.
- Repetitive, undesirable.
 - Create a macro that generates the link and transcludes the 
 tiddler.
- \define link_and_transclue(tiddler) [[|$tiddler$]] {{tiddler}}
- Not possible because the generated link is a soft link; 
backlinks not detected.
 - Modify the backlink generation mechanism to consider the 
 transclusion syntax.
- I don't have sufficient knowledge. Seems complicated on the 
first look of backlinks-indexer.js.
 - Create a new transclusion-backlink mechanism analogous to the 
 existing backlink mechanism
- As mentioned earlier, the lack of expertise.
 - Use freelinks
- Not preferred due to ambiguity with "mentions".
 
Example:

tiddlerA = Some text
tiddlerB = {{tiddlerA}}

Goal: List tiddlerB among the tiddlerA's backlinks

> ​
>

-- 
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/ab25b045-6a29-4ab8-9449-5dd0ac4cac04o%40googlegroups.com.


[tw5] How to add fonts to TW running on NodeJS

2020-09-10 Thread talha131
I am running TW from NodeJS. I need to add some fonts that I use in some 
CSS classes only.

Currently, TW picks the fonts from the system, which is fine for now. My 
concern is that when I export the tiddlers to an HTML file using the save 
command or using the export tiddler menu item, then the font will not be 
part of it. The target system will most likely not have the required fonts.

How do I add fonts such that they are embedded in export? Should I create a 
`fonts` folder inside my tiddlers' folder?

What other way is there to add fonts to TW? 

I have found this tutorial, but it is only for hosted fonts; I want to use 
fonts on HDD.

https://ibnishak.github.io/Tesseract/UI/index.html#How%20to%20use%20google%20fonts%20in%20TW5
 





-- 
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/bd9b67b3-4b43-4d5d-bbf4-3a5578fdc995o%40googlegroups.com.


[tw5] Re: How to create hard link using macro?

2020-09-10 Thread talha131


Another approach

>

​

-- 
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/0a60f551-050a-4f4d-95cc-aec391276506o%40googlegroups.com.


[tw5] Re: How to create hard link using macro?

2020-09-10 Thread talha131


I think your macro needs following snippet of code to show the backlinks 
correctly

<$list filter="[backlinks[]]"><$view field="title"/> 

​

-- 
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/40152250-72d5-45b5-a670-e48ee4947b72o%40googlegroups.com.


[tw5] Re: @@ sign from a title is not displayed when transcluding the title field

2020-09-10 Thread talha131
PS: I found another post from you on the same topic

https://groups.google.com/d/msg/TiddlyWiki/WWKlkMR-zfs/7nl_ARXqBwAJ

-- 
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/106af1c0-6a32-4852-a715-e807cd53b0d9o%40googlegroups.com.


[tw5] Re: How To: altering TiddlyWiki appearance based on context (URL parameters at StartUp, and via radio buttons after StartUp)

2020-09-10 Thread Eric Shulman
Addendum #2

The link macro I previously wrote as part of *Alternate TiddlyWiki Purposes* 
can be made more adaptable, by using references to $:/info/url/... shadow 
tiddlers.

Instead of "hard-coding" the entire URL (except for the ending parameter 
value):
\define link(suffix)
https://intertwingularityslicendice.neocities.org/CJ_ProductReviews.html?context=$suffix$";
 
style="text-decoration: none;">🔖
\end
you can write:
\define link(suffix)
🔖
\end
In this way, if you re-host the file using a different domain or pathname, 
it will automatically reflect that change.

-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/b449eef7-84f8-46ae-9c6d-0d65ecfca96co%40googlegroups.com.


[tw5] Re: Check if field is empty (or not exist), then use value from other field

2020-09-10 Thread Darek Bobak
Thank you all for the answers. 

best
Darek

czwartek, 10 września 2020 o 11:55:57 UTC+2 talha131 napisał(a):

> Thank you Eric for the detailed response.
>
> I also found this explanation, you had contributed in the past.
>
> https://kookma.github.io/TW-Scripts/#Shorthand%20Syntax%20Summary
>
> On Thursday, September 10, 2020 at 2:17:07 PM UTC+5 Eric Shulman wrote:
>
>> On Thursday, September 10, 2020 at 1:30:39 AM UTC-7, talha131 wrote:
>>>
>>> Eric, why do we need three braces? {{{ What do they do in this example?
>>>
>>
>> Double curly braces {{...}} is used for "transclusion" where you specify 
>> a tiddler title/field and/or a tiddler template.
>>
>> Tripled curly braces {{{  }}} is used  for "filtered transclusion" where 
>> you specify a filter that computes one or more tiddler titles.
>>
>> Either syntax can be used as the parameter value for a widget such as 
>> <$vars>
>> Doubled braces fetch a stored value from a field.
>> Tripled braces compute a value by evaluating a filter.
>>
>> {{bar}}
>> gets the value from the "text" field of tiddler "bar"
>> {{bar!!mumble}} or {{{ [{bar!!mumble}] }}} or {{{ [[bar]get[mumble]] }}}
>> get the value from the "mumble" field of tiddler "bar"
>> {{!!mumble}} or {{{ [{!!mumble}] }}} or {{{ [get[mumble]] }}}
>> gets the value from the "mumble" field of the current tiddler
>>
>> The big advantage of the tripled braces ("filtered transclusion") is that 
>> you can apply more filter syntax that just "get", such as "else".  Thus:
>> {{{ [get[mumble]else[gronk]] }}}
>> gets the value from the "mumble" field of the current tiddler... but if 
>> that field doesn't exists or has no value, it uses the literal text "gronk" 
>> instead.
>> {{{ [get[mumble]else{!!gronk}] }}}
>> gets the value from the "mumble" field of the current tiddler... but if 
>> that field doesn't exists or has no value, it uses the value from the 
>> "gronk" field instead.
>>
>> You can also use other filter syntax, to create some pretty complex 
>> logic.  Thus:
>> {{{ [get[mumble]removesuffix[arglebargle]else{!!mumble}] }}}
>> gets the value from the "mumble" field of the current tiddler AND removes 
>> the text "arglebargle" from the end of that value... but if that value 
>> doesn't end with "arglebargle", it just uses the value of "mumble", as-is.
>> {{{ [get[mumble]else[0]add[1]min[20]] }}}
>> gets the value from the "mumble" field of the current tiddler, then adds 
>> 1 to that value, but never goes over 20.  Note: if "mumble" doesn't exist 
>> or is blank, a default value of "0" is used, and then 1 is added.
>>
>> So... using that last example, you can create a button that counts from 1 
>> to 20, incrementing each time the button is pressed:
>> <$button> count
>><$action-setfield mumble={{{ [get[mumble]else[0]add[1]min[100]] }}} />
>> 
>> mumble={{!!mumble}}
>>
>> 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/4437c8ed-7002-445f-aa7f-8e2526848267n%40googlegroups.com.


[tw5] Re: @@ sign from a title is not displayed when transcluding the title field

2020-09-10 Thread talha131


Thank you Tones. I settled on using a single @. Because all other options 
require tweaking the templates.

Your bit about using @@ in a SVG tiddler is awesome.
​

-- 
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/f52c5236-0a82-42d3-9be6-ce86d6ffddbfo%40googlegroups.com.


[tw5] FileSystemPaths - can you use multiple tags in same tiddler to make a file directory?

2020-09-10 Thread Pieter-Michiel Geuze

Friends,

I am using the FileSystemPaths as listed in the " Customising Tiddler File 
Naming" instructions.

Is it possible to make a command that will use all of the tags in a tiddler 
to create the FileSystemPaths?

I see that I can use the split and join instructions I just have not been 
able to figure out how to read all the tags of the 'current tiddler' so 
that FileSystemPaths would recognize something.

Thank you for any direction that you can provide.

-- 
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/09c4b43f-c0c7-4946-8641-712ace622e4an%40googlegroups.com.


[tw5] Re: How To: altering TiddlyWiki appearance based on context (URL parameters at StartUp, and via radio buttons after StartUp)

2020-09-10 Thread Charlie Veniot
Holy smokes, Eric, that is a wonderful and meaty buffet of informative 
goodness.  

*Squirrel* !!!  :  This is awesome learnin' at TiddlyWiki University 
("TiddlyWiki U"?  "TWU?")
*Car* !!! :  Has anybody ever thought of some TiddlyWiki merchandising to 
support and promote the project?
*(If I were entrepreneurial at all, I'd be tearing into that to make it 
happen.  Beyond just the idea, I'm otherwise clueless...)*

Thanks !

I've just woken up, and still uncaffeinated.  Once I *perk* up (pun!), I'm 
going over all of this again and getting to work.

On Thursday, September 10, 2020 at 2:44:05 AM UTC-3 Eric Shulman wrote:

> On Wednesday, September 9, 2020 at 2:58:14 PM UTC-7, Charlie Veniot wrote:
>>
>> I'm still in the midst of setting up my "Products Review" TiddlyWiki to 
>> also behave as a "Urban Off-Gridding for Laypersons" TiddlyWiki.
>> Both contexts have much in common (from structural elements to content), 
>> and I really did not want to create two distinct TiddlyWikis with a ton of 
>> duplication between them.
>> Hence the desire to have one TiddlyWiki with two "contextual" appearances.
>> Before getting into show and tell images (further below), here are the 
>> two links that open the same TiddlyWiki file but trigger different 
>> "contextual" appearances upon startup:
>>
>>- 
>>https://intertwingularityslicendice.neocities.org/CJ_ProductReviews.html
>>*?context=ProductReviews* 
>>
>> 
>>- 
>>https://intertwingularityslicendice.neocities.org/CJ_ProductReviews.html
>>*?context=OffGridding* 
>>
>> 
>>
>> For the moment, only Title and Subtitle change based on context.  Next: I 
>> will start modifying other content to change based on context.
>>
>
> First... let me congratulate you on a good job of combining many different 
> technical bits and pieces!  It shows that you've really dug into the meat 
> of TiddlyWiki!  Having said that, I think I can suggest ways to use 
> existing TiddlyWiki features to reduce some of the complexities while still 
> achieving (nearly) the same results.
>
> Let's start with these two pieces:
>
>>
>>- *GetStartupContext.js*
>>- *Set Startup Context*
>>
>> The result of these two pieces is to, on startup, get the value of the 
> "?context=..." parameter from the URL and save it in a tiddler for later 
> use.  However, you are probably not aware that the TWCore already does this 
> work for you by automatically creating a set of shadow tiddlers that breaks 
> the URL into its component parts:
>
> $:/info/url/full
> $:/info/url/host
> $:/info/url/hostname
> $:/info/url/origin
> $:/info/url/pathname
> $:/info/url/port
> $:/info/url/protocol
> $:/info/url/search
>
> For your purposes, you would be most interested in the last one, 
> $:/info/url/search.  Given the URLs you show above, this tiddler would 
> contain text
> ?context=ProductReviews
> or
> ?context=OffGridding
> Note that the tiddler includes the URL parameter itself, "?context=", not 
> just the value.  This is different from your results, but can be easily 
> handled later on.
>
>>
>>- *Alternate TiddlyWiki Purposes*
>>
>> Instead of using a custom field, "purpose", you can just set the value in 
> $:/info/url/search, like this:
> \define link(suffix)
> https://intertwingularityslicendice.neocities.org/CJ_ProductReviews.html?context=$suffix$";
>  
> style="text-decoration: none;">🔖
> \end
>
>  style="font-size:14px;line-height:1.7;margin-left:30px;color:dimgray;">
> <$radio tiddler="$:/info/url/search" value="?context=ProductReviews"> 
> {{TiddlyWiki Title 1}}  <>
> 
> <$radio tiddler="$:/info/url/search" value="?context=OffGridding"> 
> {{TiddlyWiki Title 2}}  <>
> 
> Notes:
> * I retain the existing data value format, including the "?context=" 
> prefix.  This keeps the content of $:/info/url/search consistent with the 
> value that was automatically set.
> * I've turned the inline links (for bookmarking) into a macro definition 
> using a parameter for the desired suffix, so that it only need to be 
> specified once.
>
> By tagging the above tiddler with *$:/tags/SideBarSegment* and adding a 
> field named *list-before*, with a blank value, the radio buttons will 
> appear above the title in the sidebar.  This eliminates much of the need 
> for the "Fancy TiddlyWiki Title" tiddler.  The rest of that tiddler is 
> selecting which title to display, and applying styles to the TiddlyWiki 
> title.  This can be achieved directly in the $:/SiteTitle tiddler, like 
> this:
> 
> Charlie's
> <$reveal state="$:/info/url/search" type="match" 
> text="?context=ProductReviews">
>{{TiddlyWiki Title 1}}
> 
> <$reveal state="$:/info/url/search" type="match" 
> text="?context=OffGridding">
>{{TiddlyWiki Title 2}}
> 
> 
>
> Similarly, your conditional subtitle can be achieved dir

[tw5] Re: Does TiddlyWiki optimize the invisible tiddlers in Zoomin story view?

2020-09-10 Thread Eric Shulman
On Thursday, September 10, 2020 at 4:44:37 AM UTC-7, Tejasvi S Tomar wrote:
>
> Are the invisible but open tiddlers still refreshed in Zoomin mode? I 
> often work with the sidebar hidden, so do I need to periodically clean up 
> the open stack to conserve resources (=battery life)?
>

All tiddlers that are currently open in the Story River are refreshed, even 
if they are not visible due to use of the Zoomin mode.

However, unless those tiddlers are doing an extraordinary amount of work 
each time they are refreshed, I don't think they have much impact on 
battery life.

-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/6e2ad4ca-411d-4635-89a8-fc8cdfcd9cc7o%40googlegroups.com.


[tw5] Re: New Google Group: View Starred Topics?

2020-09-10 Thread Eric Shulman
On Thursday, September 10, 2020 at 4:39:08 AM UTC-7, amreus wrote:
>
> I don't see how I can view the topics I have starred. Can someone point me 
> in the right direction?  Am I going to have to bookmark each one in my 
> browser instead?
>

I assume you are using the new GoogleGroups interface.  Unfortunately, 
while you can still "star" a topic, there is no "Starred" choice in the 
left side menu.
Currently, to view only the starred topics, you need to use the old 
GoogleGroups interface. 

-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/fc855742-78e2-45fa-b50a-6aad1590c8c9o%40googlegroups.com.


[tw5] Re: Named filters?

2020-09-10 Thread Saq Imtiaz
You can save a filter in a tiddler and then re-use it with the subfilter 
operator.

For instance if the filter is saved in tiddler MyFilter:

[subfilter{MyFilter}]

On Thursday, September 10, 2020 at 1:35:44 PM UTC+2, amreus wrote:
>
>
> I am experimenting with task manager as if the world needs another...  
> http://amreus.tiddlyspot.com/
>
> The different views require many similar but different filters, but most 
> of them have a common part that might be named "active tasks" and which may 
> look like the following:
>
> tag[Task]!tag[Done]!tag[Trash]
>
> I want to create a few "named" filters that I can use so I can use them by 
> name and only need to edit them in one place.
>
> Does anything exist?  I assume this can be done using global macros but I 
> wanted to ask about suggestions as I get started.  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/d7214fc0-5178-4479-997a-15c5a598e4abo%40googlegroups.com.


[tw5] Re: Filter simplification?

2020-09-10 Thread amreus
Following up with a relevant link.

https://ooktech.com/jed/ExampleWikis/FilterLogicExamples/



On Wednesday, August 26, 2020 at 8:22:48 PM UTC-4 TW Tones wrote:

> Amreus,
>
> Filters are a little different to standard boolean logic since they start 
> from a premise of generating a list of tiddler titles
>
> The following is a quick and untested response, please experiment.
>
> In your example
> [is[current]has[birt_date]] [is[current]has[birt_plac]]
> The result will be two values (title of the current tiddler) if both 
> fields have a value, but since the value is the same, the current tiddler 
> title it will be de-duplicated to one tiddler title.
>
> Perhaps one could write this as
> [(A!!B) or (A!!C)] where A is just a qualifier as to which B and which C 
> to use. The result returned will be blank for false or A for true.
>
> There are no parenthesis for order since the order is left to right. 
> Filters operate on the output of the previous step or each run is an AND.
> [[title1]] [[Title2]] represents both two titles and two runs like 
> [prefix[title1]] [prefix[Title2]] and the results of both runs are joined 
> and de-duplicated
>
> In the Doco Maths https://tiddlywiki.com/#Mathematics%20Operators it 
> explains how to stop de-duplication for undertaking maths.
>
> Back to your original question
> [{!!birt_date}] [{!!birt_plac}] will list the content of the fields if 
> they have a value, A is implicit in the "!!fieldname"
>
> You can also get the value of a field, if no value it will not return a 
> value 
> [is[current]get[birt_date]] [is[current]get[birt_plac]]
>
> but I'm not sure how to write [A and (B or C)] in filter.
>
> I think you already have? '[is[current]has[birt_date]] 
> [is[current]has[birt_plac]]'
> However The Test for A is not really a test, just a reference to a 
> particular tiddler
>
> Personally I suggest learning the filter syntax from the angle of its 
> original purpose, titles, since tiddlers are the atomic unit in tiddlywiki, 
> you will then start to discover ways to emulate other logical operations.
>
> Some quick examples
> [is[current]has[birt_date]has[birt_plac]] title returned only if they 
> both have a value
>
> [is[current]has[birt_date]] +[is[current]has[birt_plac]] title returned 
> only if first then second is true, the second is free to refer to anything 
> so you needs to specify current if thats what you want
>
> Rather than return the title you can now use then and else to set the 
> output
>
> [is[current]has[birt_date]then[yes]else[no]]  
>
> Finally;
> Remember with the list widget the output of a filter, if true or a list is 
> generated to apply it for each title to the contents of the list.
>
> Sometimes if the list is used to display content only we may use 
> +[limit[1]] so if anything satisfies the filter it will display the content 
> once.
>
> Regards
> Tony
>
>
> On Thursday, 27 August 2020 07:44:12 UTC+10, amreus wrote:
>>
>> Good evening. 
>>
>> Just a question of curiosity.  Can this filter be simplified? For 
>> example, can all[current] be "factored out" so it does not need to 
>> appear twice?  
>>
>> [is[current]has[birt_date]] [is[current]has[birt_plac]]
>>
>> In Boolean, I think this would be [(A and B) or (A and C)] == [A and (B 
>> or C)], but I'm not sure how to write [A and (B or C)] in filter. 
>>
>

-- 
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/7b8c6e78-9701-49fc-a3c1-18d556a55011n%40googlegroups.com.


[tw5] Does TiddlyWiki optimize the invisible tiddlers in Zoomin story view?

2020-09-10 Thread Tejasvi S Tomar
Are the invisible but open tiddlers still refreshed in Zoomin mode? I often 
work with the sidebar hidden, so do I need to periodically clean up the 
open stack to conserve resources (=battery life)?

-- 
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/08865d9f-076c-4766-882d-f502226a3402o%40googlegroups.com.


[tw5] New Google Group: View Starred Topics?

2020-09-10 Thread amreus
Good morning,

I don't see how I can view the topics I have starred. Can someone point me 
in the right direction?  Am I going to have to bookmark each one in my 
browser instead?


-- 
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/c3543715-843b-44a0-b35a-d317ca1b4223n%40googlegroups.com.


[tw5] Named filters?

2020-09-10 Thread amreus

I am experimenting with task manager as if the world needs another...  
http://amreus.tiddlyspot.com/

The different views require many similar but different filters, but most of 
them have a common part that might be named "active tasks" and which may 
look like the following:

tag[Task]!tag[Done]!tag[Trash]

I want to create a few "named" filters that I can use so I can use them by 
name and only need to edit them in one place.

Does anything exist?  I assume this can be done using global macros but I 
wanted to ask about suggestions as I get started.  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/c5501cec-8ef0-4866-94f6-bc4c293b9383n%40googlegroups.com.


[tw5] How to create hard link using macro?

2020-09-10 Thread Tejasvi S Tomar
My goal is to add backlinks for transclusions. I have created a macro \define 
link_and_transclude(tiddler) [[|$tiddler$]]{{$tiddler$}}. It, however, 
doesn't trigger backlink generation, which is consistent with the docs 
 for 
hard and soft links.

Setup:
Node.js, v5.1.22
Distro: Drift
Public sample: https://mefyi.com/neuron

-- 
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/73d5c989-4cad-4f09-8e18-3445e03189cdo%40googlegroups.com.


[tw5] Re: Check if field is empty (or not exist), then use value from other field

2020-09-10 Thread talha131
Thank you Eric for the detailed response.

I also found this explanation, you had contributed in the past.

https://kookma.github.io/TW-Scripts/#Shorthand%20Syntax%20Summary

On Thursday, September 10, 2020 at 2:17:07 PM UTC+5 Eric Shulman wrote:

> On Thursday, September 10, 2020 at 1:30:39 AM UTC-7, talha131 wrote:
>>
>> Eric, why do we need three braces? {{{ What do they do in this example?
>>
>
> Double curly braces {{...}} is used for "transclusion" where you specify a 
> tiddler title/field and/or a tiddler template.
>
> Tripled curly braces {{{  }}} is used  for "filtered transclusion" where 
> you specify a filter that computes one or more tiddler titles.
>
> Either syntax can be used as the parameter value for a widget such as 
> <$vars>
> Doubled braces fetch a stored value from a field.
> Tripled braces compute a value by evaluating a filter.
>
> {{bar}}
> gets the value from the "text" field of tiddler "bar"
> {{bar!!mumble}} or {{{ [{bar!!mumble}] }}} or {{{ [[bar]get[mumble]] }}}
> get the value from the "mumble" field of tiddler "bar"
> {{!!mumble}} or {{{ [{!!mumble}] }}} or {{{ [get[mumble]] }}}
> gets the value from the "mumble" field of the current tiddler
>
> The big advantage of the tripled braces ("filtered transclusion") is that 
> you can apply more filter syntax that just "get", such as "else".  Thus:
> {{{ [get[mumble]else[gronk]] }}}
> gets the value from the "mumble" field of the current tiddler... but if 
> that field doesn't exists or has no value, it uses the literal text "gronk" 
> instead.
> {{{ [get[mumble]else{!!gronk}] }}}
> gets the value from the "mumble" field of the current tiddler... but if 
> that field doesn't exists or has no value, it uses the value from the 
> "gronk" field instead.
>
> You can also use other filter syntax, to create some pretty complex 
> logic.  Thus:
> {{{ [get[mumble]removesuffix[arglebargle]else{!!mumble}] }}}
> gets the value from the "mumble" field of the current tiddler AND removes 
> the text "arglebargle" from the end of that value... but if that value 
> doesn't end with "arglebargle", it just uses the value of "mumble", as-is.
> {{{ [get[mumble]else[0]add[1]min[20]] }}}
> gets the value from the "mumble" field of the current tiddler, then adds 1 
> to that value, but never goes over 20.  Note: if "mumble" doesn't exist or 
> is blank, a default value of "0" is used, and then 1 is added.
>
> So... using that last example, you can create a button that counts from 1 
> to 20, incrementing each time the button is pressed:
> <$button> count
><$action-setfield mumble={{{ [get[mumble]else[0]add[1]min[100]] }}} />
> 
> mumble={{!!mumble}}
>
> 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/ba5f39d1-1a01-4d32-a0b5-a2ac45cb0cd9n%40googlegroups.com.


[tw5] Re: [Plugin] TWCrossLinks

2020-09-10 Thread Tejasvi S Tomar
Is it possible to treat transclusions as backlinks, or perhaps a separate 
tab? Currently, they show up as freelinks.

On Wednesday, August 5, 2020 at 7:10:24 AM UTC+5:30 TW Tones wrote:

> Kebi
>
> I expect we should have tiddlywiki honouring Asian characters in al their 
> forms. I do not know enough to make this happen. Perhaps raise it in the 
> dev forum.
>
> But when it comes to other symbols they are not encouraged see 
> https://tiddlywiki.com/#Tiddler%20Title%20Policy
>
> However tiddlywiki is comfortable with uni-code characters so there may be 
> sufficient symbols that are considered simply text. Perhaps even 
> alternatives to the ones in your example that otherwise have special 
> meanings.
>
> 😀 
>
>
>- See https://www.w3schools.com/html/html_emojis.asp
>- Or more fully https://www.w3schools.com/charsets/ (not in most cases 
>you can copy) the character and do not need html entities etc...
>- Note the "special" status of the characters ! $ + - ( ) @ < > , . 
>within the ASCII definition, and Consider [] an {} in tiddlywiki
>- However when we should avoid these there are still plenty of other 
>characters available.
>
> Regards
> Tony
>
>
> On Wednesday, August 5, 2020 at 11:05:07 AM UTC+10, kebi wrote:
>>
>> Also not working with special characters
>>
>>

-- 
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/de383b62-fa06-4c35-b8d8-52fbc0fd9409n%40googlegroups.com.


[tw5] Re: Check if field is empty (or not exist), then use value from other field

2020-09-10 Thread Eric Shulman
On Thursday, September 10, 2020 at 1:30:39 AM UTC-7, talha131 wrote:
>
> Eric, why do we need three braces? {{{ What do they do in this example?
>

Double curly braces {{...}} is used for "transclusion" where you specify a 
tiddler title/field and/or a tiddler template.

Tripled curly braces {{{  }}} is used  for "filtered transclusion" where 
you specify a filter that computes one or more tiddler titles.

Either syntax can be used as the parameter value for a widget such as 
<$vars>
Doubled braces fetch a stored value from a field.
Tripled braces compute a value by evaluating a filter.

{{bar}}
gets the value from the "text" field of tiddler "bar"
{{bar!!mumble}} or {{{ [{bar!!mumble}] }}} or {{{ [[bar]get[mumble]] }}}
get the value from the "mumble" field of tiddler "bar"
{{!!mumble}} or {{{ [{!!mumble}] }}} or {{{ [get[mumble]] }}}
gets the value from the "mumble" field of the current tiddler

The big advantage of the tripled braces ("filtered transclusion") is that 
you can apply more filter syntax that just "get", such as "else".  Thus:
{{{ [get[mumble]else[gronk]] }}}
gets the value from the "mumble" field of the current tiddler... but if 
that field doesn't exists or has no value, it uses the literal text "gronk" 
instead.
{{{ [get[mumble]else{!!gronk}] }}}
gets the value from the "mumble" field of the current tiddler... but if 
that field doesn't exists or has no value, it uses the value from the 
"gronk" field instead.

You can also use other filter syntax, to create some pretty complex logic.  
Thus:
{{{ [get[mumble]removesuffix[arglebargle]else{!!mumble}] }}}
gets the value from the "mumble" field of the current tiddler AND removes 
the text "arglebargle" from the end of that value... but if that value 
doesn't end with "arglebargle", it just uses the value of "mumble", as-is.
{{{ [get[mumble]else[0]add[1]min[20]] }}}
gets the value from the "mumble" field of the current tiddler, then adds 1 
to that value, but never goes over 20.  Note: if "mumble" doesn't exist or 
is blank, a default value of "0" is used, and then 1 is added.

So... using that last example, you can create a button that counts from 1 
to 20, incrementing each time the button is pressed:
<$button> count
   <$action-setfield mumble={{{ [get[mumble]else[0]add[1]min[100]] }}} />

mumble={{!!mumble}}

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/e6ca99a8-ac8a-487c-abf9-b28c8a591ac1o%40googlegroups.com.


Re: [tw5] Re: A small Plugin for a dramatic login-screen.

2020-09-10 Thread HC Haase
Hi Jan

I have been working on a mod of your plugin and it works* but only in your 
login curtain wiki*. when I export the plugin to an empty wiki, my mod 
don't work any more. I suspect, that there are some tiddler not mentioned 
in the mod that do some stuff. I have looked through the code, but I can't 
figure it out. If you could have a look I would be very grateful.

what My mod do

I have tried to explain it in detail in the wiki.
The mod use the tiddler $:/Plugins/Screenwriting/WelcomeButton (modifed) to 
show a list of predefined users to pic from. there is a button to go to 
"guest" that gives the original login prompt, and button to go to the list 
of predefined user again. 

also adds some jazz for customisation and user management in settings.

link to my mod:
https://hchaase.github.io/tmp-logincurtain-mod/

onsdag den 1. april 2020 kl. 13.49.18 UTC+2 skrev HC Haase:

>
> Could you maybe make version where you could let the user change 
>> background and spalashscreen? That would be quite useful
>>
>> It is not so implement this because a splashcreen is involved, so we 
>> can't easily transclude the content from a tiddler use the normal 
>> stylsheet. 
>> Or is there a possibility to do this?
>>
>> I will make a small guide which  and classes to modify to get the 
>> result you want. For example, if you do not want the skeuomorph curtain, 
>> you can just remove the gradients from .left-panel and .right-panel and 
>> replace it by a normal bg-color.
>>
>> Greetings Jan
>>
>> Thank you Jan
> I appreciate you have made the small guide. I will have a look when I have 
> time, and try to make a "corporate" friendly version :)
>
>
> btw the site has a double icon and input field going on, I think it is 
> because the icon tiddler is stil open in draft mode
>
>
>
>
>
>
>
>
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/7d3980d6-7919-47f3-ac8c-c5ef246afd2d%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/7eed547e-4424-4c63-9f84-fb065a1121aan%40googlegroups.com.


[tw5] Re: Check if field is empty (or not exist), then use value from other field

2020-09-10 Thread talha131


Eric, why do we need three braces? {{{ What do they do in this example?

This question is related to your answer here 
.

Let me know if I understand correctly.

   1. [get[field-1]else{!!field-2}] gets the value. 
   2. {{ }} transcludes the value? 
   3. The outer {}, I am not sure what it is for. I tried using quotes in 
   place of these outer braces, but the widget did not work. 

The reason I asked because, as you can see in the linked answer, I was 
using {{ when I should have used quotes. Some explanation on using { inside 
widgets and filters would be useful for newbies like me.
On Thursday, September 10, 2020 at 4:15:06 AM UTC+5 Eric Shulman wrote:

> On Wednesday, September 9, 2020 at 3:52:50 PM UTC-7, Darek Bobak wrote:
>>
>> Is it possible to use in macro value of field-1, and if the field does 
>> not exist, use field-2?
>>
>
> Like this:
> <$vars value={{{ [get[field-1]else{!!field-2}] }}}> 
>
> The "get" filter only returns a value if the field exists AND is not empty.
> If it doesn't have a value (or doesn't exist) then the "else" filter is 
> evaluated
> (in this case, it returns the value from field-2)
>
> -e
>
>
>
>
>  
>
>>
>> best,
>> Darek
>>
>

-- 
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/b5eaa4de-f7c9-421c-8deb-b23d2e52d2b3n%40googlegroups.com.


[tw5] Re: How To: altering TiddlyWiki appearance based on context (URL parameters at StartUp, and via radio buttons after StartUp)

2020-09-10 Thread Saq Imtiaz
Hi Charlie,

Thank you for sharing what you have been working on, and for what I found 
to be a very well written post. I honestly cannot say I would have written 
it much differently. Please do continue sharing and engaging with us just 
as you have been.

As always, there are many ways to achieve the same thing in TiddlyWiki. 
Eric has provided some great suggestions to streamline things that you may 
wish to consider in your own time.
Cheers,

Saq

On Thursday, September 10, 2020 at 5:46:13 AM UTC+2, Charlie Veniot wrote:
>
> G'day Tones,
>
> After over fifty years of me being "this way" (and getting 
> ever-increasingly touchy about my communication challenges and related 
> criticisms), it might be a less frustrating experience for all concerned to 
> have somebody else with the skill, when I've done something particularly 
> worthy, to just take what I've got and repackage it in a way that benefits 
> the community.
>
> I am honestly just trying to contribute the best I can.  I can't change 
> the way I'm wired, so I'm much happier to keep contributing what I can, 
> when I can and how I can *as I am*.  I'd much prefer do that even if it 
> means me being completely ignored (with the hope that, maybe, something 
> will be useful to somebody someday: that's enough to keep me happy.)
>
> However you are trying to help, you are hitting a really raw nerve.  As 
> politely as I can ask: could you please cut that out?
>
> That said, if anybody wants to stealthily (as in unbeknownst to me) steer 
> me towards more suitable posts via questions about content in any of my 
> posts, that might be an easier way to organically get me "there" without me 
> feeling hammered/humiliated yet again over an inability (if not a downright 
> disability) of mine.
>
>
> On Wednesday, September 9, 2020 at 11:06:54 PM UTC-3 TW Tones wrote:
>
>> Chrlie,
>>
>> Thanks for sharing this code pattern.
>>
>> I suggest loading it with more information on why this is a compelling 
>> "code pattern" and the demo links before you start documenting/posting how 
>> it is achieved. 
>>
>> This allows people to comment on your concept, because once the details 
>> are there they may feel they should not comment until they work through the 
>> whole solution or code pattern.
>>
>> I am hoping to help you get more engagement from the community on your 
>> interesting developments. You can of course use reply to post the code 
>> details right after the initial post.
>>
>> Just a suggestion, do as you please.
>>
>> Regards
>> Tones
>>
>>
>> On Thursday, 10 September 2020 07:58:14 UTC+10, Charlie Veniot wrote:
>>>
>>> G'day all,
>>>
>>> I'm still in the midst of setting up my "Products Review" TiddlyWiki to 
>>> also behave as a "Urban Off-Gridding for Laypersons" TiddlyWiki.
>>>
>>> Both contexts have much in common (from structural elements to content), 
>>> and I really did not want to create two distinct TiddlyWikis with a ton of 
>>> duplication between them.
>>>
>>> Hence the desire to have one TiddlyWiki with two "contextual" 
>>> appearances.
>>>
>>> Before getting into show and tell images (further below), here are the 
>>> two links that open the same TiddlyWiki file but trigger different 
>>> "contextual" appearances upon startup:
>>>
>>>- 
>>>https://intertwingularityslicendice.neocities.org/CJ_ProductReviews.html
>>>*?context=ProductReviews* 
>>>
>>> 
>>>- 
>>>https://intertwingularityslicendice.neocities.org/CJ_ProductReviews.html
>>>*?context=OffGridding* 
>>>
>>> 
>>>
>>> For the moment, only Title and Subtitle change based on context.  Next: 
>>> I will start modifying other content to change based on context.
>>>
>>> Cheers !
>>>
>>> Further below, you'll find images of the various tiddlers *(which I 
>>> plan to tidy-up later)* that make all of this work, including:
>>>
>>>- *GetStartupContext.js*
>>>   - (javascript macro to retrieve the startup context, i.e. 
>>>   "Products Review" or "...Off-Gridding...)
>>>   - Built with help from Stephan Hradek's Javascript Macros in 
>>>   WikiText 
>>>   
>>>  
>>>   and by grabbing bits of Javascript from various sites on the web
>>>  - *Although I am a software developer, I am neither proficient 
>>>  with nor a fan of javascript!*
>>>   - *Set Startup Context*
>>>   - (a "Startup Actions" tiddler)
>>>- *Alternate TiddlyWiki Purposes*
>>>   - (a tiddler to store the startup context upon startup, and to 
>>>   provide an interface, i.e. radio buttons, to dynamically switch 
>>> context at 
>>>   any time)
>>>- The *context-switching interface* (i.e. the radio buttons) as they 
>>>appear in the sidebar
>>>- *SideBar e

Re: [tw5] Re: Concatenation and arithmetic

2020-09-10 Thread TW Tones
Indexe based location to increment

Requires initialisation

<$button>
<$list filter="[{$:/config/incremental/indexes##A}is[blank]]" variable=nul>
  <$action-setfield $tiddler="$:/config/incremental/indexes" $index="A" 
$value="0"/>

<$action-setfield $tiddler="$:/config/incremental/indexes" $index="A" 
$value={{{ [[$:/config/incremental/indexes]getindex[A]add[1]] }}}/>
Add 1 to {{$:/config/incremental/indexes##A}}



$:/config/incremental/indexes {{$:/config/incremental/indexes##A}}


<$set name=currentN value={{{ [[$:/config/incremental/indexes]getindex[A]] 
}}} >


currentN=<>





Regards
Tony/TW Tones

On Thursday, 10 September 2020 17:13:12 UTC+10, TW Tones wrote:
>
> Bob, a little more
>
>- If you are doing this to develop a unique ID I have done 
>considerable work on what I call a tiddler Serial number, so do ask.
>- The new tiddler process done the correct way, will also increment a 
>tiddler title if the current title exists.
>- It is possible to do this in a field other than text.
>- If you want to increment a number from a filter you can use the 
>range operator as well.
>- You could save into and retrieve such a value from a data tiddler as 
>well.
>
> Regards
> Tony
>
>
> On Thursday, 10 September 2020 17:07:44 UTC+10, TW Tones wrote:
>>
>> Bob,
>>
>> I meant to say I live and work in Randwick.
>>
>> Place this in a new tiddler and click add 1
>>
>> <$button>
>> <$action-setfield $tiddler="$:/config/incremental" text={{{ 
>> [{$:/config/incremental}add[1]] }}}/>
>> Add 1
>> 
>>
>> $:/config/incremental {{$:/config/incremental}}
>>
>> <$set name=currentN value={{$:/config/incremental}}>
>>
>> currentN=<>
>>
>> 
>> This works, ever to initialise the first value
>>
>> The set demonstrates how to make it a variable.
>>
>> I advise on keeping code separate from values.
>>
>> On Thursday, 10 September 2020 16:54:06 UTC+10, Bob Jansen wrote:
>>>
>>> am I correct in my thinking that I can consider a tiddler like an object 
>>> in an OO database having data stored in fields and functions stored as 
>>> macros in the text field? 
>>>
>>> In my case, if I had a tiddler, say $:/tls/unique-id with a field 
>>> unique_id having a value of 1. I could then write a macro in that tiddler, 
>>> say increment_unique_id,  to increment the field by 1 and use a $list 
>>> filter to retrieve the new number from any other tiddler that needs the 
>>> unique value. To increment, all I need to do is call the macro that 
>>> increments the number in the tiddler $:/tls/unique-id.
>>>
>>> Am I on the wrong track here?
>>>
>>> bobj
>>>
>>> On Thursday, 10 September 2020 at 16:00:18 UTC+10 Bob Jansen wrote:
>>>
 Tones,

 Thanks for your reply. I am not averse to learning about filters in 
 fact as I go along I'm getting much better at them. 

 I was just frustrated at the poor documentation of how to do simple 
 concatenation or arithmetic. The examples assume a higher level of 
 familiarity with the subject than I currently possess. The issue for me is 
 how to relate my problem to a filter based solution.

 Hopefully your reply as with others will give me greater insight.

 Bobj

 ---

 Dr Bob Jansen

 The Cultural Conversations project 

 Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral 
 History

 122 Cameron St, Rockdale NSW 2216, Australia 

 Ph (Korea): +82 10-4494-0328 

 Ph (Australia) +61 414 297 448 

 Resume: http://au.linkedin.com/in/bobjan 

 Skype: bobjtls 

 KakaoTalk: bobjtls 

 http://www.cultconv.com 


  In line with the Australian anti-spam legislation, if you wish to receive 
 no further email from me, please send me an email with the subject "No 
 Spam"


 On 10 Sep 2020, at 12:19, TW Tones  wrote:

 Bob,

 1. Is there a simple concatenation operator, like & or + that can be 
> used to concatenate strings? I know that a macro can do it but that seems 
> very confusing to a simple mind like me.


 1. Concatenation

 There are many ways to concatenate with tiddlywiki, although for good 
 reasons in may seem not as strait forward as you would expect. In part 
 because where do you want this concatenated result used?
 Please provide a descriptive  example of what you are currently try to 
 achieve.

 With concatenation you will find these methods useful

- Define a macro in which the concatenation occurs
   - You can use $(currentTiddler)$ and parameter $param$ for 
   simple substitutions
- Wiki fy that macro (with the same name is ok) just before you use 
it say in a filter and some parameters
- You can use add-prefix/split/join/splitregext and other string 
handling.

 2. Is there a way of doing simple arithmetic, say increment 

Re: [tw5] Re: Concatenation and arithmetic

2020-09-10 Thread TW Tones
Bob, a little more

   - If you are doing this to develop a unique ID I have done considerable 
   work on what I call a tiddler Serial number, so do ask.
   - The new tiddler process done the correct way, will also increment a 
   tiddler title if the current title exists.
   - It is possible to do this in a field other than text.
   - If you want to increment a number from a filter you can use the range 
   operator as well.
   - You could save into and retrieve such a value from a data tiddler as 
   well.

Regards
Tony


On Thursday, 10 September 2020 17:07:44 UTC+10, TW Tones wrote:
>
> Bob,
>
> I meant to say I live and work in Randwick.
>
> Place this in a new tiddler and click add 1
>
> <$button>
> <$action-setfield $tiddler="$:/config/incremental" text={{{ 
> [{$:/config/incremental}add[1]] }}}/>
> Add 1
> 
>
> $:/config/incremental {{$:/config/incremental}}
>
> <$set name=currentN value={{$:/config/incremental}}>
>
> currentN=<>
>
> 
> This works, ever to initialise the first value
>
> The set demonstrates how to make it a variable.
>
> I advise on keeping code separate from values.
>
> On Thursday, 10 September 2020 16:54:06 UTC+10, Bob Jansen wrote:
>>
>> am I correct in my thinking that I can consider a tiddler like an object 
>> in an OO database having data stored in fields and functions stored as 
>> macros in the text field? 
>>
>> In my case, if I had a tiddler, say $:/tls/unique-id with a field 
>> unique_id having a value of 1. I could then write a macro in that tiddler, 
>> say increment_unique_id,  to increment the field by 1 and use a $list 
>> filter to retrieve the new number from any other tiddler that needs the 
>> unique value. To increment, all I need to do is call the macro that 
>> increments the number in the tiddler $:/tls/unique-id.
>>
>> Am I on the wrong track here?
>>
>> bobj
>>
>> On Thursday, 10 September 2020 at 16:00:18 UTC+10 Bob Jansen wrote:
>>
>>> Tones,
>>>
>>> Thanks for your reply. I am not averse to learning about filters in fact 
>>> as I go along I'm getting much better at them. 
>>>
>>> I was just frustrated at the poor documentation of how to do simple 
>>> concatenation or arithmetic. The examples assume a higher level of 
>>> familiarity with the subject than I currently possess. The issue for me is 
>>> how to relate my problem to a filter based solution.
>>>
>>> Hopefully your reply as with others will give me greater insight.
>>>
>>> Bobj
>>>
>>> ---
>>>
>>> Dr Bob Jansen
>>>
>>> The Cultural Conversations project 
>>>
>>> Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral 
>>> History
>>>
>>> 122 Cameron St, Rockdale NSW 2216, Australia 
>>>
>>> Ph (Korea): +82 10-4494-0328 
>>>
>>> Ph (Australia) +61 414 297 448 
>>>
>>> Resume: http://au.linkedin.com/in/bobjan 
>>>
>>> Skype: bobjtls 
>>>
>>> KakaoTalk: bobjtls 
>>>
>>> http://www.cultconv.com 
>>>
>>>
>>>  In line with the Australian anti-spam legislation, if you wish to receive 
>>> no further email from me, please send me an email with the subject "No Spam"
>>>
>>>
>>> On 10 Sep 2020, at 12:19, TW Tones  wrote:
>>>
>>> Bob,
>>>
>>> 1. Is there a simple concatenation operator, like & or + that can be 
 used to concatenate strings? I know that a macro can do it but that seems 
 very confusing to a simple mind like me.
>>>
>>>
>>> 1. Concatenation
>>>
>>> There are many ways to concatenate with tiddlywiki, although for good 
>>> reasons in may seem not as strait forward as you would expect. In part 
>>> because where do you want this concatenated result used?
>>> Please provide a descriptive  example of what you are currently try to 
>>> achieve.
>>>
>>> With concatenation you will find these methods useful
>>>
>>>- Define a macro in which the concatenation occurs
>>>   - You can use $(currentTiddler)$ and parameter $param$ for simple 
>>>   substitutions
>>>- Wiki fy that macro (with the same name is ok) just before you use 
>>>it say in a filter and some parameters
>>>- You can use add-prefix/split/join/splitregext and other string 
>>>handling.
>>>
>>> 2. Is there a way of doing simple arithmetic, say increment a variable 
 or add some variables together? The manual implies that it is possible in 
 a 
 filter but I want to do it outside of a filter.
>>>
>>>
>>> 2. Most if not all the mathematics functions in standard tiddlywiki are 
>>> "filter operators", so they must be used in filters
>>>
>>> However;
>>>
>>>- Use triple braces to present the result of a calculation in line 
>>>as a parameter.
>>>{{{ [your maths filter] }}} but you may need to turn the result into 
>>>text <$text text={{{ [your maths filter] }}}/>
>>>- You can use other maths plugins like Evans formula plugin he uses 
>>>Mushroom brackets (= maths =), calc widget and others
>>>
>>> In closing if you are reluctant to learn filters in more detail, I 
>>> suggest you jump in. Filters are so powerful once you come to understan

Re: [tw5] Re: Concatenation and arithmetic

2020-09-10 Thread TW Tones
Bob,

I meant to say I live and work in Randwick.

Place this in a new tiddler and click add 1

<$button>
<$action-setfield $tiddler="$:/config/incremental" text={{{ 
[{$:/config/incremental}add[1]] }}}/>
Add 1


$:/config/incremental {{$:/config/incremental}}

<$set name=currentN value={{$:/config/incremental}}>

currentN=<>


This works, ever to initialise the first value

The set demonstrates how to make it a variable.

I advise on keeping code separate from values.

On Thursday, 10 September 2020 16:54:06 UTC+10, Bob Jansen wrote:
>
> am I correct in my thinking that I can consider a tiddler like an object 
> in an OO database having data stored in fields and functions stored as 
> macros in the text field? 
>
> In my case, if I had a tiddler, say $:/tls/unique-id with a field 
> unique_id having a value of 1. I could then write a macro in that tiddler, 
> say increment_unique_id,  to increment the field by 1 and use a $list 
> filter to retrieve the new number from any other tiddler that needs the 
> unique value. To increment, all I need to do is call the macro that 
> increments the number in the tiddler $:/tls/unique-id.
>
> Am I on the wrong track here?
>
> bobj
>
> On Thursday, 10 September 2020 at 16:00:18 UTC+10 Bob Jansen wrote:
>
>> Tones,
>>
>> Thanks for your reply. I am not averse to learning about filters in fact 
>> as I go along I'm getting much better at them. 
>>
>> I was just frustrated at the poor documentation of how to do simple 
>> concatenation or arithmetic. The examples assume a higher level of 
>> familiarity with the subject than I currently possess. The issue for me is 
>> how to relate my problem to a filter based solution.
>>
>> Hopefully your reply as with others will give me greater insight.
>>
>> Bobj
>>
>> ---
>>
>> Dr Bob Jansen
>>
>> The Cultural Conversations project 
>>
>> Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral History
>>
>> 122 Cameron St, Rockdale NSW 2216, Australia 
>>
>> Ph (Korea): +82 10-4494-0328 
>>
>> Ph (Australia) +61 414 297 448 
>>
>> Resume: http://au.linkedin.com/in/bobjan 
>>
>> Skype: bobjtls 
>>
>> KakaoTalk: bobjtls 
>>
>> http://www.cultconv.com 
>>
>>
>>  In line with the Australian anti-spam legislation, if you wish to receive 
>> no further email from me, please send me an email with the subject "No Spam"
>>
>>
>> On 10 Sep 2020, at 12:19, TW Tones  wrote:
>>
>> Bob,
>>
>> 1. Is there a simple concatenation operator, like & or + that can be used 
>>> to concatenate strings? I know that a macro can do it but that seems very 
>>> confusing to a simple mind like me.
>>
>>
>> 1. Concatenation
>>
>> There are many ways to concatenate with tiddlywiki, although for good 
>> reasons in may seem not as strait forward as you would expect. In part 
>> because where do you want this concatenated result used?
>> Please provide a descriptive  example of what you are currently try to 
>> achieve.
>>
>> With concatenation you will find these methods useful
>>
>>- Define a macro in which the concatenation occurs
>>   - You can use $(currentTiddler)$ and parameter $param$ for simple 
>>   substitutions
>>- Wiki fy that macro (with the same name is ok) just before you use 
>>it say in a filter and some parameters
>>- You can use add-prefix/split/join/splitregext and other string 
>>handling.
>>
>> 2. Is there a way of doing simple arithmetic, say increment a variable or 
>>> add some variables together? The manual implies that it is possible in a 
>>> filter but I want to do it outside of a filter.
>>
>>
>> 2. Most if not all the mathematics functions in standard tiddlywiki are 
>> "filter operators", so they must be used in filters
>>
>> However;
>>
>>- Use triple braces to present the result of a calculation in line as 
>>a parameter.
>>{{{ [your maths filter] }}} but you may need to turn the result into 
>>text <$text text={{{ [your maths filter] }}}/>
>>- You can use other maths plugins like Evans formula plugin he uses 
>>Mushroom brackets (= maths =), calc widget and others
>>
>> In closing if you are reluctant to learn filters in more detail, I 
>> suggest you jump in. Filters are so powerful once you come to understand 
>> them your powers are almost unlimited.
>>
>> Regards
>> TW Tones
>>
>> On Thursday, 10 September 2020 11:13:06 UTC+10, Bob Jansen wrote:
>>>
>>>
>>>
>>>
>>>
>>> bobj
>>>
>>> -- 
>> 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/WFwExRhO05c/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> tiddlywiki+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/7ff64fd3-d473-4ecb-b463-818671f80e51o%40googlegroups.com
>>  
>> 

Re: [tw5] Re: Concatenation and arithmetic

2020-09-10 Thread TW Tones
Bob,

You are not on the wrong track, but there are more possibilities than that.

To increment a number you need to write to a tiddler or field, unless you 
are using variables, in your case you want the value saved in a tiddler, 
you will need to use a trigger. the most common of which is a button, but 
others exist.

*I will give you a code sample shortly.*

By the way, I am interested in forming a local group for tiddlywiki, I live 
in randwick, perhaps a facebook/Linked in or google group, a meetup etc...

Let me know if you have any thoughts

Tones





On Thursday, 10 September 2020 16:54:06 UTC+10, Bob Jansen wrote:
>
> am I correct in my thinking that I can consider a tiddler like an object 
> in an OO database having data stored in fields and functions stored as 
> macros in the text field? 
>
> In my case, if I had a tiddler, say $:/tls/unique-id with a field 
> unique_id having a value of 1. I could then write a macro in that tiddler, 
> say increment_unique_id,  to increment the field by 1 and use a $list 
> filter to retrieve the new number from any other tiddler that needs the 
> unique value. To increment, all I need to do is call the macro that 
> increments the number in the tiddler $:/tls/unique-id.
>
> Am I on the wrong track here?
>
> bobj
>
> On Thursday, 10 September 2020 at 16:00:18 UTC+10 Bob Jansen wrote:
>
>> Tones,
>>
>> Thanks for your reply. I am not averse to learning about filters in fact 
>> as I go along I'm getting much better at them. 
>>
>> I was just frustrated at the poor documentation of how to do simple 
>> concatenation or arithmetic. The examples assume a higher level of 
>> familiarity with the subject than I currently possess. The issue for me is 
>> how to relate my problem to a filter based solution.
>>
>> Hopefully your reply as with others will give me greater insight.
>>
>> Bobj
>>
>> ---
>>
>> Dr Bob Jansen
>>
>> The Cultural Conversations project 
>>
>> Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral History
>>
>> 122 Cameron St, Rockdale NSW 2216, Australia 
>>
>> Ph (Korea): +82 10-4494-0328 
>>
>> Ph (Australia) +61 414 297 448 
>>
>> Resume: http://au.linkedin.com/in/bobjan 
>>
>> Skype: bobjtls 
>>
>> KakaoTalk: bobjtls 
>>
>> http://www.cultconv.com 
>>
>>
>>  In line with the Australian anti-spam legislation, if you wish to receive 
>> no further email from me, please send me an email with the subject "No Spam"
>>
>>
>> On 10 Sep 2020, at 12:19, TW Tones  wrote:
>>
>> Bob,
>>
>> 1. Is there a simple concatenation operator, like & or + that can be used 
>>> to concatenate strings? I know that a macro can do it but that seems very 
>>> confusing to a simple mind like me.
>>
>>
>> 1. Concatenation
>>
>> There are many ways to concatenate with tiddlywiki, although for good 
>> reasons in may seem not as strait forward as you would expect. In part 
>> because where do you want this concatenated result used?
>> Please provide a descriptive  example of what you are currently try to 
>> achieve.
>>
>> With concatenation you will find these methods useful
>>
>>- Define a macro in which the concatenation occurs
>>   - You can use $(currentTiddler)$ and parameter $param$ for simple 
>>   substitutions
>>- Wiki fy that macro (with the same name is ok) just before you use 
>>it say in a filter and some parameters
>>- You can use add-prefix/split/join/splitregext and other string 
>>handling.
>>
>> 2. Is there a way of doing simple arithmetic, say increment a variable or 
>>> add some variables together? The manual implies that it is possible in a 
>>> filter but I want to do it outside of a filter.
>>
>>
>> 2. Most if not all the mathematics functions in standard tiddlywiki are 
>> "filter operators", so they must be used in filters
>>
>> However;
>>
>>- Use triple braces to present the result of a calculation in line as 
>>a parameter.
>>{{{ [your maths filter] }}} but you may need to turn the result into 
>>text <$text text={{{ [your maths filter] }}}/>
>>- You can use other maths plugins like Evans formula plugin he uses 
>>Mushroom brackets (= maths =), calc widget and others
>>
>> In closing if you are reluctant to learn filters in more detail, I 
>> suggest you jump in. Filters are so powerful once you come to understand 
>> them your powers are almost unlimited.
>>
>> Regards
>> TW Tones
>>
>> On Thursday, 10 September 2020 11:13:06 UTC+10, Bob Jansen wrote:
>>>
>>>
>>>
>>>
>>>
>>> bobj
>>>
>>> -- 
>> 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/WFwExRhO05c/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> tiddlywiki+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/7ff64fd3-d473-4ecb-b463-818671f80e51o%40googlegroups