[tw5] [Visual Studio Code] TiddlyWiki5 Syntax Extension v1.0.1

2020-07-18 Thread Joshua Fontany
[Visual Studio Code] TiddlyWiki5 Syntax Extension v1.0.1 https://marketplace.visualstudio.com/items?itemName=joshua-fontany.tw5-syntax v1.0.1 Update brings the following: ## 1.0.1 - Fixed snippets to correctly render widget syntax, `<$button> `. - Added a very nifty "Tiddler Metadata" snippet

[tw5] Re: Time Tracking in TiddlyWiki?

2020-07-18 Thread Eric Shulman
On Saturday, July 18, 2020 at 5:38:49 AM UTC-7, Mat wrote: > > Aha, I assumed this TW5 version worked like the TWC version of yours. But > so something like your TWC version could in fact be used to auto-perform > tasks assuming the TW is running in the browser. Good to know. > I just created a

[tw5] Re: Formatting based on field value

2020-07-18 Thread 'Jake' via TiddlyWiki
> Hmmm s... do I get it right, that in order not to type all that >> "list" thing each time I need to make 2 macros? >> > > No, it could all be in one code if it weren't for the fact > that "background-color:" can't take <<...>> as an argument but it *can *take > $(...)$ as an argume

[tw5] Re: Chatbot Plugin

2020-07-18 Thread TW Tones
Folks, On the chatbot, my thinking is how can we make the chatbot rely on content in a tiddlywiki, such as a knowledge base built with tiddlers fields and tags, perhaps TOC's or for example a genealogical tree such that the chat bot can be asked questions who's answers are sourced from the cont

[tw5] Re: Chatbot Plugin

2020-07-18 Thread ChristianB
Thanks TT The macro would be a good approach to wrapping the UI and allowing some customisation... I'll add this to my GitHub repo as an issue and see about another version. Cheers CB On Sunday, July 19, 2020 at 2:28:39 AM UTC+10 TiddlyTweeter wrote: > Okay. Some comments. > > As a first plu

[tw5] Re: Chatbot Plugin

2020-07-18 Thread TW Tones
TT That is very interesting, but a "proof of the turring test"? tony -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To

[tw5] Re: [Visual Studio Code] Announcing Syntax Highlighting and Intellisense Plugin for TW5

2020-07-18 Thread _Phi / hpx1
thanks for the highlighter ! very useful. here's a vscode snippet to automatically create metadata when you type 'tid' : "tiddlerMetadata": { "prefix": "tid", "body": [ "created: $CURRENT_YEAR$CURRENT_MONTH$CURRENT_DATE$CURRENT_HOUR$CURRENT_MINUTE${CURRENT_SECOND}000"

[tw5] Re: Calling a filed value literally, inside a filter?

2020-07-18 Thread Mat
Thanks guys, your help is much appreciated and it was news to me that {!!this} is not wikified inside a filter. Good to know! I might have to come back on it though because it doesn't quite work in the actual context it is in. Too complex for me to explain though. <:-) -- You received this m

[tw5] Re: Calling a filed value literally, inside a filter?

2020-07-18 Thread Eric Shulman
On Saturday, July 18, 2020 at 12:41:00 PM UTC-7, Mark S. wrote: > > This will do what you want: > <$vars foo=bar> > <$vars my1={{!!myfield}}> > <$wikify text={{!!myfield}} name=my2> > {{!!myfield}}, is it prefixed "b"? {{{ [prefix[b]then[YES!]] }}} > > > > This will work whether myfield contains

[tw5] Re: Calling a filed value literally, inside a filter?

2020-07-18 Thread 'Mark S.' via TiddlyWiki
This will do what you want: <$vars foo=bar> <$vars my1={{!!myfield}}> <$wikify text={{!!myfield}} name=my2> {{!!myfield}}, is it prefixed "b"? {{{ [prefix[b]then[YES!]] }}} This will work whether myfield contains <> or "boo!". On Saturday, July 18, 2020 at 11:28:43 AM UTC-7, Mat wrote: > >

[tw5] Re: Formatting based on field value

2020-07-18 Thread Mat
Jake wrote: > > Can it be done via some "var" thingy? > A bit unclear what you mean. There is a variable created and named in my proposed code, i.e the "variable=color" bit. This variable gets the value that comes out from the filter. Something like $vars would do a similar thing if you use it

