[tw5] Re: Tiddlywiki and regexp examples part ii: Working with fields

2019-08-27 Thread @TiddlyTweeter
> > *Target fields*: created modified > > write regexp patterns to match > >1. created/modified in August 2019 >2. created/modified on Wednesdays >3. created/modified on 3rd day of each month >4. created/modified on 1st of December of each year >5. created/modified on January

[tw5] Re: Tiddlywiki and regexp examples part ii: Working with fields

2019-08-27 Thread Mohammad
Some solution to first group modified in 2019: ^2019 modified in January 2019: ^201901 modified in August (any year) : ^\d{4}09 modified on 3rd of each month: ^\d{6}03 modified on 1st of December (any year): ^\d{4}1201 modified between 1st and 9th of December (any year): ^\d{4}120 The question

[tw5] Whats wrong here with wikify

2019-08-27 Thread Mohammad
Question: List all tiddlers modified on Wednesdays in 2014 <$vars pattern="^2014" day="Wed"> <$list filter="[regexp:modified]"> <$wikify name=wday text="""<$view field=modified format=date template="ddd"/>""" > <$text text=<> /> <$list filter="[regexp[Wed]]" emptyMessage="error"

[tw5] Re: Tiddlywiki and regexp examples part ii: Working with fields

2019-08-27 Thread Mohammad
Some solutions! -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit

[tw5] Keep losing my edit and add tiddler buttons - where to look?

2019-08-27 Thread Cade Roux
I have imported a lot of JSON tiddlers, sometimes with errors, and I think these must bash something. Typically, it's something in the JSON that's not escaped properly - like \import instead of \\import (unexpected element i or something like that) or an embedded double quote in the JSON

Re: [tw5] Re: TiddlyServer 2.1.2 beta

2019-08-27 Thread Arlen Beiler
You can also just create a new settings.json file using example-settings.json and then copy the tree over from your old file. On Tue, Aug 27, 2019 at 8:19 PM Arlen Beiler wrote: > Yes, you can just copy settings.json over and if it doesn't complain then > you're good. > Yes,

Re: [tw5] Re: TiddlyServer 2.1.2 beta

2019-08-27 Thread Arlen Beiler
Yes, you can just copy settings.json over and if it doesn't complain then you're good. Yes, datafolder-template.json is a tiddlywiki.info template. It is the tiddlywiki.info file from the server edition and is used when you create a data folder from a directory index page. Yes, TiddlyServer 2.1 is

[tw5] Re: List with title

2019-08-27 Thread Anjar
Hi Chems, The easiest is often an example: http://folk.ntnu.no/anderhja/list-link-example.html Demonstrating Mark's solution, and also a nested list Best, Anders -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group

[tw5] Re: List with title

2019-08-27 Thread TonyM
Chems Wrapp your list-links macro call in a list widget that iterates each of the tiddlers you want the list links macro to act on. Personaly list links macro is limited and I mostly use the list widget now. Sometimes you can write a single filter that does it all but nesting lists can be

[tw5] Re: Conditional macro: transclusion or tiddler creation button/link

2019-08-27 Thread Cade Roux
Yep, I think that's basically what I discovered about the filter but it was masked and only uncovered when I started to add the edit link for what was supposed to be existing tiddlers Thanks again, Cade On Tuesday, August 27, 2019 at 4:41:35 PM UTC-5, Eric Shulman wrote: > > > On Tuesday,

[tw5] Re: Conditional macro: transclusion or tiddler creation button/link

2019-08-27 Thread Eric Shulman
On Tuesday, August 27, 2019 at 2:21:19 PM UTC-7, Cade Roux wrote: > > I think I follow what you are doing, but now it's not putting out the > button link at all. Is there any kind of debug mode so you can see all the > processing steps before rendering? > >> >> oops I forgot to pass the

[tw5] Re: Conditional macro: transclusion or tiddler creation button/link

2019-08-27 Thread Cade Roux
After fooling with it and altering the filter and adding some features, I got it - thanks for the point in the right direction! \define btn(title) <$button class="tc-btn-invisible tc-tiddlylink"> <$action-createtiddler $basetitle="$title$" /> <$action-navigate $to="$title$" $scroll="yes"/>

[tw5] Re: Conditional macro: transclusion or tiddler creation button/link

