[tw5] Re: [good practice] A multi steps IF using filters

2021-01-24 Thread Jed Carty
I don't see anything wrong with using that macro, but I do have an alternative that I think is more flexible. Depending on the situation this may not work, but here is the same result using lookup: \define myfun(x) <$vars u={{{ [<__x__>lookup:$x$ doesn't exist[value ]] }}} \end then you make a

[tw5] Re: Bob: Why does my custom script disappear when I click "Update Settings"

2021-01-24 Thread Jed Carty
at the moment it is because there is a bug in the latest release that breaks saving changes to the settings, so the scripts aren't saved when added in the browser. as you said, there aren't many people using it so it will get fixed whenever I get time to fix it. On Sunday, January 24, 2021 at

[tw5] [good practice] A multi steps IF using filters

2021-01-24 Thread Mohammad Rahmani
I tried to implement the below pseudo code in TW 5.1.23 if x=one then print(1) elseif x=two then print(2) elseif x=three then print(3) else print(x is not valid) end with \define myfun(x) <$vars u={{{[<__x__>match[one]then[1]] [<__x__>match[two]then[2]] [<__x__>match[three]then[3]]

[tw5] Add or sum number from fields tiddler by filter

2021-01-24 Thread Sylvain Naudin
Hi, I searched this morning what exists to simply add (sum up) several numbers includes in fields from several tiddlers, but I'm not sure I found it (or how to implement it). My need: via a tiddler filter with tag, add the numbers of a custom field contained in the tiddlers: in order to be

[tw5] Re: Bob: Why does my custom script disappear when I click "Update Settings"

2021-01-24 Thread si
I suppose there aren't that many people who use Bob, so I thought I'd just bump this up in the hope that it gets seen by someone who does. I can provide more details if needed. On Thursday, 21 January 2021 at 23:01:55 UTC si wrote: > > Hi all, > > I've just been trying out Bob, and I wanted to

[tw5] Re: Add or sum number from fields tiddler by filter

2021-01-24 Thread Eric Shulman
On Sunday, January 24, 2021 at 3:11:33 AM UTC-8 sil...@gmail.com wrote: > My need: via a tiddler filter with tag, add the numbers of a custom field > contained in the tiddlers: in order to be able to count the time spent on a > project. > This will do the trick: total = {{{

[tw5] Re: [good practice] A multi steps IF using filters

2021-01-24 Thread Mat
Very minor but for readability you can break the line in multiple places. <:-) On Sunday, January 24, 2021 at 11:24:58 AM UTC+1 Mohammad wrote: > I tried to implement the below pseudo code in TW 5.1.23 > > if x=one then > print(1) > elseif x=two then > print(2) > elseif x=three then >

[tw5] Re: Bob: Why does my custom script disappear when I click "Update Settings"

2021-01-24 Thread si
Ahh OK thanks for the explanation. I'll give it another go at some point in the future! On Sunday, 24 January 2021 at 13:38:33 UTC inmy...@gmail.com wrote: > at the moment it is because there is a bug in the latest release that > breaks saving changes to the settings, so the scripts aren't

Re: [tw5] Sorting records in a dynamic table - need syntax help

2021-01-24 Thread 'JWHoneycutt' via TiddlyWiki
OMG - it is embarrassing to learn that clicking the column header sorts the whole table. I should have tried that first. Thank you Mohammad for creating this great solution. Is there a way to export to spreadsheet format (or CSV) for others (non TW5 users) to add to? JWHoneycutt On Saturday,

[tw5] Re: [good practice] A multi steps IF using filters

2021-01-24 Thread Mat
@Mohammad It is not the IF-THEN structure you're asking for but if the input and output are predefined like that, then it'd be simpler to use a data tiddler to just get the value i.e {{datatiddler##two}} ---> 2 <:-) On Sunday, January 24, 2021 at 11:24:58 AM UTC+1 Mohammad wrote: > I tried

[tw5] Re: Add or sum number from fields tiddler by filter

2021-01-24 Thread Saq Imtiaz
The reduce operator in 5.1.23 should fit your needs: https://tiddlywiki.com/#reduce%20Operator:%5B%5Breduce%20Operator%5D%5D%20%5B%5Breduce%20Operator%20(Examples)%5D%5D On Sunday, January 24, 2021 at 12:11:33 PM UTC+1 sil...@gmail.com wrote: > Hi, > > I searched this morning what exists to

[tw5] Re: Add or sum number from fields tiddler by filter

2021-01-24 Thread Sylvain Naudin
Thanks Saq, It sounds good indeed ! Le dimanche 24 janvier 2021 à 12:32:58 UTC+1, saq.i...@gmail.com a écrit : > The reduce operator in 5.1.23 should fit your needs: > > > https://tiddlywiki.com/#reduce%20Operator:%5B%5Breduce%20Operator%5D%5D%20%5B%5Breduce%20Operator%20(Examples)%5D%5D > > On

[tw5] Can tag adding trigger field creation?

2021-01-24 Thread Misterel85
Hi, I started gathering all the drama activities I have collected over the years from miscellaneous sources into a TW single file. To quote the source of an activity (= one tiddler per activity / exercise), I have used so far: - a tag, itself tagged as 'Source', and that holds the main

[tw5] Re: Dictionary tiddlers and variables

2021-01-24 Thread History Buff
After a considerable amount of searching in the forum, I think I have learned the answer to my question. In a previous thread (https://groups.google.com/g/tiddlywiki/c/VrFXprNCxVM/m/ZMw1zS8XCAAJ), I saw that you could use the $action-setfield widget to modify/create/remove the index and

[tw5] Challenge: Encoding/decoding to arbitrary character sets

2021-01-24 Thread TW Tones
Folks, I thought I would put out this challenge, as each time I work on it I get in intellectual loops. Whilst I would appreciate others having a go it is also to put out a challenge for new and experienced users alike and can produce a useable set of code patterns. * The Idea* Take an

Re: [tw5] Re: Tamasha Presentation Plugin [planned for early Feb]

2021-01-24 Thread Mohammad Rahmani
On Sun, Jan 24, 2021 at 11:35 PM clutterstack wrote: > Beautiful, Mohammad! > Thank you Chris. I will add documentation over the next weekend. Your feedback specially on the performance is highly welcome. Cheers Mohammad -- You received this message because you are subscribed to the Google

[tw5] Re: Dictionary tiddlers and variables

2021-01-24 Thread TW Tones
History buff, Consider using the clone button on a tiddler to start with a prefilled copy, then make changes. Tones On Monday, 25 January 2021 at 15:18:27 UTC+11 History Buff wrote: > After a considerable amount of searching in the forum, I think I have > learned the answer to my question.

Re: [tw5] Re: [good practice] A multi steps IF using filters

2021-01-24 Thread Mohammad Rahmani
Thank you @Mark. It seems the {{{filter...}}} has a lot of potential to create conditional statements. The actual use case was based on the user interaction a set of classes shall be applied to few html tags. I used the dictionary tiddler, but for small use cases I like your approach. @Tones,

Re: [tw5] Re: [good practice] A multi steps IF using filters

2021-01-24 Thread Mohammad Rahmani
Thank you Jed, I have not used the lookup operator, seems promising. I will give a try. Best wishes Mohammad On Sun, Jan 24, 2021 at 2:41 PM Jed Carty wrote: > I don't see anything wrong with using that macro, but I do have an > alternative that I think is more flexible. > Depending on the

Re: [tw5] Re: Tiddler title as image name

2021-01-24 Thread TG
Thank you, Soren, for this information. I have a lot yet to learn but have been able to do a lot more than I imagined. Tiddlywiki has become an essential tool for me. I appreciate everyone's help and information. On Mon, Jan 18, 2021 at 3:43 PM Soren Bjornstad wrote: > A more general way of

Re: [tw5] Re: [good practice] A multi steps IF using filters

2021-01-24 Thread Mohammad Rahmani
Mat, Thank you! Well yes a dictionary tiddler can be used. I have used such a solution in my recent plugin Tamasha. I also implement the switch-case using your proposed solution. Really powerful. By the way, there are situations where the operands are not constant. I just tried to see how I can

[tw5] Re: Tamasha Presentation Plugin [planned for early Feb]

2021-01-24 Thread Mohammad Rahmani
The beta release of *Tamasha *is on the GitHub now! There is no documentation yet, but there are plenty of examples. Tamasha was baked using my previous plugin TiddlyShow, but Tamasha is small, fast and much more native when it comes to be used in a daily note taking Tiddlywiki. Still there are

Re: [tw5] [ANN] Notebook theme v1.3.6 is out!

2021-01-24 Thread Álvaro
Thank you Nicolas. This theme is great. I had thought to make myself one very similar. El domingo, 24 de enero de 2021 a las 4:11:59 UTC+1, Mohammad escribió: > Hi again, > It seems the issue is with Tiddlywiki itself and not the Notebook theme. > The tag pill has a poor css design. > > Best

Re: [tw5] Sorting records in a dynamic table - need syntax help

2021-01-24 Thread Mohammad Rahmani
Well, I have not tried that, but I think there are solutions. Not sure but I have read threads here discussing export/import csv. Best wishes Mohammad On Sun, Jan 24, 2021 at 6:03 PM 'JWHoneycutt' via TiddlyWiki < tiddlywiki@googlegroups.com> wrote: > OMG - it is embarrassing to learn that

Re: [tw5] Re: [good practice] A multi steps IF using filters

2021-01-24 Thread TW Tones
Mohammad, I know your example is more a general example, but if we look at the specific example translating a number to a number-word we have the advantage that the input is an integer. \define number-words() one two three four five six seven eight nine <$list filter="[range[1,9]]"> <> {{{

[tw5] Re: Keyboard widget

2021-01-24 Thread TW Tones
Clutterstack, I am no expert in keyboard shortcuts for sure, but with 5.1.23 we can now use the modifier keys, so alt- shift- ctrl- can be interrogated in the actions macro if appropriate you can then use one key, 3-4 modifier keys so perhaps a global short cut that responds to conditions and

[tw5] Re: Help w/dates please?

2021-01-24 Thread TW Tones
Damien, My first question is why tag something with information already in the tiddler, the created date instead you can use search, sort and days operators etc... to list tiddlers. Of course if you want to sort something the something needs to be sortable. This Is why I would stay with the

Re: [tw5] Help w/dates please?

2021-01-24 Thread Javier Eduardo Rojas Romero
On Sun, Jan 17, 2021 at 05:55:53AM -0800, Damien Errol wrote: > I've managed to display today's tag with a very simple: > " > <$vars date=<> > > <> > " > - but I don't really know what I'm doing and I'm struggling to display > yesterday's or the day before's date. Tiddlywiki doesn't seem to have

[tw5] Re: Tamasha Presentation Plugin [planned for early Feb]

2021-01-24 Thread Sylvain Naudin
Hi Mohammad, Great to see this beta release to play with it ! (Just notice you talk about KaTeX plugin, but since it's not present, the slide is not rendering good). I don't know if it's possible (or desirable) but I would see the text a bit bigger when the resolution / display is bigger (on a

Re: [tw5] Re: Tamasha Presentation Plugin [planned for early Feb]

2021-01-24 Thread Mohammad Rahmani
Thank you Sylvain, I forgot to include the KaTex plugin in the demo. It was fixed. You can play with font size through Tamasha themes. But please let me know which font size you prefer on HD screens. By the way, Tamasha is not optimized for small screens. I need to add required css. Best wishes

Re: [tw5] Re: [ANN] Projectify 0.12.0 is out!

2021-01-24 Thread Nicolas Petton
Maarten writes: > hi Nico, Hi Maarten, > is it an option to change the position of the complete button? On the todo > tiddlers is on the place of the close button of all the other tiddlers. So > sometimes when I want to close a couple of tiddlers I complete a todo by > mistake. I would help

[tw5] Re: Dictionary tiddlers and variables

2021-01-24 Thread History Buff
Here's the code I'm using to create the tiddler in the first place: \whitespace trim \define newDataHereActions() <$set name="tags" filter="[] [{$:/config/NewTiddler/Tags}]"> <$action-sendmessage $message="tm-new-tiddler" tags=<> type="application/x-tiddler-dictionary" caption="" text="Line:

Re: [tw5] [ANN] Notebook theme v1.3.6 is out!

2021-01-24 Thread Nicolas Petton
Nicolas Petton writes: > I'll have a look. What in particular do think think is poorly > designed? I think I understand what you mean, it's the margin-right that is applied even if the tag is not part of a list. I'll open a PR to fix that. Cheers, Nico -- You received this message because

[tw5] Re: Add or sum number from fields tiddler by filter

2021-01-24 Thread Eric Shulman
On Sunday, January 24, 2021 at 11:04:35 AM UTC-8 sil...@gmail.com wrote: > To not have link in result I've found this but I wonder if there is a > simpler solution > You can use the "filtered transclusion" syntax directly in the $text widget, like this: Total = ''<$text

Re: [tw5] Re: Tamasha Presentation Plugin [planned for early Feb]

2021-01-24 Thread clutterstack
Beautiful, Mohammad! On Sunday, January 24, 2021 at 2:42:35 PM UTC-5 Mohammad wrote: > Thank you Sylvain, > > I forgot to include the KaTex plugin in the demo. It was fixed. > You can play with font size through Tamasha themes. But please let me know > which font size you prefer on HD

[tw5] Dictionary tiddlers and variables

2021-01-24 Thread History Buff
Hello all, I am using dictionary tiddlers to store each of the individual lines from a genealogical record transcription (like a census, for instance). So far, I have been manually creating each entry in the dictionary tiddlers which is a rather tedious process. I then use a dynamic table to

[tw5] Re: Add or sum number from fields tiddler by filter

2021-01-24 Thread Sylvain Naudin
Hello Eric, Thanks for this, since it's simple than reduce operator. To not have link in result I've found this but I wonder if there is a simpler solution (or make a macro of it to choose its tag for example) : <$set name="time" value={{{ [tag[entretien]get[duree]sum[]] }}}> Total = ''<$text

Re: [tw5] [ANN] Notebook theme v1.3.6 is out!

2021-01-24 Thread Nicolas Petton
Álvaro writes: Hi Álvaro, > Thank you Nicolas. > This theme is great. I had thought to make myself one very similar. Thanks :-) Nico -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails

Re: [tw5] [ANN] Notebook theme v1.3.6 is out!

2021-01-24 Thread Nicolas Petton
Mohammad Rahmani writes: > Hi again, Hi Mohammad, > It seems the issue is with Tiddlywiki itself and not the Notebook theme. > The tag pill has a poor css design. I'll have a look. What in particular do think think is poorly designed? Cheers, Nico -- You received this message because you

Re: [tw5] Re: [ANN] Projectify 0.10.0 is out!

2021-01-24 Thread Nicolas Petton
Maarten writes: > and I just discovered that you solved it in version 0.12..0 with adding the > Subproject tag. My subprojects weren't converted but I've done it manually > now. Thanks, just what I needed! You're welcome! Thanks for making great suggestions :) Cheers, Nico -- You received

[tw5] Re: [good practice] A multi steps IF using filters

2021-01-24 Thread 'Mark S.' via TiddlyWiki
Maybe too literal, but easier to read and extend: \define myfun(x) <$vars u={{{ [enlist[xxx one two three four]allbefore<__x__>count[]] }}} > This is u: <> \end On Sunday, January 24, 2021 at 2:24:58 AM UTC-8 Mohammad wrote: > I tried to implement the below pseudo code in TW 5.1.23 > > if

[tw5] Re: Tiddler title as image name

2021-01-24 Thread TW Tones
Boazter, I am building a resource to help with these issues and others where we commonly get confused. Triggered by this thread I am now developing a section specifically in concatenation. See my resource here in the mean time. I