[tw5] Re: Formatting based on field value

2020-07-18 Thread 'Jake' via TiddlyWiki
> > Maybe I answered in an incomplete way: If you want the outer code, i.e the > listwidget, to be a macro then you would do as you correctly propose. But > the reason so split it up into two macros is only because that css bit > can't handle <<...>> as an argument. > Can it be done via some "

[tw5] Calling a filed value literally, inside a filter?

2020-07-18 Thread Mat
myfield: <> text: <$vars foo=bar> {{!!myfield}}, is it prefixed "b"? {{{ [{!!myfield}prefix[b]then[YES!]] }}} This gives result: bar, is it prefixed "b"? I was expecting bar, is it prefixed "b"? YES! How can I make it work? It seems the field-invocation is evaluated when inside a filter but

[tw5] Re: [Visual Studio Code] Announcing Syntax Highlighting and Intellisense Plugin for TW5

2020-07-18 Thread Joshua Fontany
Thanks for the Bug Report, Atro! I have filed an issue on GitHub to track it: https://github.com/joshuafontany/VSCode-TW5-Syntax/issues/6 I haven't used many of the snippets myself, having borrowed them from one of my sources. I probably just need to "escape" that character in the snippets

[tw5] Re: Autoscroll in TW

2020-07-18 Thread TiddlyTweeter
Ciao Eric Want you to know I not forgotten this. I could not figure out how to initialize SoundCite outside its interface. Likely because its in JS. Lacking skill to hack his JS, I will ask the author to add macro ability to interface with start outside the interface. Best wishes TT On Monday

[tw5] Re: Time Tracking in TiddlyWiki?

2020-07-18 Thread TiddlyTweeter
Eric Shulman wrote: > > ... if you were to "start" a timer and then save the file. Then, when you > reload later, you could "stop" the timer and it would calculate the > difference to get the elapsed time. > Very useful, even if not initially intended!! Best wishes TT -- You received this m

[tw5] Re: Chatbot Plugin

2020-07-18 Thread TiddlyTweeter
Ciao CB, As far as Chatbots go without "AI super-plus" this is STELLAR. It will DO all we'd need. IMO, *it could solve a zillion problems on communicating TW resources*. Its a superior ELIZA . Just FYI I worked with Gene Gendlin

[tw5] Re: Formatting based on field value

2020-07-18 Thread Mat
Maybe I answered in an incomplete way: If you want the outer code, i.e the listwidget, to be a macro then you would do as you correctly propose. But the reason so split it up into two macros is only because that css bit can't handle <<...>> as an argument. <:-) -- You received this message be

[tw5] Re: Chatbot Plugin

2020-07-18 Thread TiddlyTweeter
Okay. Some comments. As a first plugin its ace! Well done! Better than I could! Next steps you need add a panel explaining what it does & give some basic documentation. Does it have a macro interface? What I mean is an initialisation such that you can specify a .reve sciptt. For example ...

[tw5] Re: Formatting based on field value

2020-07-18 Thread Mat
> Hmmm s... do I get it right, that in order not to type all that > "list" thing each time I need to make 2 macros? > No, it could all be in one code if it weren't for the fact that "background-color:" can't take <<...>> as an argument but it *can *take $(...)$ as an argument. I'm no

[tw5] Re: Formatting based on field value

2020-07-18 Thread 'Jake' via TiddlyWiki
> > Fun little task. > You might want some additional style tweaking but here's how you can do it: > > \define rating() Rating {{!! > rating}} > > <$list filter="[{!!rating}compare:integer:gt[70]then[green]] > ~[{!!rating}compare:integer:gt[50]then[grey]] ~[[red]]" variable=color> > <> > > > Hmm

[tw5] Re: [Visual Studio Code] Announcing Syntax Highlighting and Intellisense Plugin for TW5

2020-07-18 Thread TiddlyTweeter
It is a doddle to install in Visual Studio ... Fire it up. Go to your address & *bingo!* [image: Annotation 2020-07-18 174738.jpg] TT -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from

[tw5] Re: [Visual Studio Code] Announcing Syntax Highlighting and Intellisense Plugin for TW5

2020-07-18 Thread TiddlyTweeter
Ciao Joshua Visual Studio is a Good tool. Free. Can be installed as a portable application. Works well. *Its excellent to see your innovation.* Sure it would be Good to get it made highlights.js compatible so we can use TW code highlighting natively in TW. But I don't think its trivial to do

[tw5] Re: Formatting based on field value

2020-07-18 Thread Mat
Fun little task. You might want some additional style tweaking but here's how you can do it: \define rating() Rating {{!!rating }} <$list filter="[{!!rating}compare:integer:gt[70]then[green]] ~[{!!rating}compare:integer:gt[50]then[grey]] ~[[red]]" variable=color> <> <:-) -- You received this

[tw5] Re: How to save multiple lines into a field ?

2020-07-18 Thread Saq Imtiaz
@Mark I didn't test that particular filter as I realized it would cause other issues. The filters in this tiddler only change the file extension, not the format its saved in. So you would get a .json file with plain text body and a .meta file. Not what we want. The filter I used actually does n

[tw5] Formatting based on field value

2020-07-18 Thread 'Jake' via TiddlyWiki
Thanks everyone for the previous answer, but I have another small question. I've searched the forum, but couldn't find the answer. So, the question is rather simple. Is it possible to automatically apply formatting to the field in the text based on its value? For example: I have a field "rating"

[tw5] Re: How to save multiple lines into a field ?

2020-07-18 Thread 'Mark S.' via TiddlyWiki
Thanks very much for that, Saq! What I don't understand (actually there's a lot I don't understand) is why my filter extension [has[ismulti]then[.json]] didn't work (assuming I added the "ismulti" field). It's counter-intuitive that you have to tell the system to use "tid" all the time in ord

[tw5] Re: Time Tracking in TiddlyWiki?

2020-07-18 Thread Mat
@Eric - thanks for replying. Aha, I assumed this TW5 version worked like the TWC version of yours. But so something like your TWC version could in fact be used to auto-perform tasks assuming the TW is running in the browser. Good to know. <:-) -- You received this message because you are subs

[tw5] Re: Time Tracking in TiddlyWiki?

2020-07-18 Thread Eric Shulman
On Saturday, July 18, 2020 at 3:47:49 AM UTC-7, Mat wrote: > > This is a naive question but I have to ask (in reference to this > > thread): If one has a wiki with your plugin on a server like github... > would that mean it can

[tw5] Re: Show Tag Tiddlers of Current Tiddler marked with certain Tag

2020-07-18 Thread TW Tones
Fyi enlist Enlist is like list but treats the values as titles. So enlist{!!tags} treats the contents of the tags field as titles so it would respect spaces in titles and kind of wrap them in [[square brackets]] or ensure they are treated as titles. Regards Tony -- You received this message

[tw5] Re: How to save multiple lines into a field ?

2020-07-18 Thread Saq Imtiaz
Mark, If you unzip the below file and drop the fileinfo-patch folder into the tiddlers folder and restart your server, multiline fields should correctly trigger saving tiddlers as .json https://github.com/saqimtiaz/sq-tw/raw/master/fileinfo-patch.zip The files: - filesystem.js and filesyst

[tw5] Re: Show Tag Tiddlers of Current Tiddler marked with certain Tag

2020-07-18 Thread 'Jake' via TiddlyWiki
> > I think the shortest and most performant filter is: > [enlist{!!tags}]+[tag[genre]] > It lists the tags of the current tiddler and then looks, if it has a tag > "genre" > There are 2 lists: > The first will give you a comma separated list. > <$list filter="[enlist{!!tags}]+[tag[genre]]"><$li

[tw5] Re: Time Tracking in TiddlyWiki?

2020-07-18 Thread Mat
@Eric Thanks for sharing wonderful stuff! This is a naive question but I have to ask (in reference to this thread): If one has a wiki with your plugin on a server like github... would that mean it can execute stuff automatical

[tw5] Re: Show Tag Tiddlers of Current Tiddler marked with certain Tag

2020-07-18 Thread PMario
On Saturday, July 18, 2020 at 12:25:42 PM UTC+2, Mat wrote: > > [enlist{!!tags}]+[tag[genre]] >> > > Nit pick but even shorter: > > [enlist{!!tags}tag[genre]] > You are right ;) -m -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe f

