How I learned to love and use auto quotes & parentheses with LC 9 DP11

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How I learned to love and use auto quotes & parentheses with LC 9 DP11

Matthias Rebbe via use-livecode
Maybe I am the last person to know this but if you don't this may be helpful.

I was getting frustrated with the new feature that automatically puts the
end quote when you type the initial  quote.  

It works fine if you are typing the initial quote first and then the text
contained within the quote.
i.e. if I wanted to type myCleverFunction("my string")

when I type

  myCleverFunction(
 
script editor would complete the parentheses  to give you

   myCleverFunction()

with the cursor between the parentheses.  

Then when I type an initial quote and I would get

myCleverFunction("")

with my cursor between the quotes so I could type the text in the quotes. So
that works great.

What would drive me nuts was if I had to go back in a line of script after
it had been typed and add quotes or parentheses around some text already
there.  

If I typed an initial quote I would get this:

 ""put in quotes

Instead of what I wanted:

 "put in quotes

So I would have to delete one of the quotes then put my cursor at the end of
the string and type the quote and again get this.

 "put in quotes""

Again I have to delete one of the quotes.

Then by accident I found how you are actually supposed to do it.  

Select the text  'put in quotes' then type the quote and the quotes will be
put at the beginning and end of the selection.

The same works for open parenthesis '(' and open square bracket '['.  

That saves a keystroke and some mousing around to get the second quote
insertion point over the old way with out the auto complete.

I did a quick search but could not find this in the documentation so thought
I would post that epiphany here.

Happy quoting.

Martin Koob




--
Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: How I learned to love and use auto quotes & parentheses with LC 9 DP11

Matthias Rebbe via use-livecode
One other useful tidbit is that it will skip over the ending quote if you
type it... so when you type “ and get “|”, you can type “text|” and then
the next quote will skip over the automatically added one. (“|” is the
insertion point)
On Sun, Jan 21, 2018 at 8:09 AM Martin Koob via use-livecode <
[hidden email]> wrote:

> Maybe I am the last person to know this but if you don't this may be
> helpful.
>
> I was getting frustrated with the new feature that automatically puts the
> end quote when you type the initial  quote.
>
> It works fine if you are typing the initial quote first and then the text
> contained within the quote.
> i.e. if I wanted to type myCleverFunction("my string")
>
> when I type
>
>   myCleverFunction(
>
> script editor would complete the parentheses  to give you
>
>    myCleverFunction()
>
> with the cursor between the parentheses.
>
> Then when I type an initial quote and I would get
>
> myCleverFunction("")
>
> with my cursor between the quotes so I could type the text in the quotes.
> So
> that works great.
>
> What would drive me nuts was if I had to go back in a line of script after
> it had been typed and add quotes or parentheses around some text already
> there.
>
> If I typed an initial quote I would get this:
>
>  ""put in quotes
>
> Instead of what I wanted:
>
>  "put in quotes
>
> So I would have to delete one of the quotes then put my cursor at the end
> of
> the string and type the quote and again get this.
>
>  "put in quotes""
>
> Again I have to delete one of the quotes.
>
> Then by accident I found how you are actually supposed to do it.
>
> Select the text  'put in quotes' then type the quote and the quotes will be
> put at the beginning and end of the selection.
>
> The same works for open parenthesis '(' and open square bracket '['.
>
> That saves a keystroke and some mousing around to get the second quote
> insertion point over the old way with out the auto complete.
>
> I did a quick search but could not find this in the documentation so
> thought
> I would post that epiphany here.
>
> Happy quoting.
>
> Martin Koob
>
>
>
>
> --
> Sent from:
> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: How I learned to love and use auto quotes & parentheses with LC 9 DP11

Matthias Rebbe via use-livecode
In reply to this post by Matthias Rebbe via use-livecode
Martin,

thanks for this information. Helps me to like this completion option much more.

Matthias




> Am 21.01.2018 um 15:08 schrieb Martin Koob via use-livecode <[hidden email] <mailto:[hidden email]>>:
>
> Maybe I am the last person to know this but if you don't this may be helpful.
>
> I was getting frustrated with the new feature that automatically puts the
> end quote when you type the initial  quote.  
>
> It works fine if you are typing the initial quote first and then the text
> contained within the quote.
> i.e. if I wanted to type myCleverFunction("my string")
>
> when I type
>
>  myCleverFunction(
>
> script editor would complete the parentheses  to give you
>
>   myCleverFunction()
>
> with the cursor between the parentheses.  
>
> Then when I type an initial quote and I would get
>
> myCleverFunction("")
>
> with my cursor between the quotes so I could type the text in the quotes. So
> that works great.
>
> What would drive me nuts was if I had to go back in a line of script after
> it had been typed and add quotes or parentheses around some text already
> there.  
>
> If I typed an initial quote I would get this:
>
> ""put in quotes
>
> Instead of what I wanted:
>
> "put in quotes
>
> So I would have to delete one of the quotes then put my cursor at the end of
> the string and type the quote and again get this.
>
> "put in quotes""
>
> Again I have to delete one of the quotes.
>
> Then by accident I found how you are actually supposed to do it.  
>
> Select the text  'put in quotes' then type the quote and the quotes will be
> put at the beginning and end of the selection.
>
> The same works for open parenthesis '(' and open square bracket '['.  
>
> That saves a keystroke and some mousing around to get the second quote
> insertion point over the old way with out the auto complete.
>
> I did a quick search but could not find this in the documentation so thought
> I would post that epiphany here.
>
> Happy quoting.
>
> Martin Koob
>
>
>
>
> --
> Sent from: http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html <http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html>
>
> _______________________________________________
> use-livecode mailing list
> [hidden email] <mailto:[hidden email]>
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
Reply | Threaded
Open this post in threaded view
|

Re: How I learned to love and use auto quotes & parentheses with LC 9 DP11

Matthias Rebbe via use-livecode
In reply to this post by Matthias Rebbe via use-livecode
Speaking of auto-insertions, is there something in 9dp11 that blocks
cmd-shift-space? A custom insertion I use no longer works.

--
Jacqueline Landman Gay         |     [hidden email]
HyperActive Software           |     http://www.hyperactivesw.com



On January 21, 2018 8:11:09 AM Martin Koob via use-livecode
<[hidden email]> wrote:

> Maybe I am the last person to know this but if you don't this may be helpful.
>
> I was getting frustrated with the new feature that automatically puts the
> end quote when you type the initial  quote.
>
> It works fine if you are typing the initial quote first and then the text
> contained within the quote.
> i.e. if I wanted to type myCleverFunction("my string")
>
> when I type
>
>   myCleverFunction(
>
> script editor would complete the parentheses  to give you
>
>    myCleverFunction()
>
> with the cursor between the parentheses.
>
> Then when I type an initial quote and I would get
>
> myCleverFunction("")
>
> with my cursor between the quotes so I could type the text in the quotes. So
> that works great.
>
> What would drive me nuts was if I had to go back in a line of script after
> it had been typed and add quotes or parentheses around some text already
> there.
>
> If I typed an initial quote I would get this:
>
>  ""put in quotes
>
> Instead of what I wanted:
>
>  "put in quotes
>
> So I would have to delete one of the quotes then put my cursor at the end of
> the string and type the quote and again get this.
>
>  "put in quotes""
>
> Again I have to delete one of the quotes.
>
> Then by accident I found how you are actually supposed to do it.
>
> Select the text  'put in quotes' then type the quote and the quotes will be
> put at the beginning and end of the selection.
>
> The same works for open parenthesis '(' and open square bracket '['.
>
> That saves a keystroke and some mousing around to get the second quote
> insertion point over the old way with out the auto complete.
>
> I did a quick search but could not find this in the documentation so thought
> I would post that epiphany here.
>
> Happy quoting.
>
> Martin Koob
>
>
>
>
> --
> Sent from:
> http://runtime-revolution.278305.n4.nabble.com/Revolution-User-f278306.html
>
> _______________________________________________
> use-livecode mailing list
> [hidden email]
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



_______________________________________________
use-livecode mailing list
[hidden email]
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode