[tw5] Re: Conditional Operators in TW 5.1.20

2019-08-03 Thread Mohammad
This is great! Still we have not real branching with then-else but we have if NonEmpty return then part else return else part end And we need a construct like you proposed! --Mohammad On Sunday, August 4, 2019 at 10:47:34 AM UTC+4:30, TonyM wrote: > > Mohammad > > This structure will return t

[tw5] Re: Conditional Operators in TW 5.1.20

2019-08-03 Thread TonyM
Observation ~[[false]] or else false Is equivalent to else[false] in some circumstances, but it can be placed within a single run. Retards Tony On Sunday, 4 August 2019 00:06:14 UTC+10, Mohammad wrote: > > While there were alot of request for simple conditional operations, it > seems the new

[tw5] Re: Conditional Operators in TW 5.1.20

2019-08-03 Thread TonyM
Mohammad This structure will return true only if the input is true, any other value including empty will return false <$set name=input value="true"> <$list filter="[match[true]else[false]]" variable=returned> <$set> Thus inside the list you can test <$list filter="[match[true]]">

[tw5] Re: Interesting Code Patterns? Handling the emptyMessage condition in the ListWidget Body, a CASE structure, complex formulas

2019-08-03 Thread TonyM
Mohammad, Comparing two values for which is the greater - 5.1.20 ONLY because it uses match and min operators <$set name=input1 value=3> <$set name=input2 value=5> <$list filter="=[!match]" emptyMessage="equals"> <$list filter="=[minmatch]"> Input 1 = Minimum <$list filter="=[m

[tw5] Re: Interesting Code Patterns? Handling the emptyMessage condition in the ListWidget Body, a CASE structure, complex formulas

2019-08-03 Thread TonyM
Mohammad See your conditional operators link for my answer to your Question One question, how do you propose to implement the below construct [Less > than and greater than tests] using $list widget Tony On Sunday, August 4, 2019 at 12:15:09 AM UTC+10, Mohammad wrote: > > Tony! > >> See this

[tw5] Re: Is there an option to have an input tag (e.g. text input), with a button "save" next to it which then saves to a tiddler field?

2019-08-03 Thread TonyM
Melvin, I know you have walked down a different path but I suggest making a tiddler tagged $:/tags/ViewTemplate that transcludes a template tiddler (containing the edit text) on the tiddler where you require the edit to take place. This allows you appear to be editing the current tiddler withou

Re: [tw5] Re: Shortcut issue

2019-08-03 Thread Aidan Grey
Yes, that's right On Sat, Aug 3, 2019, 7:03 PM TonyM, wrote: > Aidan, > > Thanks for sharing the final solution. This is easy to readapt to using a > shortcut to trigger any action or set of actions. > > Would it be better to write? > > $:/config/ShortcutInfo/*newShortcutname* > > Regards > Tony

Re: [tw5] Re: Update to TiddlyServer 2.1 Beta

2019-08-03 Thread TonyM
Arelen, I raised an issue in GitHub but I have the new version running. - With a node WIki I had a look at the address http://192.168.1.81/Node/HPSaT/Home (no Hash) VS http://192.168.1.81/Node/HPSaT/#Home and can see the static tiddlers are present, I wonder if this was possible

[tw5] Re: Counting all Tiddlers

2019-08-03 Thread Mark Krieg
TonyM, thank you so much! This is precisely what I was looking for!!! On Saturday, August 3, 2019 at 8:58:52 PM UTC-4, TonyM wrote: > > <$count filter="[all[]]"> ? > > But perhaps you really mean > <$count filter="[all[tiddlers]]"> > > Tony > > On Sunday, August 4, 2019 at 10:30:40 AM UTC+10, M

[tw5] Re: Counting all Tiddlers

2019-08-03 Thread Mark Krieg
Thanks, Mat! If that were a snake, it would have bit me! On Saturday, August 3, 2019 at 8:37:56 PM UTC-4, Mat wrote: > > Mark Krieg wrote: >> >> Maybe I'm missing something very obvious >> > > You are: Ctrlpanel > Info > Basic ...bottom of tiddler > > <:-) > -- You received this message becau

Re: [tw5] Re: Shortcut issue

