[tw5] field manipulation, lookup's lists and maths!
I am afraid once more I find myself out of my depth and hope you guy's and gals can help... I have a Tiddler, on that tiddler I have a number of fields. The names of those fields are of the format another.tiddler.name where a tiddler exists called Another Tiddler Name. I am able to reformat another.tiddler.name into Another Tiddler Name through a macro that looks like this; \define replaceFullStopAndCapitalize(text) @@text-transform: capitalize;<$text text={{{ [[$text$]search-replace:gi[.],[ ]] }}} />@@ \end I am able to list the fields using a filter like this "[all[current]fields[]sort[title]] -text -created -modified -tags -title -tmap.id" with a variable which I can then pass to that macro. What I need to do, is get the cost field from those other tiddlers and sum them up... I think it should be possible using the "Formular for TiddlyWiki" Plugin found here https://github.com/EvanBalster/TiddlyWikiFormula The closest I have been able to get is this <$list filter="[all[current]fields[]sort[title]] -text -created -modified -tags -title -tmap.id" variable="listItem"> <$transclude tiddler="<$macrocall $name="replaceFullStopAndCapitalize" text=<>/>" field="cost"/> Which renders as <$transclude tiddler="Another Tiddler Name" field="cost"/> and If I copy/paste that into a normal tiddler, it shows the right value. -- 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.google.com/d/msgid/tiddlywiki/dad1016d-32b8-443b-9fc2-de20996d3a99n%40googlegroups.com.
[tw5] Re: Nested Lists, I think I am missing something.
Thanks! That works! On Wednesday, May 24, 2023 at 6:39:29 PM UTC+1 PMario wrote: > For me this code worked well > > ``` > \define showFields() > > <$list filter="[all[current]fields[]sort[title]] -text" > variable="listItem"> > <> = <$view field=<>/> > > \end > > > <$list filter="[tag[Chapter]]+[sort[]]"> > <> > > > ``` > > Instead of using a macro you could also copy your initial code into the > outer list. [image: test-gg-nested-list.png] > -- 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.google.com/d/msgid/tiddlywiki/ecabbe78-b319-4d38-90b2-0adee8919cfdn%40googlegroups.com.
[tw5] Nested Lists, I think I am missing something.
I am able to list the Fields of a Tiddler when on it using this; <$list filter="[all[current]fields[]sort[title]] -text" variable="listItem"> <> = <$view field=<>/> I am trying to wrap it inside another list such that it does not work with the current tiddler, but instead those in the first list. I know I need to change that filter, but cannot for the life of me work out how. I would definitely want to do it as a nested list because I need to group the fields. My Simple List currently is just <$list filter="[tag[Chapter]]+[sort[]]"> otherListGoesHere I even foolishly tried asking ChatGPT, but its grasp of TiddlyWiki is even worse than mine! -- 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.google.com/d/msgid/tiddlywiki/0421bb99-983c-4ec6-b472-8b5a76697345n%40googlegroups.com.
[tw5] Re: Missing Tiddlers
Thankyou Both!!! After some fighting with the configuration I managed to get exactly what I asked for!! Just have a Crap ton of broken references or non-existent tiddlers to deal with now _sigh_ On Sunday, May 14, 2023 at 10:43:30 AM UTC+1 PMario wrote: > On Saturday, May 13, 2023 at 4:21:18 PM UTC+2 scott@gmail.com wrote: > > > The Relink Plugin [re] does this for the `list` field. If that doesn't > cover your needs, you might be able to look at its implementation to > figure out how it does so. > > > The relink plugin has a lot of configuration options. So IMO it's not > needed to ahve a look at the code. Just carefully read the documentation > and have a closer look about the config options that allow you to search > custom fields for tiddler links. > -- 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.google.com/d/msgid/tiddlywiki/f2600397-95c7-4fc5-a138-d43dfccce73an%40googlegroups.com.
[tw5] Missing Tiddlers
The Missing tiddlers section on the side bar ($:/core/ui/MoreSideBar/Missing) is great, but it seams to only be populated by references in the "text" field of a tiddler. I have a whole host of fields that I am transcluding that have square bracket tiddler's in them that don't exist and no way to know or check that I have not missed any. I have a todo tag and a todo tiddler that I am using to track most of this, so I don't need to change the missing tiddler tiddler (though that might be the easiest way) Does anyone have any suggestions? -- 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.google.com/d/msgid/tiddlywiki/6c222e55-5d46-4c62-af7d-04132b364fcdn%40googlegroups.com.
[tw5] Re: TiddlyServer
OH, and one other thing I found the hard way, turn off the auto save. I found that the constant saving was causing problems and I was much better off with the manual save. And Thankyou Télumire! I didnt know you could do that! On Thursday, May 11, 2023 at 10:12:15 PM UTC+1 Télumire wrote: > And for a better experience using GitHub I suggest you use the external > core setup, that way saving will be very fast (as long as the wiki is not > too big of course): > https://talk.tiddlywiki.org/t/how-to-reduce-the-size-of-your-tiddlywiki/5364 > > On Thursday, 11 May 2023 at 23:09:58 UTC+2 Télumire wrote: > >> FYI you can create a token easily with this link: >> https://github.com/settings/tokens/new?scopes=repo=tw >> >> On Thursday, 11 May 2023 at 15:38:00 UTC+2 Ross Table wrote: >> >>> no, you have to generate a PAT ( >>> https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token), >>> >>> its sort of like a password then on the wiki you have to click the cog and >>> find the github settings and paste it in there along with the github >>> account name and other stuff, that field is then saved locally (I think as >>> a cookie but not sure) so you have to do it the first time you time you try >>> and make a change from that device/browser. (IF you don't have the PAT in, >>> it will "download" a copy to your downloads folder) >>> >>> One thing you can do to limit the risk of the PAT is to create a new >>> github account that has just your tiddlywiki's as this reduces the reach of >>> the PAT and treat it like a password. >>> >>> A PAT will be about this length and contain "random" characters, >>> letters, numbers etc, MIGeMA0GCSqGSIb3DQEBAQUAA4GMADCBiA (please note this >>> is not actually a PAT) >>> >>> It all depends where you want to access it from. From a personal >>> security POV, I would not recommend making an IP and port in your home >>> reachable from anywhere unless you really know exactly what you are doing >>> and the security risks that are involved in doing that. >>> >>> On Thursday, May 11, 2023 at 2:25:44 PM UTC+1 Joan Forn wrote: >>> >>>> Thanks for the fast response, >>>> >>>> I did tried to add a tiddly in your page and was not saved (wich is >>>> nice). ¿Do you have to enter your GitHub password everytime you do want to >>>> save changes? >>>> >>>> I found this solution that works too: >>>> >>>> 1) start a LXC container or VM in your proxmox server. >>>> 2) inside the LXC, type: >>>>2.1) "npm install -g tiddlywiki" >>>>2.2) "ip a" to get the eth0 ip addres of the LXC, in my case >>>> "192.168.4.71" >>>>2.3) "mkdir /home/tiddlywiki" >>>>2.4) "tiddlywiki mywiki --init server" >>>>2.5) "mywiki --listen host=192.168.4.71 port=8080" >>>> 3) tiddlywiky is accesible by typing "192.168.4.71:8080" within any >>>> web browser from a device located in the same LAN >>>> 4) *Optional*: Make "192.168.4.71:8080" reachable to WAN by forwarding >>>> it to your domain via cloudflare tunnel. >>>> >>>> El jueves, 11 de mayo de 2023 a las 13:01:35 UTC+2, Ross Table escribió: >>>> >>>>> I have had great success integrating with github. I purchased a domain >>>>> and have setup subdomains, each of which points to a different wiki that >>>>> I >>>>> am using for something different. There is no hosting fee as its hosted >>>>> on >>>>> github, the down side to this is it is technically public for anyone to >>>>> view. If that works for you I highly recommend it. If you go that route, >>>>> feel free to PM me or checkout the public repo's I have >>>>> https://github.com/aquilaRoss?tab=repositories >>>>> >>>>> This biggest gotcha was main vs master and finding where on github >>>>> they have hidden the PAT generation stuff. >>>>> >>>>> >>>>> On Thursday, May 11, 2023 at 11:20:51 AM UTC+1 Joan Forn wrote: >>>>> >>>>>> Hello everyone, >>>>>> >>>>>> I am looking for some guidance regarding editing tiddlers on my >>>>>> iPhone. I would like to have a similar behavior as Notion, where any >>>>>> edited >>>>>> HTML is automatically synced across all devices and users who have >>>>>> access >>>>>> to the page. >>>>>> >>>>>> Recently, I came across TiddlyServer, which seems promising, but >>>>>> there doesn't seem to be much documentation about it. >>>>>> >>>>>> ¿Any advise me on whether this is possible or any suggestions on how >>>>>> to achieve it? >>>>>> >>>>>> Many 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f3d29555-2eb2-4742-bfa4-854182ef1edan%40googlegroups.com.
[tw5] Re: TiddlyServer
no, you have to generate a PAT (https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token), its sort of like a password then on the wiki you have to click the cog and find the github settings and paste it in there along with the github account name and other stuff, that field is then saved locally (I think as a cookie but not sure) so you have to do it the first time you time you try and make a change from that device/browser. (IF you don't have the PAT in, it will "download" a copy to your downloads folder) One thing you can do to limit the risk of the PAT is to create a new github account that has just your tiddlywiki's as this reduces the reach of the PAT and treat it like a password. A PAT will be about this length and contain "random" characters, letters, numbers etc, MIGeMA0GCSqGSIb3DQEBAQUAA4GMADCBiA (please note this is not actually a PAT) It all depends where you want to access it from. From a personal security POV, I would not recommend making an IP and port in your home reachable from anywhere unless you really know exactly what you are doing and the security risks that are involved in doing that. On Thursday, May 11, 2023 at 2:25:44 PM UTC+1 Joan Forn wrote: > Thanks for the fast response, > > I did tried to add a tiddly in your page and was not saved (wich is nice). > ¿Do you have to enter your GitHub password everytime you do want to save > changes? > > I found this solution that works too: > > 1) start a LXC container or VM in your proxmox server. > 2) inside the LXC, type: >2.1) "npm install -g tiddlywiki" >2.2) "ip a" to get the eth0 ip addres of the LXC, in my case > "192.168.4.71" >2.3) "mkdir /home/tiddlywiki" >2.4) "tiddlywiki mywiki --init server" >2.5) "mywiki --listen host=192.168.4.71 port=8080" > 3) tiddlywiky is accesible by typing "192.168.4.71:8080" within any web > browser from a device located in the same LAN > 4) *Optional*: Make "192.168.4.71:8080" reachable to WAN by forwarding it > to your domain via cloudflare tunnel. > > El jueves, 11 de mayo de 2023 a las 13:01:35 UTC+2, Ross Table escribió: > >> I have had great success integrating with github. I purchased a domain >> and have setup subdomains, each of which points to a different wiki that I >> am using for something different. There is no hosting fee as its hosted on >> github, the down side to this is it is technically public for anyone to >> view. If that works for you I highly recommend it. If you go that route, >> feel free to PM me or checkout the public repo's I have >> https://github.com/aquilaRoss?tab=repositories >> >> This biggest gotcha was main vs master and finding where on github they >> have hidden the PAT generation stuff. >> >> >> On Thursday, May 11, 2023 at 11:20:51 AM UTC+1 Joan Forn wrote: >> >>> Hello everyone, >>> >>> I am looking for some guidance regarding editing tiddlers on my iPhone. >>> I would like to have a similar behavior as Notion, where any edited HTML is >>> automatically synced across all devices and users who have access to the >>> page. >>> >>> Recently, I came across TiddlyServer, which seems promising, but there >>> doesn't seem to be much documentation about it. >>> >>> ¿Any advise me on whether this is possible or any suggestions on how to >>> achieve it? >>> >>> Many 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/dab72912-819c-44f2-baae-51592b51c636n%40googlegroups.com.
[tw5] Re: TiddlyServer
I have had great success integrating with github. I purchased a domain and have setup subdomains, each of which points to a different wiki that I am using for something different. There is no hosting fee as its hosted on github, the down side to this is it is technically public for anyone to view. If that works for you I highly recommend it. If you go that route, feel free to PM me or checkout the public repo's I have https://github.com/aquilaRoss?tab=repositories This biggest gotcha was main vs master and finding where on github they have hidden the PAT generation stuff. On Thursday, May 11, 2023 at 11:20:51 AM UTC+1 Joan Forn wrote: > Hello everyone, > > I am looking for some guidance regarding editing tiddlers on my iPhone. I > would like to have a similar behavior as Notion, where any edited HTML is > automatically synced across all devices and users who have access to the > page. > > Recently, I came across TiddlyServer, which seems promising, but there > doesn't seem to be much documentation about it. > > ¿Any advise me on whether this is possible or any suggestions on how to > achieve it? > > Many 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/21cb8857-ad98-47db-95cc-2ca2a7fdaf4cn%40googlegroups.com.
[tw5] conditional part of a list widget
I am using something like this; <$list filter="[tag[Background]tag{!!title}]+[sort[]]"> <$link><$view field="title"/> <$transclude mode="block" field="text"/> but I don't like the extra hr that it puts on the bottom... Is there a way I can test to see if its not the last item in the list and then hide that using a reveal widget? -- 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.google.com/d/msgid/tiddlywiki/233089e9-a6b7-4f79-b1b3-cc46b47f4607n%40googlegroups.com.
[tw5] Re: Reveal Widget rendering issues.
Thanks, I was afraid that was the answer though I did not know the reason. On Tuesday, May 9, 2023 at 5:43:11 PM UTC+1 Eric Shulman wrote: > Wikitext syntax relies upon a leading blank line to indicate that "block" > mode rendering should be applied to the bullet item. In addition, the > bullet item within the $reveal widget also results in a new containing "ul" > element which includes a margin above/below, resulting in the unwanted > whitespace. > > You can work around this by using HTML syntax instead of wikitext syntax, > like this: > ``` > > some text that goes here before {{!!fieldA}} and some after. > <$reveal type="nomatch" state="!!fieldB" text=""> > some other text thats different to the above {{!!fieldB}} and then > some more after. > > > ``` > > On Tuesday, May 9, 2023 at 8:49:38 AM UTC-7 gamingtab...@gmail.com wrote: > >> If I create a new tiddler, and add two fields, field-a and field-b. >> >> In the tiddler I then use the * notation to create some bullet points. >> >> I add some text before field A, then, use the reveal widget to see if >> field b exists, if it does, I add another "row" to the bullet point list. >> >> If I do this; >> >> * some text that goes here before {{!!field-a}} and some after. >> <$reveal type="nomatch" state="!!field-b" text=""> >> * some other text thats different to the above {{!!field-b}} and then >> some more after. >> >> >> then part within the reveal renders as * not as an actual bullet point. >> but if I do this >> >> * some text that goes here before {{!!field-a}} and some after. >> <$reveal type="nomatch" state="!!field-b" text=""> >> >> * some other text thats different to the above {{!!field-b}} and then >> some more after. >> >> >> Then it renders as a bullet point, but with an CRLF between the two >> points! >> >> How can I get around this problem? >> >> (PS, I found I had the same problem with the !!! notation for header in >> that if it was on the line after the open of the reveal it rendered as !!! >> my text, but if there was a gap then it rendered properly.) >> > -- 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.google.com/d/msgid/tiddlywiki/55c90a57-7e07-4904-a73c-0eaffedd2133n%40googlegroups.com.
[tw5] Reveal Widget rendering issues.
If I create a new tiddler, and add two fields, field-a and field-b. In the tiddler I then use the * notation to create some bullet points. I add some text before field A, then, use the reveal widget to see if field b exists, if it does, I add another "row" to the bullet point list. If I do this; * some text that goes here before {{!!field-a}} and some after. <$reveal type="nomatch" state="!!field-b" text=""> * some other text thats different to the above {{!!field-b}} and then some more after. then part within the reveal renders as * not as an actual bullet point. but if I do this * some text that goes here before {{!!field-a}} and some after. <$reveal type="nomatch" state="!!field-b" text=""> * some other text thats different to the above {{!!field-b}} and then some more after. Then it renders as a bullet point, but with an CRLF between the two points! How can I get around this problem? (PS, I found I had the same problem with the !!! notation for header in that if it was on the line after the open of the reveal it rendered as !!! my text, but if there was a gap then it rendered properly.) -- 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.google.com/d/msgid/tiddlywiki/f31726e3-3360-4274-92bb-0b370742cca0n%40googlegroups.com.
[tw5] Re: [TW5] Save Changes button, Action before saving changes
Thankyou! I think thats going to work! (Thankyou again as In the mean time I had actually found the tiddler for the save button, but, trying to write to $:/state/GMKey BEFORE saving wasn't working, well, that or I was doing something wrong... I was probably doing something wrong!) On Monday, August 22, 2022 at 5:45:47 PM UTC+1 Eric Shulman wrote: > You can prevent a tiddler from being saved in the file by creating a > global macro named `publishFilter()` that removes the specific tiddler > title, like this: > > Create a tiddler (e.g., "MyPublishFilter"), tagged with `$:/tags/Macro`, > containing: > ``` > \define publishFilter() > -[[$:/state/GMKey]] > \end > ``` > The contents of the `publishFilter()` macro are automatically appended to > the `saveTiddlerFilter()` filter definition contained in `$:/core/save/all` > which is then used by `$:/core/templates/tiddlywiki5.html` to determine > which tiddlers will be saved to the TiddlyWiki file. > > Notes: > * Each listed tiddler title should be preceded by a minus sign, so that > those titles are excluded from the file. > * The `publishFilter()` macro can use any valid filter syntax. Thus, in > addition to automatically excluding specific tiddler titles, you can > exclude an entire set of matching titles. For example, if you were to > specify `-[prefix[$:/state]]`, then ALL `$:/state` tiddler would be > excluded from the file when it is saved. > * The `publishFilter()` definition doesn't remove the tiddlers from the > ***currently loaded*** TiddlyWiki... it just prevents those tiddler from > being saved to the file so they won't be there the next time you re-load. > > enjoy, > -e > -- 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.google.com/d/msgid/tiddlywiki/d5d0077d-ded9-4868-8da8-d29b01b373dan%40googlegroups.com.
[tw5] [TW5] Save Changes button, Action before saving changes
I am sucessfully using a tiddler to restrict access to parts of the wiki with selective tagging, reveal and some style sheets but have run into a problem, when I want to type in the "key" its getting saved to a tiddler ($:/state/GMKey). Onto my problem... I would like to try and hook into the start of the save process so I can clear the contents of that tiddler before the save actually happens, if I can do that then I might be able to save temporarily using a set and then put it back afterwards... The only other solution I can think of is to save it somewhere other than $:/state/GMKey like, I know the PAT key for Github saving isn't saved as part of the wiki, but I don't have the first clue where to start digging to find that, or how I could save to a similar location, and how I could then READ from that location in the to control stuff... A slightly older version of what I am playing with can be found here http://gmsandbox.eaglesroost.org/ Select "Ross" and then put in 98631635 and edit mode should then work, what I am looking to do is clear that 98631635 before saving (and restore it after if possible) Thanks in Advance! -- 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.google.com/d/msgid/tiddlywiki/308cf14c-9755-4693-8558-503b86e3cc69n%40googlegroups.com.