2019-08-27 Thread Cade Roux
I think I follow what you are doing, but now it's not putting out the button link at all. Is there any kind of debug mode so you can see all the processing steps before rendering? [image: Capture.PNG] On Tuesday, August 27, 2019 at 4:08:32 PM UTC-5, Eric Shulman wrote: > > On Tuesday,

[tw5] Re: Conditional macro: transclusion or tiddler creation button/link

2019-08-27 Thread Eric Shulman
On Tuesday, August 27, 2019 at 1:30:17 PM UTC-7, Cade Roux wrote: > > Where I want tiddlers to be transcluded if they exist and a button to > create the tiddler if they don't exist in my table. > try this: \define btn(title) <$button class="tc-btn-invisible tc-tiddlylink">

[tw5] Conditional macro: transclusion or tiddler creation button/link

2019-08-27 Thread Cade Roux
Where I want tiddlers to be transcluded if they exist and a button to create the tiddler if they don't exist in my table. \define conditionaltiddler(title : "Tiddler Title") <$set name="btn"> <$button class="tc-btn-invisible tc-tiddlylink"> <$action-createtiddler $basetitle="$title$" /> Create

[tw5] Re: List with title

2019-08-27 Thread 'Mark S.' via TiddlyWiki
If your current tiddler is "Apple", then it will list all tiddlers that have the ingredient (ingrediant) "Apple". If you are in some other tiddler, that is not an ingredient, then nothing will list. On Tuesday, August 27, 2019 at 12:35:50 PM UTC-7, Chems wrote: > > Thanks Mark. > > <]">> > >

[tw5] Re: TiddlyServer 2.1.2 beta

2019-08-27 Thread mauloop
Dear Arlen, I ran my wikis on 2.1.1 in the last four months with satisfaction. I was eager to update it to TW 5.1.20 (I was planning to do it by myself), hence TiddlyServer 2.1.2 is welcome. Just some questions: - can I simply copy settings.json from 2.1.1 to 2.1.2 (that I hardly

[tw5] Re: List with title

2019-08-27 Thread Chems
All my itddler that are important are actually saved as "draft of..."; maybe the original title is than the "draft of.."? And I am also not sure why it is saved as a draft :( Am Dienstag, 27. August 2019 21:16:04 UTC+2 schrieb Mark S.: > > This post: > >

[tw5] Re: List with title

2019-08-27 Thread Chems
Thanks Mark. <]">> appears to be exactly what I want, but it is not working for me. Is shows an empty list; unfortunatly nothing more. You know why its like this? Am Dienstag, 27. August 2019 21:16:04 UTC+2 schrieb Mark S.: > > This post: > >

[tw5] Re: List with title

2019-08-27 Thread 'Mark S.' via TiddlyWiki
This post: https://groups.google.com/d/msg/tiddlywiki/KD9n_jwAktU/dRr-wY_JAQAJ Described how to do what you appear to be asking. Note that to have this occur automatically in every tiddler that is an ingredient, you will need the template code provided. Good luck On Tuesday, August 27, 2019

[tw5] Re: List with title

2019-08-27 Thread Chems
I dont think thats quiet what I want, but thanks nevertheless! Maybe its not possible with tiddlywikki as easy as I expected it to be. I just want the <> function with the current tiddlertitle in the last brackets. Maybe Im just bad at describing my ideas in english :D Am Montag, 26. August

Re: [tw5] Re: GitHub saving tips?

2019-08-27 Thread Mohammad
Hi Jeremy! My experiments shows - When save to GitHub you don't see the "Start to save" as we see for tiddlyspot. So you can realize if clicking button start saving or not - When save using master branch it works fine - When save using master branch and sub-folder, TW create the

Re: [tw5] Re: GitHub saving tips?

2019-08-27 Thread Jeremy Ruston
Thanks Mark, Cade. That's helpful, I'll do some testing. Best wishes Jeremy -- Jeremy Ruston jer...@jermolene.com https://jermolene.com > On 27 Aug 2019, at 17:11, 'Mark S.' via TiddlyWiki > wrote: > -- You received this message because you are subscribed to the Google Groups

Re: [tw5] Re: Problems with FileSystemPaths-Config since v5.1.20

2019-08-27 Thread Jeremy Ruston
Hi Mirko There is a bug in v5.1.20 in the handling of $:/config/FileSystemPaths: https://github.com/Jermolene/TiddlyWiki5/pull/4174 It's fixed in the prerelease. We'll release v5.1.21 soon to address this and a couple of other regressions. Best wishes Jeremy -- Jeremy Ruston

Re: [tw5] Re: GitHub saving tips?

2019-08-27 Thread 'Mark S.' via TiddlyWiki
For me, I can save to master but not to any other branch. I am not rapid-firing saves. The 409 is consistent whenever I try a branch other than master. The first time I use a new branch, it works (sends the file), but all subsequent attempts fail. Since timing may depend on whether you're using

Re: [tw5] Re: GitHub saving tips?

2019-08-27 Thread Cade Roux
I'm not sure - nothing is being committed to GitHub outside of TW in my testing, and I get the fresh file before starting, so I think there might very well be a timing issue. It's hard to see what's going on, I guess I should probably pull up the browser dev tools and look at traffic. Thanks,

Re: [tw5] Re: GitHub saving tips?

2019-08-27 Thread Jeremy Ruston
Hi Everyone Apologies, I'm late to this thread. What's the current status? Do we have bugs, or do we need to improve the docs? The error HTTP 409 typically means that the file has changed on Git inbetween the start of the save operation and its conclusion; this can happen very easily if save

[tw5] Re: List with title

2019-08-27 Thread Anjar
It sounds like you are looking for some kind of nested list? For example <$list filter="[has[ingrediant]]"> <$set name=ing value={{!!title}}> <]">> which will find all tiddlers with a field named "ingrediant" and then use the title of that tiddler ("Apple") to create a list of tiddlers with a