2019-08-03 Thread TonyM
Aidan, Thanks for sharing the final solution. This is easy to readapt to using a shortcut to trigger any action or set of actions. Would it be better to write? $:/config/ShortcutInfo/*newShortcutname* Regards Tony On Sunday, August 4, 2019 at 7:09:41 AM UTC+10, Aidan Grey wrote: > > It was th

[tw5] Re: Counting all Tiddlers

2019-08-03 Thread TonyM
<$count filter="[all[]]"> ? But perhaps you really mean <$count filter="[all[tiddlers]]"> Tony On Sunday, August 4, 2019 at 10:30:40 AM UTC+10, Mark Krieg wrote: > > Maybe I'm missing something very obvious, but is there a way for me to > count the total number of tiddlers in my TiddlyWiki? Fo

[tw5] Re: [TW5] Printing and the Reveal Widget

2019-08-03 Thread TonyM
Another method is to use the list widget to reveal or hide content and have a dual filter that tests first for reveal and also for print mode, both will result in the same thing. Regards Tony On Sunday, August 4, 2019 at 10:41:33 AM UTC+10, Mat wrote: > > Here's a strategy > > For your revealwi

[tw5] Re: [TW5] Printing and the Reveal Widget

2019-08-03 Thread Mat
Here's a strategy For your revealwidget, use state tiddlers that all start with a common prefix e.g $:/state/reveal/apple $:/state/reveal/banana Then you can create a button that lists all tiddlers prefixed $:/state/reveal that sets their content to be show/hide yes/no <:-) -- You received

[tw5] Re: Internet and freedom of communicating with fellow human beings

2019-08-03 Thread TonyM
Folks. I care deeply about these issues. But the first point I would make is we should ensure there are a Divercity of communication channels known to most if not all enthusiasts making it hard for one or more channels closing to stop communication. When we establish the ability for every tidd

[tw5] Re: Counting all Tiddlers

2019-08-03 Thread Mat
Mark Krieg wrote: > > Maybe I'm missing something very obvious > You are: Ctrlpanel > Info > Basic ...bottom of tiddler <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send

[tw5] Counting all Tiddlers

2019-08-03 Thread Mark Krieg
Maybe I'm missing something very obvious, but is there a way for me to count the total number of tiddlers in my TiddlyWiki? For example I have a tiddler that currently counts up various tags: |Journal Entries |<$count filter="[tag[personal_journal]] "/>| |Dreams |<$count filter="[tag[dream]] "/>

[tw5] [TW5] Printing and the Reveal Widget

2019-08-03 Thread Anjar
Hi all, I am using the reveal widget to create accorions/sliders in many tiddlers (hiding answers to quiz questions), and I wondered if it is possible to expand all of these when printing the page (to PDF/paper)? Or even better: create two buttons so that one can choose whether they will be exp

Re: [tw5] How http://do/I/access/_THISPART_ ?

2019-08-03 Thread TonyM
On a related issue I was trying to get the filename.ext the wiki loaded from when using file:// Is there a way? Regards Tony -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send

[tw5] Re: Interesting Code Patterns? Handling the emptyMessage condition in the ListWidget Body, a CASE structure, complex formulas

2019-08-03 Thread TonyM
Great stuff -- 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.googl

Re: [tw5] How http://do/I/access/_THISPART_ ?

2019-08-03 Thread Mat
Jeremy, Arlen and anyone - my question did have a familiar feel to it: https://groups.google.com/forum/#!searchin/tiddlywiki/location.js|sort:date/tiddlywiki/bDAOWS5fcHw/5jr5Xtd9CQAJ BJ has solved it! <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWi

[tw5] Re: Internet and freedom of communicating with fellow human beings

2019-08-03 Thread Mat
For anyone interested, here are some articles by Dr Ben Goertzel. The latest one ("What's so disturbing about Microsofts OpenAI investment") touches these matters. Dr Goertzel is the chief scientist behind SingularityNet, i.e the brain of the robot S

Re: [tw5] How http://do/I/access/_THISPART_ ?

2019-08-03 Thread Arlen Beiler
If you need to read the location hash for Javascript purposes, you could use a raw head tiddler with a script tag to save it in a global variable. Or put it in a tiddler in the preload array. On Sat, Aug 3, 2019 at 12:37 PM Mat wrote: > Then I know. Much appreciated that you replied. > > <:-) >

Re: [tw5] Re: Update to TiddlyServer 2.1 Beta

2019-08-03 Thread Arlen Beiler
Thank you. Keep the feedback and suggestions coming. It helps me to know what features to add and what problems need to be solved. Arlen On Fri, Aug 2, 2019 at 7:30 PM 'Mark S.' via TiddlyWiki < tiddlywiki@googlegroups.com> wrote: > Hello Arlen, > > What are the differences between the two links

Re: [tw5] Re: Shortcut issue

2019-08-03 Thread Aidan Grey
It was the story bit - just tested it, and that fixed it. I did have tagS vs tag, that was just a typo here. So here's my step by step to create a custom global shortcut, where you don't need a button, or to be in a textarea, or anything. Just hit your shortcut at anytime, and voila. Obviously, y

[tw5] Re: Internet and freedom of communicating with fellow human beings

2019-08-03 Thread HansWobbe
I absolutely agree that mutiNational corps are a bigger problem that sovereign governments. One of the compelling arguments is the "too big to fail" argument put forward to justify the bailouts of the Banks from the 2008 financial crises. That "too big to..." argument is now evidently extend

[tw5] Re: Internet and freedom of communicating with fellow human beings

2019-08-03 Thread passingby
This is a bit of rant here. >From a layman's point of view, I feel the talk and ideas of software and concept of sharing and openness has changed a lot. It seems internet is no more the internet which it was envisioned to be. A long time ago, I used to think if something was open source, it was

Re: [tw5] Re: Polly (2) -- Downloads as HUB

2019-08-03 Thread 'Mark S.' via TiddlyWiki
That might be possible. We should have a list of todos/ideas at the top. So far I've got * Refactor for relative addresses * Use windows variables in definitions * Loop back to menu after action * Launch in browser per ini list * Scan wiki-dirs and add contents to pollies list Thanks! On Satur

Re: [tw5] Tiny Todolist Plugin 1.00 final release: Create todo item with different categories

2019-08-03 Thread Birthe C
Hi again Mohammad, I just uploaded to tiddlyspot using Chromium. *BUT* I had to try 3 times before it stopped saving locally and uploaded. For other work I am very much enjoying your latest version of todolist. Thanks to your advice I got It from github. Birthe -- You received this message

Re: [tw5] Re: Polly (2) -- Downloads as HUB

2019-08-03 Thread @TiddlyTweeter
Mark S. wrote: > > Did you find any actual downside? Once we have a function in place, it > shouldn't be hard to implement. We just have to > "sanitize" the four+ directory types. Unless of course ... it breaks > relative addressing or something. > No downside I can see at all. And I doubt it w

Re: [tw5] Re: Polly (2) -- Downloads as HUB

2019-08-03 Thread 'Mark S.' via TiddlyWiki
Did you find any actual downside? Once we have a function in place, it shouldn't be hard to implement. We just have to "sanitize" the four+ directory types. Unless of course ... it breaks relative addressing or something. Thanks! On Saturday, August 3, 2019 at 6:43:22 AM UTC-7, @TiddlyTweeter

Re: [tw5] Re: Shortcut issue

2019-08-03 Thread 'Mark S.' via TiddlyWiki
I think you do need to wrap it with a minimum of <$navigator story="$:/StoryList" > ... In your original post, you said $:/tag/KeyboardShortcut, but it should be $:/tags/KeyboardShortcut I'm thinking that the error you're getting suggests something wrong in your template. Perhaps you could sh

Re: [tw5] Tiny Todolist Plugin 1.00 final release: Create todo item with different categories

2019-08-03 Thread Birthe C
Hi Mohammed, Go to http://tiddlyspot.com fill out the form and createbut do not go to your new site. Open the the tiddlywiki you want to upload in your browseropen control panel saving...and enter the name of your wiki and your password. When you save it should upload to your newly cre

[tw5] Re: Internet and freedom of communicating with fellow human beings

2019-08-03 Thread @TiddlyTweeter
passingby, good to see your post! It was a serious mistake that governments were stupidly slow when the net evolved. So far behind it is now a joke. That went so far that "common cause" has become reduced to "consumer trends". The net--Google et al--is largely organised by corporations at the m

[tw5] Re: TwederateBOB

2019-08-03 Thread Birthe C
Hi Jed, That is overwhelming - totally excited about your news. Jed, please do not give up on us. I am sure I am not the only one having some difficulties understanding it all. But curious and eager.that I am. Birthe -- You received this message because you are subscribed to the Google Gr

[tw5] Re: TwederateBOB

2019-08-03 Thread Jed Carty
Ste, Yes, it is possible with what currently exists. I got tired of trying to promote the single html file version of TWederation because it has been around for about 3 years and with 4 or 5 very notable exceptions there was almost no response past 'I would like to try it when it is ready' des

Re: [tw5] Re: Shortcut issue

2019-08-03 Thread Mat
(sorry for deleted post. I misunderstood Birthes reply) Birthe, Aidan, thanks that explains it. <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+u

[tw5] Re: TwederateBOB

2019-08-03 Thread Ste Wilson
I did not know any of that! And I thought I kept up on this board! -- 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 vie

Re: [tw5] Re: Shortcut issue

2019-08-03 Thread Mat
Birthe C wrote: > > When you do not use a button, but want to create a new tiddler from > keyboard shortcut, you are not creating the tiddler from inside the story > riverat least that is what I am thinking. > Thanks but my question was more general; what contexts allow for action widgets?

[tw5] Re: TwederateBOB

2019-08-03 Thread Mat
I assume Jed / inmysocks will reply if when he reads this but if you're serious about engaging Ste... Jed already has a server that he is willing to let people use for free! Here . He has even invited people to put up e.g plugins for a central plugin repository

[tw5] Re: Internet and freedom of communicating with fellow human beings

2019-08-03 Thread Jed Carty
We are making reasonable progress with the inter-wiki federation so far. I am working on a project at the same time that uses hyperswarm (it is inspired by the BitTorrent DHT but it is made to make communication easier in the sense of finding specific peers instead of just some peers). It will

[tw5] Re: Internet and freedom of communicating with fellow human beings

2019-08-03 Thread Mohammad
I recommend to watch the movie by Oliver Stone: https://en.wikipedia.org/wiki/Snowden_(film) The Snowden movie: https://en.wikipedia.org/wiki/Snowden_(film) You will learn much better about what governments interpret the word freedom! --Mohammad -- You received this message because you are su

Re: [tw5] Tiny Todolist Plugin 1.00 final release: Create todo item with different categories

2019-08-03 Thread Mohammad
Birthe, I did and I got this error Uncaught TypeError: self.addIndexer is not a function I used this page http://tiddlywiki5.tiddlyspot.com/ to create a new site Seems does not work with TW 5.1.20pre Mohammad On Saturday, August 3, 2019 at 9:37:58 PM UTC+4:30, Birthe C wrote: > > Hi Mohammad, >

Re: [tw5] Re: Shortcut issue

2019-08-03 Thread Aidan Grey
What Birthe said, and also because of the previously noted requirement specified in how to create a keyboard shortcut, global section. On Sat, Aug 3, 2019, 12:02 PM Birthe C, wrote: > Hi Mat, > > When you do not use a button, but want to create a new tiddler from > keyboard shortcut, you are not

Re: [tw5] Tiny Todolist Plugin 1.00 final release: Create todo item with different categories

2019-08-03 Thread Mohammad
Hi Birthe, Do you mean to create a page on tiddlyspot and then drag and drop a TW5.1.20 over it? Lets try! --Mohammad On Saturday, August 3, 2019 at 9:37:58 PM UTC+4:30, Birthe C wrote: > > Hi Mohammad, > > I do not think you can use Mats setup wiki. But you should be able to > upload to tiddl

[tw5] TwederateBOB

2019-08-03 Thread Ste Wilson
The fabled holy grail... I believe it's possible right here right now thanks to the awesome bob. My understanding is we just need a server. And someone competent to do things. https://www.mythic-beasts.com/ seem to offer a very cheap hosting solution where we could have access to the command

Re: [tw5] Re: Shortcut issue

2019-08-03 Thread Birthe C
Hi Mat, When you do not use a button, but want to create a new tiddler from keyboard shortcut, you are not creating the tiddler from inside the story riverat least that is what I am thinking. Birthe -- You received this message because you are subscribed to the Google Groups "TiddlyWiki

[tw5] Re: Internet and freedom of communicating with fellow human beings

2019-08-03 Thread Mat
(I personally welcome off-topic discussions if they are few and also have *some* relevance like this one does even if just barely... but you should perhaps prefix the topic title with [off topic] or similar) I think TW is very much created in the "freedom" spirit. Unfortunately it's most import

[tw5] Internet and freedom of communicating with fellow human beings

2019-08-03 Thread passingby
While trying to stay non-political, I think there is a need to discuss these issues where governments stop certain services in certain parts of the world. What if a part of the world is completely cut off? What if tomorrow, Google groups is stopped from being accessed from a country? In that si

Re: [tw5] Re: Shortcut issue

2019-08-03 Thread Mat
I'm curious; What made you choose specifically the navigator widget as the thing to trigger the action? I'm not saying I have any better suggestion, I'm just curious, and actually I'm wondering what things that can trigger actions other than a button and apparently also navigation. Anybody kno

Re: [tw5] Re: Shortcut issue

2019-08-03 Thread Aidan Grey
I specifically DON"T want a button, so I was following the directions for a global shortcut, which don't use buttons. As I noted, it works, but that one weird error. On Sat, Aug 3, 2019 at 11:10 AM Mat wrote: > Aidan, actionwidgets typically have to be inside a button. Try this: > > <$button> >

Re: [tw5] Re: Shortcut issue

2019-08-03 Thread Mat
Aidan, actionwidgets typically have to be inside a button. Try this: <$button> <$action-sendmessage $message="tm-new-tiddler" $param="meaningTemplate" /> xxx <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this grou

Re: [tw5] Tiny Todolist Plugin 1.00 final release: Create todo item with different categories

2019-08-03 Thread Birthe C
Hi Mohammad, I do not think you can use Mats setup wiki. But you should be able to upload to tiddlyspot directly using chrome or chromium. Are you having problems with that? Birthe lørdag den 3. august 2019 kl. 16.23.41 UTC+2 skrev Mohammad: > > Mat, > Is it possible to upload 5.120pr? > > --

Re: [tw5] Re: Shortcut issue

2019-08-03 Thread Aidan Grey
Thanks Birthe, I'll give that a shot and see if I can make it work. On Sat, Aug 3, 2019 at 10:27 AM Birthe C wrote: > Hi Aidan, > > I looked in $:/core/ui/KeyboardShortcuts/new-tiddler, I think you could > clone that and make a few changes > > That would look like this: > <$navigator story="$:/

Re: [tw5] Re: Shortcut issue

2019-08-03 Thread Aidan Grey
Heya Mario, [[How to create keyboard shortcuts]] says that some actions require to be wrapped within a $navigator widget. That is necessary for the following list of widgets and messages in order to work if used within global keyboard shortcuts, and tm-new

Re: [tw5] How http://do/I/access/_THISPART_ ?

2019-08-03 Thread Mat
Then I know. Much appreciated that you replied. <:-) -- 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 discuss

Re: [tw5] How http://do/I/access/_THISPART_ ?

2019-08-03 Thread Jeremy Ruston
Hi Mat > Yes, the fragment (tiddler) - but if the whole url could be retrieved then I > could do the slicing myself. > > BTW, I initially used "$:/info/url/full" which caused some confusion because > I assumed it really was the full url. Maybe it is misnamed? (Or maybe I don't > know what the

Re: [tw5] How http://do/I/access/_THISPART_ ?

2019-08-03 Thread Mat
> > If you are talking about fragment, then there’s no direct way to read it > at the moment. > Yes, the fragment (tiddler) - but if the whole url could be retrieved then I could do the slicing myself. BTW, I initially used "$:/info/url/full" which caused some confusion because I assumed it r

[tw5] Re: Shortcut issue

2019-08-03 Thread Birthe C
Hi Aidan, I looked in $:/core/ui/KeyboardShortcuts/new-tiddler, I think you could clone that and make a few changes That would look like this: <$navigator story="$:/StoryList" history="$:/HistoryList" openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideR

Re: [tw5] How http://do/I/access/_THISPART_ ?

2019-08-03 Thread Jeremy Ruston
> So how would I test if the url has the suffix "foo”? Just to check, in the example http://example.com/index.html#fragment are you talking about “fragment” or “index.html”, or something else? If you are talking about fragment, then there’s no direct way

[tw5] Re: Case insensitive fuzzy search of title in filter?

2019-08-03 Thread MagoArcade
Thanks all. I'd forgotten about regex, which solved it: \define SearchTerm(term) (?i)($term$) \end Set Parent Item: <$edit-text tiddler="$:/_opTaskStore" field="itemsearch" tag="input" default ="" class='tc-edit-texteditor' placeholder='Test text'/> <$button set="$:/state/ItemSearch" setT

Re: [tw5] How http://do/I/access/_THISPART_ ?

2019-08-03 Thread Mat
Thanks. So how would I test if the url has the suffix "foo"? I hope to do it at startup. <:-) -- 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+unsubs

Re: [tw5] How http://do/I/access/_THISPART_ ?

2019-08-03 Thread Jeremy Ruston
Hi Mat > Non of the info commands seem to access the marked out part. How do it? There’s no consensus but it’s often called the “location hash”, “fragment identifier” or “named anchor”. In any case, it is not currently exposed by the info mechanism because it instead exposed through the navig

[tw5] Re: Case insensitive fuzzy search of title in filter?

2019-08-03 Thread Mohammad
Thats true ste see - https://groups.google.com/forum/#!searchin/tiddlywiki/fuzzy$20search$20plugin|sort:date/tiddlywiki/ZvvLTxQz3Ag/xcDKMVr9CgAJ - https://groups.google.com/forum/#!searchin/tiddlywiki/fuzzy$20search$20plugin|sort:date/tiddlywiki/Co2dWbbCHTc/jaAbQKnNAgAJ are so

[tw5] Re: Case insensitive fuzzy search of title in filter?

2019-08-03 Thread Ste Wilson
I'm sure someone tackled this a while ago... -- 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 t

[tw5] Re: Case insensitive fuzzy search of title in filter?

2019-08-03 Thread Mohammad
Nice stuff! I also recommend to have a look at https://dynalist.io/d/zUP-nIWu2FFoXH-oM7L7d9DM#z=qvnb1tyGX-Zfd0n7kl_Moj-d -Mohammad On Saturday, August 3, 2019 at 6:36:33 PM UTC+4:30, MagoArcade wrote: > > Hi - I'm trying to write a fuzzy search routine. At the moment I only know > how to sea

Re: [tw5] Tiny Todolist Plugin 1.00 final release: Create todo item with different categories

2019-08-03 Thread Mohammad
Mat, Is it possible to upload 5.120pr? --Mohammad On Thursday, July 25, 2019 at 6:26:08 PM UTC+4:30, Mat wrote: > > @Mohammad - if it is only a matter of demo sites, then I can recommend > tiddlyspot (most easily set up via this > page) > > <:-) > -- You re

[tw5] Re: Interesting Code Patterns? Handling the emptyMessage condition in the ListWidget Body, a CASE structure, complex formulas

2019-08-03 Thread Mohammad
Tony! > See this post! > https://groups.google.com/d/msg/tiddlywiki/xiCrpbATFqE/w-UjRxroFQAJ -- 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+unsubsc

[tw5] Conditional Operators in TW 5.1.20

2019-08-03 Thread Mohammad
While there were alot of request for simple conditional operations, it seems the new TW 5.1.20 has this great feature See - https://tiddlywiki.com/prerelease/#Conditional%20Operators I think this needs to be discussed and examples are needed for clrification! So, interested people, please g

[tw5] Case insensitive fuzzy search of title in filter?

2019-08-03 Thread MagoArcade
Hi - I'm trying to write a fuzzy search routine. At the moment I only know how to search on the Prefix, but this only returns results on exact prefix matches of precise case. What I'm aiming for is something like below. Let's say I have 3 tiddlers: "The cat sat on the mat" "Cat littler needed"

[tw5] Re: Interesting Code Patterns? Handling the emptyMessage condition in the ListWidget Body, a CASE structure, complex formulas

2019-08-03 Thread Mohammad
Tony Have a look here, then else operator https://github.com/Jermolene/TiddlyWiki5/issues/4147 On Saturday, August 3, 2019 at 4:00:07 PM UTC+4:30, TonyM wrote: > > Mohammad, > > Your first resort would be to the reveal widget since it already permits > such comparisons. I had raised the develo

[tw5] How http://do/I/access/_THISPART_ ?

2019-08-03 Thread Mat
Non of the info commands seem to access the marked out part. How do it? [image: Capture.PNG] 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 tiddl

Re: [tw5] Re: Polly (2) -- Downloads as HUB

2019-08-03 Thread @TiddlyTweeter
Ciao Mark I'm not sure its worth it on bespoke %env%. I toyed around a bit. I kinda felt it was bending a bit backwards on it. A user who needs that special path only needs enter it once, (literally) right, anyway in Polly settings? So its seems like overkill to worry the point? But maybe I''m

[tw5] Re: Interesting Code Patterns? Handling the emptyMessage condition in the ListWidget Body, a CASE structure, complex formulas

2019-08-03 Thread Mohammad
Yes, the reveal widget is one solution! It is important to have a readable and maintainable code! --Mohammad On Saturday, August 3, 2019 at 4:00:07 PM UTC+4:30, TonyM wrote: > > Mohammad, > > Your first resort would be to the reveal widget since it already permits > such comparisons. I had raise

[tw5] Re: Shortcut issue

2019-08-03 Thread PMario
Hi, The navigator widget is very heavy weight. ... I think it should be possible to get what you want, without it. -m -- 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 ema

[tw5] Re: Shortcut issue

2019-08-03 Thread BurningTreeC
Hi Aidan, does it work if you provide a storylist to the navigator widget like <$navigator story="$:/StoryList"> ? Hey all, > > I created a global shortcut that creates a new tiddler from a template. It > works, except that I get this error: > > Uncaught TypeError: Cannot read property 'index

Re: [tw5] Re: Polly (2) -- Downloads as HUB

2019-08-03 Thread @TiddlyTweeter
FYI, we now have two people interested ... [image: Annotation 2019-08-03 143846.jpg] -- 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...@googl

[tw5] Re: Is there an option to have an input tag (e.g. text input), with a button "save" next to it which then saves to a tiddler field?

2019-08-03 Thread Mat
Melvin wrote: > > Thanks! I'll try it out. On thinking about it though (if I understand it > correctly), that also means that this will be displayed in all my other > edittext tags, even in other journal entries. That means this might make it > more error prone if I accidentally select another e

[tw5] Re: TiddlySmile ...

2019-08-03 Thread @TiddlyTweeter
We received a message from April Mackenzie of Oxford, New Zealand. She asks ... Dear TT Thank you for the onions. I was wondering if in the upcoming 5.1.23 I will be able to automate the > feeding of my gerbils when I am on holiday? Yours, April Dear April I'm not sure. 5.1.23

[tw5] Re: Shortcut issue

2019-08-03 Thread PMario
Hi, Why did you use the navigator widget? -m -- 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 t

[tw5] Re: Interesting Code Patterns? Handling the emptyMessage condition in the ListWidget Body, a CASE structure, complex formulas

2019-08-03 Thread TonyM
Mohammad, Your first resort would be to the reveal widget since it already permits such comparisons. I had raised the development of less than and greater than operators but there is a real issues these raise because such tests need to take account of the complexity inherent in numbers. I am su

Re: [tw5] Re: Polly (2) -- Downloads as HUB

2019-08-03 Thread @TiddlyTweeter
> > Mark: * We should probably make our own routine library file at this point You show what that would look like and I'll follow :-). I do think hiving off repeated things is a good idea. I also thinking about "extensions". The heart of Polly is your "while" looping magic. I'm trying to be

[tw5] Re: Interesting Code Patterns? Handling the emptyMessage condition in the ListWidget Body, a CASE structure, complex formulas

2019-08-03 Thread Mohammad
Tony, One question, how do you propose to implement the below construct using $list widget if a>b then do this part one else if a > Your welcome > > So on 5.1.20 > <$list filter="[] ~[[false]]" variable=case> ><$list filter="[match[false]]" variable=case> > Do this if no case value

[tw5] Re: Interesting Code Patterns? Handling the emptyMessage condition in the ListWidget Body, a CASE structure, complex formulas

2019-08-03 Thread Mohammad
Added to TW-Scripts! On Thursday, August 1, 2019 at 3:46:23 AM UTC+4:30, TonyM wrote: > > Your welcome > > So on 5.1.20 > <$list filter="[] ~[[false]]" variable=case> ><$list filter="[match[false]]" variable=case> > Do this if no case value > ><$list filter="[match[caseone]]"

[tw5] Re: Is there an option to have an input tag (e.g. text input), with a button "save" next to it which then saves to a tiddler field?

2019-08-03 Thread Melvin
Thanks! I'll try it out. I'm not that deep into 'TiddlyWiki programming' yet. In fact, I just modified my TW to turn the `

[tw5] Re: Announcement: A small horizontal timeline

2019-08-03 Thread Mohammad
Sure :-) On Saturday, August 3, 2019 at 1:11:05 PM UTC+4:30, TonyM wrote: > > Mohammad > > One word > > Beautiful. > > We must do a history of computing ending with its peak at tiddlywiki of > course. > > Regards > Tony > > -- You received this message because you are subscribed to the Google G

[tw5] Re: Is there an option to have an input tag (e.g. text input), with a button "save" next to it which then saves to a tiddler field?

2019-08-03 Thread Mat
Thanks for sharing Melvin. Just a note; your use of the html term "input tag" risks causing confusion here because in TW "tag" is the visual tag pills seen in tiddlers. Just sayin'. A thought: Do you necessarily want to apply the text using a button or wouldn't it be more convenient if the tex

[tw5] Re: Interesting Code Patterns? Handling the emptyMessage condition in the ListWidget Body, a CASE structure, complex formulas

2019-08-03 Thread @TiddlyTweeter
Ciao TonyM I sat a bit with this and your last post that lists useful requests I've noted. I think the issue, at root, is "regex" is an powerful pattern matching "language" built into JavaScript that TW has access to. And its wortrh noting that a lot of TiddlyWiki, behind the scenes, uses it

[tw5] Re: Is there an option to have an input tag (e.g. text input), with a button "save" next to it which then saves to a tiddler field?

2019-08-03 Thread Melvin
My final working code is: goal 1: <$view field=g1_value/> <$edit-text tiddler="StoreDailyQuestionnaireData" field="g1_value"/> <$button> <$action-setfield $field=g1_value $value={{StoreDailyQuestionnaireData!!g1_value}} /> <$action-setfield $tiddler="StoreDailyQuestionnaireData" $field="g1_valu

[tw5] Re: Announcement: A small horizontal timeline

2019-08-03 Thread TonyM
Mohammad One word Beautiful. We must do a history of computing ending with its peak at tiddlywiki of course. Regards Tony -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an

[tw5] Re: Polly (2) -- Downloads as HUB

2019-08-03 Thread @TiddlyTweeter
Mark S. wrote: > > Oops. Ok, changes ... > Thanks. Zip archives are named as expected now. But I'll do a but more testing too. I revised the test system to list the new nested backups and zips. I'll include that in my next update. Re "." or "-" in names. I prefer the way you did it with "-". J

[tw5] Re: position in a list

2019-08-03 Thread Mohammad
Smart solution Mark! Added to TW-Scripts. On Saturday, August 3, 2019 at 12:30:01 AM UTC+4:30, Mark S. wrote: > > I think this answers your question as described in your text -- note that > it specifies both numbers to compare. It uses pre20 > > <$vars selected=7 whereami=8> > <$list filter="[ra

[tw5] Re: Announcement: A small horizontal timeline

2019-08-03 Thread Mohammad
Hi, I am happy you like these stuff! Cheers Mohammad On Saturday, August 3, 2019 at 2:59:12 AM UTC+4:30, A Gloom wrote: > > Mohammad! > > I can't keep up with all your nifty stuff! That's not a complaint, but a > good thing-- you'll keep me bust for a long time : ) > -- You received this mes