[tw5] Re: CSV Import

2019-06-27 Thread TonyM
Mark, I have used the template and saved every tiddler in this case. I had hundreds not thousands and it was quite quick. Yes I am aware of that work around, but hope my Git Hub Request

[tw5] Re: CSV Import

2019-06-27 Thread 'Mark S.' via TiddlyWiki
I've been down this road. Consider whether you actually need a template. You could just add whatever additional fields/lists you need from tm-new-tiddler. You could even iterate over the fields in your template tiddler and add them from there. On Thursday, June 27, 2019 at 5:42:07 PM UTC-7, To

[tw5] Re: CSV Import

2019-06-27 Thread TonyM
*A final issue to bulk create new tiddlers from CSV* *This works however it has the unpleasant need to open every tiddler for edit, and demand I save each.* In the above solution rather than display the key value pairs, I have added a action-sendmessage to create my new tiddlers <$action-sendm

[tw5] Re: CSV Import

2019-06-27 Thread TonyM
For those following wanting a final solution to process csv this is what worked for me \define each-row(row) <$set name=person-tiddler value={{{ [<__row__>split[,]nth[1]removesuffix[:]] }}} > <$set name=first-name value={{{ [<__row__>split[,]nth[2]] }}} > <$set name=surname value={{{ [<__row__>s

[tw5] Re: CSV Import

2019-06-27 Thread 'Mark S.' via TiddlyWiki
Glad I could help ;-) On Thursday, June 27, 2019 at 4:53:27 PM UTC-7, TonyM wrote: > > Mark > > I had changed to use the filter on the set statements > <$set name=person-tiddler > filter="[<__row__>splitbefore[:]removesuffix[:]]" > > <$set name=first-name filter="[<__row__>split[,]nth[2]]" > > Bu

[tw5] Re: CSV Import

2019-06-27 Thread TonyM
Mark I had changed to use the filter on the set statements <$set name=person-tiddler filter="[<__row__>splitbefore[:]removesuffix[:]]" > <$set name=first-name filter="[<__row__>split[,]nth[2]]" > But <__row__> did not work for me here I returned to the {{{ }}} method and used your suggestion <$s

[tw5] Re: CSV Import

2019-06-27 Thread 'Mark S.' via TiddlyWiki
In my test, I'm using a pound sign (#) as the eol. On Thursday, June 27, 2019 at 4:34:14 PM UTC-7, Mark S. wrote: > > I don't know why your approach didn't work, but switching > > [$row$] > > to > > <__row__> > > Seems to fix it. > > It seems like it must be caching [$row$] inside of the triple b

[tw5] Re: CSV Import

2019-06-27 Thread 'Mark S.' via TiddlyWiki
I don't know why your approach didn't work, but switching [$row$] to <__row__> Seems to fix it. It seems like it must be caching [$row$] inside of the triple bracket transclusion. On Thursday, June 27, 2019 at 3:41:07 PM UTC-7, TonyM wrote: > > Mark, > > Thanks, I am using the prerelease a

[tw5] Re: CSV Import

2019-06-27 Thread TonyM
I added it as the value in the last column in the csv because I seemed to have no way to split on new row/line In other apps one would say split[\n] to indicate newline Regards Tony On Friday, June 28, 2019 at 9:24:53 AM UTC+10, Mark S. wrote: > > Where is coming from? > > On Thursday, June 27

[tw5] Re: CSV Import

2019-06-27 Thread TonyM
There is possibly a bug, which I am yet to work Around. I changed the method used in the set statements and and the bug is now more evident <$set name=person-tiddler filter="[splitbefore[:]removesuffix[:]]" > <$set name=first-name filter="[[$row$]split[,]nth[2]]" > The first person-tiddler valu

[tw5] Re: CSV Import

2019-06-27 Thread 'Mark S.' via TiddlyWiki
Where is coming from? On Thursday, June 27, 2019 at 3:41:07 PM UTC-7, TonyM wrote: > > Mark, > > Thanks, I am using the prerelease and split operator already. After a > nights sleep I tried to take another approach and there is clearly > something I do not understand. > > Here is what I am doin

[tw5] Re: CSV Import

2019-06-27 Thread TonyM
I think I found the problem Watch this space Tony On Friday, June 28, 2019 at 8:41:07 AM UTC+10, TonyM wrote: > > Mark, > > Thanks, I am using the prerelease and split operator already. After a > nights sleep I tried to take another approach and there is clearly > something I do not understand

[tw5] Re: CSV Import

2019-06-27 Thread TonyM
Mark, Thanks, I am using the prerelease and split operator already. After a nights sleep I tried to take another approach and there is clearly something I do not understand. Here is what I am doing, - I hope others can use successfully, for processing CSV files, - but only when I resol

[tw5] Re: create a button that mimics the behaviour of "Create a new tiddler tagged with this one"

2019-06-27 Thread 'Mark S.' via TiddlyWiki
Try <$vars pre="[[" suf="]]"> <$button>New tiddler <$action-sendmessage $message="tm-new-tiddler" text='<$transclude tiddler="$:/category">' tags={{{ [addprefixaddsuffix] }}} /> On Thursday, June 27, 2019 at 2:54:29 PM UTC-7, Ankit Mittal wrote: > > Hi, > > I am trying to create a button th

[tw5] create a button that mimics the behaviour of "Create a new tiddler tagged with this one"

2019-06-27 Thread Ankit Mittal
Hi, I am trying to create a button that mimics the behaviour of "Create a new tiddler tagged with this one". I used this <$action-sendmessage $message="tm-new-tiddler" text='<$transclude tiddler="$:/category">' tags={{!!title}} /> which works fine so long as title does not have white space

Re: [tw5] Re: Tree Macro built in core

2019-06-27 Thread 'Mark S.' via TiddlyWiki
You can try this change to tree-node2, which may work as long AS you don't have any entries ending in "XXX" or "YYY". (these are end-of-title markers, which could be made more obscure if necessary). \define tree-node2(prefix,separator: "/") <$list filter="[all[shadows+tiddlers]each[description

Re: [tw5] Re: Tree Macro built in core

2019-06-27 Thread Damon Pritchett
Hey Mark, et. al., I've been using the modified tree macro for quite a while now and am very happy with it. I would like to make another modification to it, but I haven't been able to figure out how to do it yet so am reaching out for hlep. What I would like to do is to have the folders sorted

[tw5] Re: CSV Import

2019-06-27 Thread 'Mark S.' via TiddlyWiki
Hi Tony, The 5.1.20 prerelease has new split operators. You could make your CSV tiddler a data tiddler as you suggested. Navigate through all the indexes, and split the line by the comma. Obviously this will fail if you have any embedded commas, but it should work with "regular" data. -- Mark

[tw5] Re: template for displaying data fields in view mode

2019-06-27 Thread Mohammad
Many thanks! I got it. On Thursday, June 27, 2019 at 6:55:16 AM UTC+4:30, A Gloom wrote: > > Mohammad, > > A .tid had been attached to the "class=--" tiddlers thread, some editing > and formatting added > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki"

[tw5] Re: CSV Import

2019-06-27 Thread TonyM
This was an old request, but I still need to resolve it. - I have built my own macro csv column to fieldname process - But I do not know how to feed a row at a time from my csv/datatiddler tiddler to the macro - I tried to make it look like a data tiddler - full name:,firstname

Re: [tw5] Re: Supressing mysterious/all errormessages (on Firefox mobile) (Feature request?)

2019-06-27 Thread 'Mark S.' via TiddlyWiki
As PMario asked, what add-ons are you using? Two of us have looked at your page without any problems. That seems to suggest that the problem is with your browser. Perhaps a script-rewriter or ad-blocker is causing problems? On Wednesday, June 26, 2019 at 6:56:30 AM UTC-7, Jan wrote: > > Hi Mar

[tw5] Re: CSV Import

2019-06-27 Thread TonyM
I require this once again. Is there a way to use it manually without the drag and drop process which is not working. Regards Tony On Wednesday, March 6, 2019 at 7:20:28 AM UTC+11, Joshua Fontany wrote: > > Hmmm, yah, just tried this. Doesn't seem to work as described anymore. I'd > have to sca

[tw5] Re: Field Values

2019-06-27 Thread TonyM
Only want a list of ingredients? <$list filter="[tag[food]each[ingredient]get[ingredient]]"> <$list filter="[tag[food]get[ingredient]]"> Again untested Regards Tony On Thursday, June 27, 2019 at 9:02:39 PM UTC+10, Chems wrote: > > hey thanks. > > My problem is that it will always display t

[tw5] Re: Field Values

2019-06-27 Thread Chems
I Think I got it with: {{{ [tag[]each[]get[]sort[title]] }}} Ty anyway!! Am Donnerstag, 27. Juni 2019 12:33:22 UTC+2 schrieb Chems: > > Hi, > > I have a bunch of tiddlers all with the same tag with a field called > "ingredient". > Now I want to have a tiddler, which displays the *value* of the

[tw5] Quick Share: Control desktop from TiddlyWiki

2019-06-27 Thread TonyM
Just sharing a minor milestone for me. Windows 10 In a tiddlywiki under TiddlyDesktop, we are permitted to run an look at local files The following runs a batch file to do a networkcheck, various pings and dns lookups etc.. and pipes the output to a text file, named in the tag The Button refr

[tw5] Re: Field Values

2019-06-27 Thread Chems
hey thanks. My problem is that it will always display the name of the tiddler. But I want to display the value of the field. Am Donnerstag, 27. Juni 2019 12:45:58 UTC+2 schrieb TonyM: > > Chems > > Reading a little between the lines I think you need the each operator >

[tw5] Re: Field Values

2019-06-27 Thread TonyM
Chems Reading a little between the lines I think you need the each operator <$list filter="[tag[food]each[ingredient]]"> Above untested Regards Tony On Thursday, June 27, 2019 at 8:33:22 PM UTC+10, Chems wrote: > > Hi, > > I have a bunch of tiddlers

[tw5] Field Values

2019-06-27 Thread Chems
Hi, I have a bunch of tiddlers all with the same tag with a field called "ingredient". Now I want to have a tiddler, which displays the *value* of the "ingredient" from all tiddlers with the tag. It should look like this: Potatoes Carrots ... As I have multiple tiddlers with the same tag, and

Re: [tw5] Re: Blasts From The Past ...

2019-06-27 Thread Alex Hough
are you still working at Stockport college Steve? (or have i got the wrong end of the stick?) Alex On Tue, 25 Jun 2019 at 14:51, Ste Wilson wrote: > I had no idea of that local sheepishness! > > (I'm not from Stockport.. I just worked there) :) > > -- > You received this message because you are

[tw5] Re: Tiddler Rename inhibitor or warning

2019-06-27 Thread TonyM
Mario Good idea. I was thinking of flagging the tiddler with a field. Perhaps I can modify the page template. Its ok if regular behaviour vs n be restored. I will see if I can make a switch or hack we can include on nominated tiddlers. Perhaps rename, delete and edit inhibit should be part of t

Re: [tw5] Re: Supressing mysterious/all errormessages (on Firefox mobile) (Feature request?)

2019-06-27 Thread TonyM
Jan Look like you need to undertake a systematic analysts. Disable a plugin at a time, save reload. Check and stop start up actions, try in safe mode rename tags macro and see if the error still occurs etc... Regards -- You received this message because you are subscribed to the Google Groups

[tw5] Re: Tiddler Rename inhibitor or warning

2019-06-27 Thread PMario
On Thursday, June 27, 2019 at 7:19:20 AM UTC+2, TonyM wrote: ... > *Can anyone suggest * > How we may Inhibit or displaying a warning when about to rename the > tiddler? > Just create an EditTemplate, that checks for existing tiddlers and don't show the text-edit widget, if the tiddler exists.

Re: [tw5] Re: Supressing mysterious/all errormessages (on Firefox mobile) (Feature request?)

2019-06-27 Thread PMario
On Wednesday, June 26, 2019 at 3:56:30 PM UTC+2, Jan wrote: > > Hi Mark, Hi Mario, > the message can be clicked away and you can continue without problems. But > when I reload it is there again. > That is why I would like the message *not to appear at all*, it is no good > publicity if the first