Re: [tw5] Re: Create a message of the day generator

2019-09-18 Thread Melvin
Wow, that's beautiful :) Op wo 18 sep. 2019 om 11:48 schreef TonyM : > Post script > > Mat you method looks close to a "case" structure. > > Love it > Tony > > -- > You received this message because you are subscribed to a topic in the > Google Groups "TiddlyWiki" group. > To unsubscribe from

[tw5] Re: Create a message of the day generator

2019-09-17 Thread Melvin
s (obviously I'd advise you to change the "melvin" part of the pathname, or keep it as is at your own risk ;-) ): /*\ title: $:/melvin/macros/messageoftheday.js type: application/javascript module-type: macro Macro to output a message of the day from a filter \*/ (function(){ /*jsli

[tw5] Create a message of the day generator

2019-09-17 Thread Melvin
This took me a while, but I found a way to create a message of the day generator which changes the message given on how many messages you have and what day of the month it is. You add the messages in [[]] and the code will do the rest :D The current 'bug' is that it will only allow you to

[tw5] Re: Using wikified text from another tiddler as state in $reveal

2019-09-17 Thread Melvin
It bears to mention that some tags will be different due to wikify. I had to use <> all of a sudden. I made the mistake that <> and <> would still be the same. On Tuesday, September 17, 2019 at 4:17:51 PM UTC+2, Melvin wrote: > > I have a Tiddler called $:/dayofweek

[tw5] Re: Using wikified text from another tiddler as state in $reveal

2019-09-17 Thread Melvin
Well, this seems to work. I suppose with the string parsing functions, one could use the list widget as a reveal widget in certain situations. <$wikify mode="inline" name=week_val text=<> > <$list filter="[regexp[Tuesday]]"> Yay! On Tuesday, Septembe

[tw5] Using wikified text from another tiddler as state in $reveal

2019-09-17 Thread Melvin
I have a Tiddler called $:/dayofweek which has the following content. <> I hoped that the following code would work (on any given Tuesday). <$reveal type="match" state="$:/dayofweek" text="Tuesday"> Yay! But it didn't. The culprit was shown when I rewrote it to the following code: <$reveal

[tw5] Re: edit text widget + autocomplete: could anyone guide me on a high level what concepts I'd need to learn in order to build this?

2019-09-13 Thread Melvin
test On Thursday, September 12, 2019 at 4:10:02 PM UTC+2, Melvin wrote: > > I don't think this feature exists yet, and I'm still relatively new to > TiddlyWiki. Well, it does exist for the sidebar search bar that looks at > all tiddlers (e.g. http://2585.tiddlyspot.com/), that's al

[tw5] Re: Select text from a line in a text file wiki

2019-09-13 Thread Melvin
for strings. I guess this is a prime example of partially upgrading TW in such a way that you get the needed functionality that one wants. On Friday, September 13, 2019 at 10:51:37 AM UTC+2, Melvin wrote: > > I see that this works in 5.20 (all kinds of handy iterative string > functions have b

[tw5] Re: Select text from a line in a text file wiki

2019-09-13 Thread Melvin
; > On Thursday, September 12, 2019 at 2:33:53 PM UTC-7, Melvin wrote: >> >> I have a tiddler called alphabet with the following content >> >> a >> ab >> abc >> a b c >> abcd >> >> I want to create a filter expression that selects a

[tw5] Select text from a line in a text file wiki

2019-09-12 Thread Melvin
I have a tiddler called alphabet with the following content a ab abc abcd I want to create a filter expression that selects abc and abcd. So the result would be: abc abcd I thought I would need to write something along the lines of: [regexp:text[abc]] or [title[alphabet][text[abc]] but

[tw5] Re: edit text widget + autocomplete: could anyone guide me on a high level what concepts I'd need to learn in order to build this?

2019-09-12 Thread Melvin
/pull/2585/commits/47920d28ee0a47e3e64b1a277efb6cc42eae78a3 On Thursday, September 12, 2019 at 4:10:02 PM UTC+2, Melvin wrote: > > I don't think this feature exists yet, and I'm still relatively new to > TiddlyWiki. Well, it does exist for the sidebar search bar that looks at > all t

[tw5] edit text widget + autocomplete: could anyone guide me on a high level what concepts I'd need to learn in order to build this?

2019-09-12 Thread Melvin
I don't think this feature exists yet, and I'm still relatively new to TiddlyWiki. I want to create a TiddlyWiki tag (or sets of tags) that does the following: 1. There is a search bar 2. It has autocomplete/a typeahead 3. It looks in a JSON tiddler for options on autocomplete 4. Once you click

[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: 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
d $tiddler="StoreDailyQuestionnaireData" $field="g1_value" $value="" /> change goal 1 On Friday, August 2, 2019 at 2:45:56 PM UTC+2, Melvin wrote: > > I got it by doing > > <$edit-text tiddler="StoreDailyQuestionnaireData" field="mytestfi

[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-02 Thread Melvin
stration2 $value={{StoreDailyQuestionnaireData!!mytestfield}} />Set the field 2 --- <$view field=demonstration1/> <$view field=demonstration2/> On Friday, August 2, 2019 at 2:13:17 PM UTC+2, Melvin wrote: > > I am trying to find a suitable workaround for edit-text.

[tw5] 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-02 Thread Melvin
I am trying to find a suitable workaround for edit-text. I'm using TiddlyWiki as my journal. I have a template Tiddly for questions with radio buttons and all that. I clone it for the day, change the date and that is my new Tiddler. However, the amount of stuff I need to edit within my tiddler