[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 macros.

Regards
Tony

On Saturday, 9 May 2020 08:29:32 UTC+10, Tony K wrote:
>
> 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
>>>
>>>  <$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 1:06:19 AM UTC+3, Mat wrote:

 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/492d63eb-7ce3-4f1a-84bf-3878aaf59c38%40googlegroups.com.


[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
>>
>>  <$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 1:06:19 AM UTC+3, Mat wrote:
>>>
>>> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a5b5a07e-7d23-48c0-80eb-e9c9e1929e9d%40googlegroups.com.


[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" 
> 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 1:06:19 AM UTC+3, Mat wrote:
>>
>> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/00bd1717-0033-49de-b47a-bcb850f67eff%40googlegroups.com.


[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 1:06:19 AM UTC+3, Mat wrote:
>
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0aadfea6-7ad2-4fe2-a743-9e98acd4dfb0%40googlegroups.com.


[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 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/f92fd885-4acc-4080-be68-052f516eb9ab%40googlegroups.com.


[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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c1585815-7311-40eb-955c-94da5b80e3d6%40googlegroups.com.


[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 on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4082ab18-5e98-46b0-9e41-70494b674123%40googlegroups.com.


[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 discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a4f2fb4b-915a-465f-9d81-c93df040d767%40googlegroups.com.