[tw5] Re: List with title

2019-08-27 Thread Chems
Sorry; Maybe my example was not completly clear. My Problem is that I need to write the <> for every other Fruit. So, If i have 100 tiddlers all called after Fruits, I have to write the list above, and exchange the "Apple" with the title of the tiddler. It would be so much easier if I dont need

[tw5] Re: List with title

2019-08-27 Thread Chems
Sorry; Maybe my example was not completly clear. My Problem is that I need to write the <> for every other Fruit. So, If i have 100 tiddlers all called after Fruits, I have to write the list above, and exchange the "Apple" with the title of the tiddler. It would be so much easier if I dont need

[tw5] Re: GitHub saving tips?

2019-08-27 Thread Mohammad
Mark, after several trials I was able to save to another branch. Strangely on GitHub I see this message Your recently pushed branches: gh-pages gh-pages is the name of branch I used instead of master. By the way the saving was successful! I hope Jeremy could have a look on saving mechanism in

[tw5] Re: Tiddlywiki and regexp examples part ii: Working with fields

2019-08-27 Thread @TiddlyTweeter
Mohammad An issue is how to use foreign languages. Regex character ranges like \w don't have accented letters. But there ways to deal with that. TT On Tuesday, 27 August 2019 13:01:07 UTC+2, Mohammad wrote: > > In this part questions raise for finding and matching a substring in a > Tiddler

[tw5] Re: Tiddlywiki and regexp examples

2019-08-27 Thread @TiddlyTweeter
TonyM wrote: > > Now to test a fixed number such as 127 I imagine that's just a string? > Yes. The examples I just gave will help. TT -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails

[tw5] Re: Tiddlywiki and regexp examples

2019-08-27 Thread @TiddlyTweeter
> > TonyM wrote: > ... check for 10.*.*.* 192.168.*.* 127.*.*.* or if equal to 1.1.1.1 or > 0.0.0.0. to determine if they are local or public addresses. Using the 0-255 regex of last post you can build a more complex regex. Because I never worked with IP addresses I consulted Wikipedia to

[tw5] Re: Tiddlywiki and regexp examples

2019-08-27 Thread TonyM
Thanks TT Now to test a fixed number such as 127 I imagine that's just a string? 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

[tw5] Tiddlywiki and regexp examples part ii: Working with fields

2019-08-27 Thread Mohammad
In this part questions raise for finding and matching a substring in a Tiddler fields. This field is NOT text as we will discuss this in another thread and seems needs more work. *Target fields*: created modified write regexp patterns to match 1. created/modified in August 2019 2.

[tw5] Re: Tiddlywiki and regexp examples

2019-08-27 Thread @TiddlyTweeter
TonyM wrote: > > ... check for 10.*.*.* 192.168.*.* 127.*.*.* or if equal to 1.1.1.1 or > 0.0.0.0. to determine if they are local or public addresses. > I done this in two posts so its easier to understand. To help Mohammad document let's first deal with how to simply match IP sub-numbers 0