[tw5] Re: Show Tag Tiddlers of Current Tiddler marked with certain Tag

2020-07-18 Thread Mat
> > [enlist{!!tags}]+[tag[genre]] > Nit pick but even shorter: [enlist{!!tags}tag[genre]] <:-) -- 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+unsu

[tw5] Re: Show Tag Tiddlers of Current Tiddler marked with certain Tag

2020-07-18 Thread PMario
Hi Jake, I think the shortest and most performant filter is: [enlist{!!tags}]+[tag[genre]] It lists the tags of the current tiddler and then looks, if it has a tag "genre" There are 2 lists: The first will give you a comma separated list. <$list filter="[enlist{!!tags}]+[tag[genre]]"><$lin

[tw5] Re: Show Tag Tiddlers of Current Tiddler marked with certain Tag

2020-07-18 Thread 'Jake' via TiddlyWiki
> > OR... > > <$list filter="[enlist{!!tags}]" variable="thistag"> ><$list filter="[tag[genre]]"> > <$link to=<>/>, > > > > The outer $list gets all tags for the current tiddler > The inner $list checks each of those tags to see if it is a genre > Yep! The second one also works, th

[tw5] Re: Show Tag Tiddlers of Current Tiddler marked with certain Tag

2020-07-18 Thread Mat
Jake wrote: > > Errmm... Nope :) > As a result I get current tiddler title shown 9 times... :) > Doh, my bad, sorry for that. Anyway, Mr. E saves the day as usual ;-) <:-) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from

[tw5] Re: Show Tag Tiddlers of Current Tiddler marked with certain Tag

2020-07-18 Thread 'Jake' via TiddlyWiki
> You can use nested $list widgets, like this: > > Genre: > <$list filter="[tag[genre]]" variable="genre"> ><$list filter="[tag]"> > <$link to=<>/>, > > > > The outer $list gets each tiddler tagged with genre. > The inner $list checks if the current tiddler has that genre as a tag

[tw5] Re: Show Tag Tiddlers of Current Tiddler marked with certain Tag

2020-07-18 Thread 'Jake' via TiddlyWiki
> OK, maybe: > > <$vars curr=<>> > <$list filter="[tag[genre]]"> > <$list filter="[tag]"><$link/>, > > > > Errmm... Nope :) As a result I get current tiddler title shown 9 times... :) -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To uns

[tw5] Re: Show Tag Tiddlers of Current Tiddler marked with certain Tag

2020-07-18 Thread Eric Shulman
On Friday, July 17, 2020 at 11:47:44 PM UTC-7, Jake wrote: > > Well, the title says it all. Very simple one. > E.g. if I have a small movie base and I have "genre" tags like "Action", > "Drama", "Comedy", etc. and I marked all those tags with "genre" tag. > And now I want to show them as clickable

[tw5] Re: Show Tag Tiddlers of Current Tiddler marked with certain Tag

2020-07-18 Thread Mat
OK, maybe: <$vars curr=<>> <$list filter="[tag[genre]]"> <$list filter="[tag]"><$link/>, <:-) -- 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+unsu

[tw5] Re: How to save multiple lines into a field ?

2020-07-18 Thread Saq Imtiaz
Hi Mark, Firstly apologies for the trial and error approach at debugging yesterday. I was trying to help but didn't have access to my dev machine. I've done some debugging and have confirmed that as you suspected, there is a bug where only new tiddlers with multiline fields are saved as .json

[tw5] Re: Show Tag Tiddlers of Current Tiddler marked with certain Tag

2020-07-18 Thread 'Jake' via TiddlyWiki
> You may be interested in list-links-inline > , > > Otherwise; > > <$list filter="[tag[genre]]"><$link/>, > > (A problem here is that you'll get a comma also after the last title.) > > No-no-no... that will just show all the Tag Tiddlers tagged "genre

[tw5] Re: Show Tag Tiddlers of Current Tiddler marked with certain Tag

2020-07-18 Thread Mat
You may be interested in list-links-inline , Otherwise; <$list filter="[tag[genre]]"><$link/>, (A problem here is that you'll get a comma also after the last title.) <:-) -- You received this message because you are subscribed to the Google Groups