[tw5] Re: trim whitespace at beginning and end of a variable

2020-05-08 Thread TonyM
Thanks Saq, Hard to code on ones mobile; Tony K The triple braces and trim and other methods to handle strings in a filter is one of the best ways because unlike other methods it allows you to transform the input to a parameter after its "=" sign, without reverting to other variables or

[tw5] Re: trim whitespace at beginning and end of a variable

2020-05-08 Thread Tony K
wow :D man you are amazing, been banging my head for like 2 hrs thanks On Saturday, May 9, 2020 at 1:22:07 AM UTC+3, Saq Imtiaz wrote: > > title={{{ [{$:/temp/test!!newEntry}trim[]] }}} > > On Saturday, May 9, 2020 at 12:17:21 AM UTC+2, Tony K wrote: >> >> the code is really simple >> >>

[tw5] Re: trim whitespace at beginning and end of a variable

2020-05-08 Thread Saq Imtiaz
title={{{ [{$:/temp/test!!newEntry}trim[]] }}} On Saturday, May 9, 2020 at 12:17:21 AM UTC+2, Tony K wrote: > > the code is really simple > > <$edit-text tag=input tiddler="$:/temp/test" field="newEntry" /> > <$button> > <$action-sendmessage $message="tm-new-tiddler" >

[tw5] Re: trim whitespace at beginning and end of a variable

2020-05-08 Thread Tony K
the code is really simple <$edit-text tag=input tiddler="$:/temp/test" field="newEntry" /> <$button> <$action-sendmessage $message="tm-new-tiddler" title={{$:/temp/test!!newEntry}} /> New Tiddler all i want is ignore the space I might add in the input field On Saturday, May 9, 2020 at

[tw5] Re: trim whitespace at beginning and end of a variable

2020-05-08 Thread TonyM
Tony Best you share some code for us to look at. Try and replicate on tiddlywiki.com It can all depend how you reference the value. Of you set a variable to a text reference it should work but using triple braces and trim if needed. Regards Tony -- You received this message because you are

[tw5] Re: trim whitespace at beginning and end of a variable

2020-05-08 Thread Mat
Could you put up a demo, e.g at tiddlyspot because that "ought to work". <:-) -- 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

[tw5] Re: trim whitespace at beginning and end of a variable

2020-05-08 Thread Tony K
I tried it didn't work  dunno what I am missing -- 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

[tw5] Re: trim whitespace at beginning and end of a variable

2020-05-08 Thread Mat
https://tiddlywiki.com/prerelease/#trim%20Operator <:-) -- 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