Re: Wouldn't it be neat...

2016-08-23 Thread Richard Gaskin

Bob Sneidar wrote:

> On Aug 22, 2016, at 16:39 , Roger Guay wrote:
>>
>> Clicking a button should only deselect text when the button's
>> traversalOn property is true.
>
> This is not true for me. I have a field and a popup menu, largely
> because I could not get popup menus to work the way they did in LC6
> (I never used 7). When I select text in the field, then popup the
> menu, it deselects the text in the field. More specifically, it sets
> the insertion point after the selected text.
>
> With traversal on in the popup menu, the field actually seems to lose
> focus, because the insertion point is no longer in the field, and it
> loses the focus border...

I use context menu frequently, so I double-checked this to see if there 
might have been a regression on that.  No luck, or only good luck, 
depending on one's bent - it only works for me.  Try this sample:


http://fourthworld.net/lc/poptest.livecode

One issue may be that in the latest IDE it's no longer possible to set 
the traversalOn from the Inspector for popup menu buttons:


http://quality.livecode.com/show_bug.cgi?id=18253

As the Inspector gets more fleshed out I find myself going back to my 
Props plugin, which shows everything (which may be overwhelming for 
some, but if you need seldom-used properties it can be handy):


http://fourthworld.net/revnet/devolution/4W_Props.rev.gz


> ...BUT... the focusOut message does *NOT* get sent to the field!

Hmmm...bug or feature?

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wouldn't it be neat...

2016-08-23 Thread Bob Sneidar
This is not true for me. I have a field and a popup menu, largely because I 
could not get popup menus to work the way they did in LC6 (I never used 7). 
When I select text in the field, then popup the menu, it deselects the text in 
the field. More specifically, it sets the insertion point after the selected 
text.

With traversal on in the popup menu, the field actually seems to lose focus, 
because the insertion point is no longer in the field, and it loses the focus 
border, BUT... the focusOut message does *NOT* get sent to the field!

Note that this is not a problem to me, it's just that when testing this in the 
hopes I could leverage it, I discovered that it did not work as described above.

This is 8.0.1 on OS X 10.11.

Bob S


On Aug 22, 2016, at 16:39 , Roger Guay mailto:i...@mac.com>> 
wrote:

Clicking a button should only deselect text when the button's traversalOn 
property is true.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wouldn't it be neat...

2016-08-23 Thread Richard Gaskin

Roger Guay wrote:

> What I discovered is that a field (used for another feature) in my
> rTools general catchall plugin butts in and prevents this code from
> seeing the selectedText of the topStack. Indeed, if a paste a field
> in your TextToolBar stack (which I love, BTW), your stack fails as
> well. And the solution . . . wait for it . . . use the ol Richard
> Gaskin maneuver and set the TraversalOn of the field to false.
>
> Thanks again, Richard!

Glad that worked out.  I've made many authoring environments over the 
years, and have come to rely on being able to turn off traversalOn to 
allow tool palettes to work on text selections.  If that fell victim of 
a regression I'd need to know about it ASAP; very glad to hear it didn't.


If it helps, as much as I like the idea of having a property name 
associated with me like a sort of Poirot mystery, the role of 
traversalOn there is understandable once we take a moment to examine 
what it is and how it works:


The traversalOn property (another woefully-named holdover from another 
time - why not simply "traversal", or better yet "focusable"?) allows 
you to traverse controls via the keyboard.


When I was doing Mac-only work the value of this was lost on me, as Mac 
in general is very mouse-dependent.  But as I've spent more time using 
Windows and Linux and watching other such users in action I've come to 
appreciate that many people rely on being able to choose whether to use 
the mouse or stay on the keyboard when doing anything in a window.*


When buttons have traversalOn set to true, we can tab to them just as 
we'd tab between text fields, using the Enter key to trigger them. 
Powerful stuff, esp. with forms as your hands never need to leave the 
home row to reach for the mouse.


But focus is, quite rightly, limited to one control at a time.  This 
allows us to anticipate which control our keyboard actions will affect.


So when a button becomes focused, any focus on other controls is gone. 
That includes any selection in field text.  Think of focus on a button 
being similar to openField in a field.  And just like a field, whether 
you tab into it or click into it, either way the gesture will move focus 
to that object.


While I do believe it can be very useful to support traversal as widely 
as practical, fortunately palette toolbars are a case where users don't 
expect to be able to tab between buttons.  So there we can safely turn 
off traversalOn, and with that text selections remain preserved even 
when the button is clicked.




Side note:

This reminds me of a request for something we see in other programs, 
perhaps even supported in modern OS APIs, but not (yet) built into LiveCode:


Indication of selected text not currently in focus
http://quality.livecode.com/show_bug.cgi?id=3327

While toolbar buttons are easily doable, there are times when we may 
want to have focus on one field while maintaining a visual 
representation of selected state in another, with a means of addressing 
that secondary selection.


For example, consider an HTML editor in which you select a run of text 
and then enter a URL in a toolbar field as the URL to be inserted as a 
link in that selection.


We can work around this by setting (and later clearing) the 
backgroundColor of the selection, but it's a bit non-obvious to work out 
and might benefit from having some means of optionally preserving 
selection when focus is moved to another field.


The trick there is the syntax.  We definitely don't want "the selection" 
or "selectedChunk" to refer to the previous selection, and something 
like "secondarySelection" and "secondarySelectedChunk" sounds insane.


If any of you have suggestions for ways to implement support for 
preserving secondary selection feel free to add them to that enhancement 
request.





* As useful as it is to deliver fully traversable UIs for our Windows 
custoemrs, unfortunately the current implementation of option controls 
does not allow us to support that at this time - see:

http://quality.livecode.com/show_bug.cgi?id=5505
http://quality.livecode.com/show_bug.cgi?id=2650

And for completeness, related:
http://quality.livecode.com/show_bug.cgi?id=13068

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wouldn't it be neat...

2016-08-23 Thread Roger Guay
What I discovered is that a field (used for another feature) in my rTools 
general catchall plugin butts in and prevents this code from seeing the 
selectedText of the topStack. Indeed, if a paste a field in your TextToolBar 
stack (which I love, BTW), your stack fails as well. And the solution . . . 
wait for it . . . use the ol Richard Gaskin maneuver and set the TraversalOn of 
the field to false.

Thanks again, Richard!

Cheers,

Roger



> On Aug 22, 2016, at 9:38 PM, Roger Guay  wrote:
> 
> No, mine is indeed set to palette yet does not work and your’s works just 
> fine. I’ll report back when I figure out why. 
> 
> Thanks for your patience
> 
>> On Aug 22, 2016, at 8:42 PM, Richard Gaskin  
>> wrote:
>> 
>> Roger wrote:
>> 
>>> I take it back. I thought I had it working but alas, not so much.
>>> I can’t make it work for a button in a palette stack (a plugin)
>>> and selectedText from the Script Editor of the topStack. Here is
>>> my button script:
>>> 
>>> on mouseUp
>>> set the defaultstack to the topstack
>>> put the selectedtext into tText
>>> if the first char of tText is not quote then put quote before tText
>>> if the last char of tText is not quote then put quote after tText
>>> put tText into the selectedtext
>>> end mouseUp
>>> 
>>> The traversalOn of this button is indeed unchecked. When I click
>>> the button, the selectedText in the Script Editor goes unhilited,
>>> and nothing else happens. Funny thing is, I could swear I had it
>>> working before my previous post???
>> 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wouldn't it be neat...

2016-08-22 Thread Roger Guay
No, mine is indeed set to palette yet does not work and your’s works just fine. 
I’ll report back when I figure out why. 

Thanks for your patience

> On Aug 22, 2016, at 8:42 PM, Richard Gaskin  
> wrote:
> 
> Roger wrote:
> 
> > I take it back. I thought I had it working but alas, not so much.
> > I can’t make it work for a button in a palette stack (a plugin)
> > and selectedText from the Script Editor of the topStack. Here is
> > my button script:
> >
> > on mouseUp
> > set the defaultstack to the topstack
> > put the selectedtext into tText
> > if the first char of tText is not quote then put quote before tText
> > if the last char of tText is not quote then put quote after tText
> > put tText into the selectedtext
> > end mouseUp
> >
> > The traversalOn of this button is indeed unchecked. When I click
> > the button, the selectedText in the Script Editor goes unhilited,
> > and nothing else happens. Funny thing is, I could swear I had it
> > working before my previous post???
> 
> Maybe you forgot to set the stack back to palette?
> 
> Try this:
> 
> 
> -- 
> Richard Gaskin
> Fourth World Systems
> Software Design and Development for Desktop, Mobile, and Web
> 
> ambassa...@fourthworld.comhttp://www.FourthWorld.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wouldn't it be neat...

2016-08-22 Thread Richard Gaskin

Roger wrote:

> I take it back. I thought I had it working but alas, not so much.
> I can’t make it work for a button in a palette stack (a plugin)
> and selectedText from the Script Editor of the topStack. Here is
> my button script:
>
> on mouseUp
>set the defaultstack to the topstack
>put the selectedtext into tText
>if the first char of tText is not quote then put quote before tText
>if the last char of tText is not quote then put quote after tText
>put tText into the selectedtext
> end mouseUp
>
> The traversalOn of this button is indeed unchecked. When I click
> the button, the selectedText in the Script Editor goes unhilited,
> and nothing else happens. Funny thing is, I could swear I had it
> working before my previous post???

Maybe you forgot to set the stack back to palette?

Try this:


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for Desktop, Mobile, and Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wouldn't it be neat...

2016-08-22 Thread Roger Guay
Nope!


> On Aug 22, 2016, at 7:36 PM, Mike Bonner  wrote:
> 
> does it work if you put it into the selectedchunk instead of the
> selectedtext?
> 
> On Mon, Aug 22, 2016 at 8:22 PM, Roger Guay  wrote:
> 
>> Hi Richard,
>> 
>> I take it back. I thought I had it working but alas, not so much. I can’t
>> make it work for a button in a palette stack (a plugin) and selectedText
>> from the Script Editor of the topStack. Here is my button script:
>> 
>> on mouseUp
>> 
>>set the defaultstack to the topstack
>> 
>>put the selectedtext into tText
>> 
>>if the first char of tText is not quote then put quote before tText
>> 
>>if the last char of tText is not quote then put quote after tText
>> 
>>put tText into the selectedtext
>> 
>> end mouseUp
>> 
>> The traversalOn of this button is indeed unchecked. When I click the
>> button, the selectedText in the Script Editor goes unhilited, and nothing
>> else happens. Funny thing is, I could swear I had it working before my
>> previous post???
>> 
>> Cheers,
>> 
>> Roger
>> 
>> 
>>> On Aug 22, 2016, at 4:39 PM, Roger Guay  wrote:
>>> 
>>> How right you are!  Thanks!
>>> 
>>> 
 On Aug 22, 2016, at 7:39 AM, Richard Gaskin 
>> wrote:
 
 Clicking a button should only deselect text when the button's
>> traversalOn property is true.
 
 If that were not the case it would not be possible to make toolbars
>> that act on text, and such a limitation would be a bug.
>>> 
>>> ___
>>> use-livecode mailing list
>>> use-livecode@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wouldn't it be neat...

2016-08-22 Thread Mike Bonner
does it work if you put it into the selectedchunk instead of the
selectedtext?

On Mon, Aug 22, 2016 at 8:22 PM, Roger Guay  wrote:

> Hi Richard,
>
> I take it back. I thought I had it working but alas, not so much. I can’t
> make it work for a button in a palette stack (a plugin) and selectedText
> from the Script Editor of the topStack. Here is my button script:
>
> on mouseUp
>
> set the defaultstack to the topstack
>
> put the selectedtext into tText
>
> if the first char of tText is not quote then put quote before tText
>
> if the last char of tText is not quote then put quote after tText
>
> put tText into the selectedtext
>
> end mouseUp
>
> The traversalOn of this button is indeed unchecked. When I click the
> button, the selectedText in the Script Editor goes unhilited, and nothing
> else happens. Funny thing is, I could swear I had it working before my
> previous post???
>
> Cheers,
>
> Roger
>
>
> > On Aug 22, 2016, at 4:39 PM, Roger Guay  wrote:
> >
> > How right you are!  Thanks!
> >
> >
> >> On Aug 22, 2016, at 7:39 AM, Richard Gaskin 
> wrote:
> >>
> >> Clicking a button should only deselect text when the button's
> traversalOn property is true.
> >>
> >> If that were not the case it would not be possible to make toolbars
> that act on text, and such a limitation would be a bug.
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wouldn't it be neat...

2016-08-22 Thread Roger Guay
Hi Richard,

I take it back. I thought I had it working but alas, not so much. I can’t make 
it work for a button in a palette stack (a plugin) and selectedText from the 
Script Editor of the topStack. Here is my button script:

on mouseUp

set the defaultstack to the topstack

put the selectedtext into tText

if the first char of tText is not quote then put quote before tText

if the last char of tText is not quote then put quote after tText

put tText into the selectedtext

end mouseUp

The traversalOn of this button is indeed unchecked. When I click the button, 
the selectedText in the Script Editor goes unhilited, and nothing else happens. 
Funny thing is, I could swear I had it working before my previous post???

Cheers,

Roger


> On Aug 22, 2016, at 4:39 PM, Roger Guay  wrote:
> 
> How right you are!  Thanks!
> 
> 
>> On Aug 22, 2016, at 7:39 AM, Richard Gaskin  
>> wrote:
>> 
>> Clicking a button should only deselect text when the button's traversalOn 
>> property is true.
>> 
>> If that were not the case it would not be possible to make toolbars that act 
>> on text, and such a limitation would be a bug.
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wouldn't it be neat...

2016-08-22 Thread Roger Guay
How right you are!  Thanks!


> On Aug 22, 2016, at 7:39 AM, Richard Gaskin  
> wrote:
> 
> Clicking a button should only deselect text when the button's traversalOn 
> property is true.
> 
> If that were not the case it would not be possible to make toolbars that act 
> on text, and such a limitation would be a bug.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wouldn't it be neat...

2016-08-22 Thread Mike Kerner
Add this to a long script editor wishlist.

On Mon, Aug 22, 2016 at 3:07 PM, J. Landman Gay 
wrote:

> On 8/22/2016 1:43 AM, m...@jerrydaniels.com wrote:
>
>> If you use the clipboarddata to alter your scripts, you get undo to work
>> again.
>>
>
> Yeah, though there's a better way to do it that doesn't wipe the user's
> clipboard. But that isn't my work so I didn't include it here. It's all
> moot though now that Monte has integrated the feature into the IDE. Yay!
>
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wouldn't it be neat...

2016-08-22 Thread J. Landman Gay

On 8/22/2016 1:43 AM, m...@jerrydaniels.com wrote:

If you use the clipboarddata to alter your scripts, you get undo to work again.


Yeah, though there's a better way to do it that doesn't wipe the user's 
clipboard. But that isn't my work so I didn't include it here. It's all 
moot though now that Monte has integrated the feature into the IDE. Yay!


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wouldn't it be neat...

2016-08-22 Thread Richard Gaskin

Mike Bonner wrote:

> If you're on a mac, and click a button while text is selected.. does
> it de-select the chunk?  I seem to remember something like this in
> the past, but am not at my mac right now so I can't try it.

Clicking a button should only deselect text when the button's 
traversalOn property is true.


If that were not the case it would not be possible to make toolbars that 
act on text, and such a limitation would be a bug.


--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wouldn't it be neat...

2016-08-21 Thread me
If you use the clipboarddata to alter your scripts, you get undo to work again.

On Aug 22, 2016, 12:53 AM -0500, J. Landman Gay , 
wrote:
> Here's my original, which does mess up "undo", but it's a start. I use
> Command-Shift- to trigger the actions. Cmd-Shift-space, for
> example, picks up the text under the mouse and puts it into the current
> selection. I use that almost exclusively instead of copy/paste to enter
> variable names without typos. Quotes, brackets, and a few other things
> are covered. In the case of quotes and parentheses where there is no
> selection, it places a paired set of characters and moves the insertion
> point between them.
>
> on commandKeyDown whichKey
> if ("editor field" is not in the name of the target and "script" is
> not in the name of the target) \
> or the shiftkey is not down
> then pass commandKeyDown
> switch whichKey
> case quote
> case "'"
> get the selection
> put quote & it & quote into the selection
> if it = "" then
> put the selectedchunk into tSel
> put word 4 of tSel into word 2 of tSel
> put (word 4 of tSel) - 1 into word 4 of tSel
> select tSel
> end if
> break
> case "v" -- paste only plain text
> put the clipboardData["text"] into the selection
> break
> case "9"
> case "0"
> case "("
> case ")"
> get the selection
> put "(" & it & ")" into the selection
> if it = "" then
> put the selectedchunk into tSel
> put word 4 of tSel into word 2 of tSel
> put (word 4 of tSel) - 1 into word 4 of tSel
> select tSel
> end if
> break
> case "["
> case "]"
> case "{"
> case "}"
> get the selection
> put "[" & it & "]" into the selection
> if it = "" then
> put the selectedchunk into tSel
> put word 4 of tSel into word 2 of tSel
> put (word 4 of tSel) - 1 into word 4 of tSel
> select tSel
> end if
> break
> case " " -- scriptPaint
> put the mousetext into the selection
> break
> default
> pass commandKeyDown
> end switch
> setEditorDirty
> end commandKeyDown
>
> private command setEditorDirty -- make the editor know things changed
> type space
> delete char (word 4 of the selectedchunk) of the target
> end setEditorDirty
>
> --
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wouldn't it be neat...

2016-08-21 Thread J. Landman Gay
Here's my original, which does mess up "undo", but it's a start. I use 
Command-Shift- to trigger the actions. Cmd-Shift-space, for 
example, picks up the text under the mouse and puts it into the current 
selection. I use that almost exclusively instead of copy/paste to enter 
variable names without typos. Quotes, brackets, and a few other things 
are covered. In the case of quotes and parentheses where there is no 
selection, it places a paired set of characters and moves the insertion 
point between them.


on commandKeyDown whichKey
  if ("editor field" is not in the name of the target and "script" is 
not in the name of the target) \

or the shiftkey is not down
  then pass commandKeyDown
  switch whichKey
case quote
case "'"
  get the selection
  put quote & it & quote into the selection
  if it = "" then
put the selectedchunk into tSel
put word 4 of tSel into word 2 of tSel
put (word 4 of tSel) - 1 into word 4 of tSel
select tSel
  end if
  break
case "v" -- paste only plain text
  put the clipboardData["text"] into the selection
  break
case "9"
case "0"
case "("
case ")"
  get the selection
  put "(" & it & ")" into the selection
  if it = "" then
put the selectedchunk into tSel
put word 4 of tSel into word 2 of tSel
put (word 4 of tSel) - 1 into word 4 of tSel
select tSel
  end if
  break
case "["
case "]"
case "{"
case "}"
  get the selection
  put "[" & it & "]" into the selection
  if it = "" then
put the selectedchunk into tSel
put word 4 of tSel into word 2 of tSel
put (word 4 of tSel) - 1 into word 4 of tSel
select tSel
  end if
  break
case " " -- scriptPaint
  put the mousetext into the selection
  break
default
  pass commandKeyDown
  end switch
  setEditorDirty
end commandKeyDown

private command setEditorDirty -- make the editor know things changed
  type space
  delete char (word 4 of the selectedchunk) of the target
end setEditorDirty

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wouldn't it be neat...

2016-08-21 Thread Peter Bogdanoff
Yes, it deselects the text AFTER it gets the selectedChunk: char x to z of 
field y, so you could reselect that same text.

Peter Bogdanoff

> On Aug 21, 2016, at 8:35 PM, Roger Guay  wrote:
> 
> Yes, the selected text is deselected when clicking a button on the Mac. Too 
> bad . . . I really like the simplicity of your idea.
> 
> 
>> On Aug 21, 2016, at 4:36 AM, Mike Bonner  wrote:
>> 
>> Do as monty suggested and hilite the chunk you want to quote and click the
>> button.  Though it just popped into my head.. If you're on a mac, and click
>> a button while text is selected.. does it de-select the chunk? 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: wouldn't it be neat...

2016-08-21 Thread Roger Guay
Thanks for this, Peter, I’m going to give it a try…


> On Aug 21, 2016, at 9:26 AM, Peter M. Brigham  wrote:
> 
> Sorry, forgot to include the little utility script q():
> 
> on q tString
>   return quote and tString and quote
> end q
> 
> The full frontscript then is:
> 
> ---
> 
> on controlkeydown whichKey
>  -- put this in a frontscript universally available in LC
>  put the long name of the target into tarName
>  put the shiftkey is down into shK
>  switch whichKey
> case "'" -- put quotes around the selection
>if not shK then pass controlkeydown
>if "field" is not in tarName then pass controlkeydown
>if "revNewScriptEditor" is not in tarName then pass controlkeydown
>-- you could take the above line out if you want this in all LC fields
>get the selection
>put q(it) into the selection
>if it = "" then
>   put the selectedChunk into tSel
>   put word 4 of tSel into word 2 of tSel
>   put (word 4 of tSel) - 1 into word 4 of tSel
>   select tSel
>end if
>break
> case "9"
> case "0" -- put parens around the selection
>if not shK then pass controlkeydown
>if "field" is not in tarName then pass controlkeydown
>if "revNewScriptEditor" is not in tarName then pass controlkeydown
>-- you could take the above line out if you want this in all LC fields
>get the selection
>put "(" & it & ")" into the selection
>if it = "" then
>   put the selectedChunk into tSel
>   put word 4 of tSel into word 2 of tSel
>   put (word 4 of tSel) - 1 into word 4 of tSel
>   select tSel
>end if
>break
> case "["
> case "]" -- put brackets around the selection
>if not shK then pass controlkeydown
>if "field" is not in tarName then pass controlkeydown
>if "revNewScriptEditor" is not in tarName then pass controlkeydown
>-- you could take the above line out if you want this in all LC fields
>get the selection
>put "[" & it & "]" into the selection
>if it = "" then
>   put the selectedChunk into tSel
>   put word 4 of tSel into word 2 of tSel
>   put (word 4 of tSel) - 1 into word 4 of tSel
>   select tSel
>end if
>break
> case " " -- scriptPaint
>if not shK then pass controlkeydown
>if "field" is not in tarName then pass controlkeydown
>if "revNewScriptEditor" is not in tarName then pass controlkeydown
>put the mouseText into the selection
>break
> case "d"
>-- insert date
>put the shiftKey is down into wantLongDate
>insertDate wantLongDate
>break
> case "i" -- getPaint
>if not shK then exit controlkeydown
>if the selobj = "" then
>   answer "Select an image first."
>   exit controlkeydown
>else if word 1 of (the name of the selobj) <> "image" then
>   answer "You must select an image."
>   exit controlkeydown
>end if
>answer file "Choose replacement image:"
>if it = empty then exit to top
>put url ("binfile:" & it) into the selobj
>break
> default
>pass controlkeydown
>  end switch
> end controlkeydown
> 
> on insertDate getLongDate
>  -- control-d inserts short date, control-shift-d inserts long date
>  -- see the controlkeydown handler for implementation
>  -- note: Windows users can implement this with other modifier keys
>  -- put these scripts into a frontscript so it is available anywhere in LC
>  -- requires controlkeydown
> 
>  put the selectedChunk into selCh
>  if selCh = empty then exit insertDate
>  put word -1 of selCh into fldNbr
>  put word 4 of selCh into theCharNbr
>  put the selectedtext into selText
>  put length(selText) into origLength
>  if getLongDate then
> -- long date
> put sr(item 2 to 3 of the long date) into tDate
>  else
> -- short date
> put the short date into tDate
>  end if
>  put tDate into the selectedchunk
>  select after char (theCharNbr + length(tDate) - origLength) of fld fldNbr
> end insertDate
> 
> on q tString
>   return quote and tString and quote
> end q
> 
> ---
> 
> -- Peter
> 
> Peter M. Brigham
> pmb...@gmail.com
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wouldn't it be neat...

2016-08-21 Thread Roger Guay
Yes, the selected text is deselected when clicking a button on the Mac. Too bad 
. . . I really like the simplicity of your idea.


> On Aug 21, 2016, at 4:36 AM, Mike Bonner  wrote:
> 
> Do as monty suggested and hilite the chunk you want to quote and click the
> button.  Though it just popped into my head.. If you're on a mac, and click
> a button while text is selected.. does it de-select the chunk? 

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wouldn't it be neat...

2016-08-21 Thread Dr. Hawkins
On Sat, Aug 20, 2016 at 8:29 PM, Mike Bonner  wrote:

> Made a button with this..
> on mouseUp
>

I'd actually go with popping up a script on mouseDown . . . I have somewhat
more elaborate code from mouseover popups in my application,

on mouseDown btNo

switch

case  (btNo =2) AND (the selectedText is not empty) then

popup button  chooseTextSurround

break
...

end switch

end mouseDown


I actually palette a stack, but that's more for customization and to have a
scrollable list available, as i recall

-- 
Dr. Richard E. Hawkins, Esq.
(702) 508-8462
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: wouldn't it be neat...

2016-08-21 Thread Peter M. Brigham
Sorry, forgot to include the little utility script q():

on q tString
   return quote and tString and quote
end q

The full frontscript then is:

---

on controlkeydown whichKey
  -- put this in a frontscript universally available in LC
  put the long name of the target into tarName
  put the shiftkey is down into shK
  switch whichKey
 case "'" -- put quotes around the selection
if not shK then pass controlkeydown
if "field" is not in tarName then pass controlkeydown
if "revNewScriptEditor" is not in tarName then pass controlkeydown
-- you could take the above line out if you want this in all LC fields
get the selection
put q(it) into the selection
if it = "" then
   put the selectedChunk into tSel
   put word 4 of tSel into word 2 of tSel
   put (word 4 of tSel) - 1 into word 4 of tSel
   select tSel
end if
break
 case "9"
 case "0" -- put parens around the selection
if not shK then pass controlkeydown
if "field" is not in tarName then pass controlkeydown
if "revNewScriptEditor" is not in tarName then pass controlkeydown
-- you could take the above line out if you want this in all LC fields
get the selection
put "(" & it & ")" into the selection
if it = "" then
   put the selectedChunk into tSel
   put word 4 of tSel into word 2 of tSel
   put (word 4 of tSel) - 1 into word 4 of tSel
   select tSel
end if
break
 case "["
 case "]" -- put brackets around the selection
if not shK then pass controlkeydown
if "field" is not in tarName then pass controlkeydown
if "revNewScriptEditor" is not in tarName then pass controlkeydown
-- you could take the above line out if you want this in all LC fields
get the selection
put "[" & it & "]" into the selection
if it = "" then
   put the selectedChunk into tSel
   put word 4 of tSel into word 2 of tSel
   put (word 4 of tSel) - 1 into word 4 of tSel
   select tSel
end if
break
 case " " -- scriptPaint
if not shK then pass controlkeydown
if "field" is not in tarName then pass controlkeydown
if "revNewScriptEditor" is not in tarName then pass controlkeydown
put the mouseText into the selection
break
 case "d"
-- insert date
put the shiftKey is down into wantLongDate
insertDate wantLongDate
break
 case "i" -- getPaint
if not shK then exit controlkeydown
if the selobj = "" then
   answer "Select an image first."
   exit controlkeydown
else if word 1 of (the name of the selobj) <> "image" then
   answer "You must select an image."
   exit controlkeydown
end if
answer file "Choose replacement image:"
if it = empty then exit to top
put url ("binfile:" & it) into the selobj
break
 default
pass controlkeydown
  end switch
end controlkeydown

on insertDate getLongDate
  -- control-d inserts short date, control-shift-d inserts long date
  -- see the controlkeydown handler for implementation
  -- note: Windows users can implement this with other modifier keys
  -- put these scripts into a frontscript so it is available anywhere in LC
  -- requires controlkeydown

  put the selectedChunk into selCh
  if selCh = empty then exit insertDate
  put word -1 of selCh into fldNbr
  put word 4 of selCh into theCharNbr
  put the selectedtext into selText
  put length(selText) into origLength
  if getLongDate then
 -- long date
 put sr(item 2 to 3 of the long date) into tDate
  else
 -- short date
 put the short date into tDate
  end if
  put tDate into the selectedchunk
  select after char (theCharNbr + length(tDate) - origLength) of fld fldNbr
end insertDate

on q tString
   return quote and tString and quote
end q

---

-- Peter

Peter M. Brigham
pmb...@gmail.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Wouldn't it be neat...

2016-08-21 Thread Peter M. Brigham
On Aug 21, 2016, at 10:24 AM, m...@jerrydaniels.com wrote:

> Trapping the commankeydown message is the easiest way to automate quoting. 
> Rather than altering the script field behavior, I'd recommend using a front 
> script. Just make sure you pass the keys you're not using!

Here's my version of Jacques' frontscript. It includes Jacques' "script paint" 
for the script editor (hover over a word and press the key combination, and the 
word hovered over is put into the current selection) — very useful to avoid 
mistyping of variable names. I also incorporated her "getPaint" function 
(select an image in LC, type the key combination, and choose a png or jpg from 
disc and that image will be poured into the selected LC image object). Also, I 
incorporated an insertDate() function.

In my version, all these shortcuts are triggered by a control-option- 
(I work on a Mac), but you could change this easily.

-- Peter

Peter M. Brigham
pmb...@gmail.com

-

on controlkeydown whichKey
   -- put this in a frontscript universally available in LC
   put the long name of the target into tarName
   put the shiftkey is down into shK
   switch whichKey
  case "'" -- put quotes around the selection
 if not shK then pass controlkeydown
 if "field" is not in tarName then pass controlkeydown
 if "revNewScriptEditor" is not in tarName then pass controlkeydown
 -- you could take the above line out if you want this in all LC fields
 get the selection
 put q(it) into the selection
 if it = "" then
put the selectedChunk into tSel
put word 4 of tSel into word 2 of tSel
put (word 4 of tSel) - 1 into word 4 of tSel
select tSel
 end if
 break
  case "9"
  case "0" -- put parens around the selection
 if not shK then pass controlkeydown
 if "field" is not in tarName then pass controlkeydown
 if "revNewScriptEditor" is not in tarName then pass controlkeydown
 -- you could take the above line out if you want this in all LC fields
 get the selection
 put "(" & it & ")" into the selection
 if it = "" then
put the selectedChunk into tSel
put word 4 of tSel into word 2 of tSel
put (word 4 of tSel) - 1 into word 4 of tSel
select tSel
 end if
 break
  case "["
  case "]" -- put brackets around the selection
 if not shK then pass controlkeydown
 if "field" is not in tarName then pass controlkeydown
 if "revNewScriptEditor" is not in tarName then pass controlkeydown
 -- you could take the above line out if you want this in all LC fields
 get the selection
 put "[" & it & "]" into the selection
 if it = "" then
put the selectedChunk into tSel
put word 4 of tSel into word 2 of tSel
put (word 4 of tSel) - 1 into word 4 of tSel
select tSel
 end if
 break
  case " " -- scriptPaint
 if not shK then pass controlkeydown
 if "field" is not in tarName then pass controlkeydown
 if "revNewScriptEditor" is not in tarName then pass controlkeydown
 put the mouseText into the selection
 break
  case "d"
 -- insert date
 put the shiftKey is down into wantLongDate
 insertDate wantLongDate
 break
  case "i" -- getPaint
 if not shK then exit controlkeydown
 if the selobj = "" then
answer "Select an image first."
exit controlkeydown
 else if word 1 of (the name of the selobj) <> "image" then
answer "You must select an image."
exit controlkeydown
 end if
 answer file "Choose replacement image:"
 if it = empty then exit to top
 put url ("binfile:" & it) into the selobj
 break
  default
 pass controlkeydown
   end switch
end controlkeydown

on insertDate getLongDate
   -- control-d inserts short date, control-shift-d inserts long date
   -- see the controlkeydown handler for implementation
   -- note: Windows users can implement this with other modifier keys
   -- put these scripts into a frontscript so it is available anywhere in LC
   -- requires controlkeydown
   
   put the selectedChunk into selCh
   if selCh = empty then exit insertDate
   put word -1 of selCh into fldNbr
   put word 4 of selCh into theCharNbr
   put the selectedtext into selText
   put length(selText) into origLength
   if getLongDate then
  -- long date
  put sr(item 2 to 3 of the long date) into tDate
   else
  -- short date
  put the short date into tDate
   end if
   put tDate into the selectedchunk
   select after char (theCharNbr + length(tDate) - origLength) of fld fldNbr
end insertDate
___
use-livecode mailing list
use-livecode@lists.runrev.

Re: Wouldn't it be neat...

2016-08-21 Thread me
Trapping the commankeydown message is the easiest way to automate quoting. 
Rather than altering the script field behavior, I'd recommend using a front 
script. Just make sure you pass the keys you're not using!

On Aug 21, 2016, 6:37 AM -0500, Mike Bonner , wrote:
> Do as monty suggested and hilite the chunk you want to quote and click the
> button. Though it just popped into my head.. If you're on a mac, and click
> a button while text is selected.. does it de-select the chunk? I seem to
> remember something like this in the past, but am not at my mac right now so
> I can't try it. On windows, just shoving the code into a button and then
> clicking it while text is selected is working fine.
>
> I'll poke around on mac and get it working there once i'm more awake.
>
> On Sat, Aug 20, 2016 at 11:07 PM, Roger Guay  wrote:
>
> > Thanks Jacque, Monty, Peter and Mike.
> >
> > Mike, I tried a similar script in plugin, but I don’t know how to make it
> > interact with the Script Editor. What am I missing?
> >
> >
> >
> > > On Aug 20, 2016, at 8:29 PM, Mike Bonner  wrote:
> > >
> > > I like this idea, so I made a quick and dirty method.
> > >
> > > Made a button with this..
> > > on mouseUp
> > > put the selectedtext into tText
> > > if the first char of tText is not quote then put quote before tText
> > > if the last char of tText is not quote then put quote after tText
> > > put tText into the selectedchunk
> > > end mouseUp
> > >
> > > Did the extra rigamarole for those times when I get one of the quotes in
> > > but forgot the other. If there is already a quote at either end of the
> > > selection, no quote is added to that end. Should be easy to turn it into
> > a
> > > plugin, and assign a key combination to do the quote insert. Thanks for
> > the
> > > idea.
> > >
> > > On Sat, Aug 20, 2016 at 8:47 PM, Monte Goulding  > wrote:
> > >
> > > > Wouldn't it be better if typing quote when you have more than an
> > insertion
> > > > point quoted around the selection?
> > > >
> > > > Sent from my iPhone
> > > >
> > > > > On 21 Aug 2016, at 12:38 PM, Roger Guay  wrote:
> > > > >
> > > > > If one could double-click a word in the script editor and then simply
> > > > click a button to put it in quotes? Has anyone already done this? Yes, I
> > > > know I can do Find and Replace, but this would definitely be the cat’s
> > meow!
> > > >
> > > >
> > > > ___
> > > > use-livecode mailing list
> > > > use-livecode@lists.runrev.com
> > > > Please visit this url to subscribe, unsubscribe and manage your
> > > > subscription preferences:
> > > > http://lists.runrev.com/mailman/listinfo/use-livecode
> > > >
> > > ___
> > > use-livecode mailing list
> > > use-livecode@lists.runrev.com
> > > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wouldn't it be neat...

2016-08-21 Thread Mike Bonner
Do as monty suggested and hilite the chunk you want to quote and click the
button.  Though it just popped into my head.. If you're on a mac, and click
a button while text is selected.. does it de-select the chunk?  I seem to
remember something like this in the past, but am not at my mac right now so
I can't try it.  On windows, just shoving the code into a button and then
clicking it while text is selected is working fine.

I'll poke around on mac and get it working there once i'm more awake.

On Sat, Aug 20, 2016 at 11:07 PM, Roger Guay  wrote:

> Thanks Jacque, Monty, Peter and Mike.
>
> Mike, I tried a similar script in plugin, but I don’t know how to make it
> interact with the Script Editor. What am I missing?
>
>
>
> > On Aug 20, 2016, at 8:29 PM, Mike Bonner  wrote:
> >
> > I like this idea, so I made a quick and dirty method.
> >
> > Made a button with this..
> > on mouseUp
> >   put the selectedtext into tText
> >   if the first char of tText is not quote then put quote before tText
> >   if the last char of tText is not quote then put quote after tText
> >   put tText into the selectedchunk
> > end mouseUp
> >
> > Did the extra rigamarole for those times when I get one of the quotes in
> > but forgot the other.  If there is already a quote at either end of the
> > selection, no quote is added to that end. Should be easy to turn it into
> a
> > plugin, and assign a key combination to do the quote insert. Thanks for
> the
> > idea.
> >
> > On Sat, Aug 20, 2016 at 8:47 PM, Monte Goulding 
> wrote:
> >
> >> Wouldn't it be better if typing quote when you have more than an
> insertion
> >> point quoted around the selection?
> >>
> >> Sent from my iPhone
> >>
> >>> On 21 Aug 2016, at 12:38 PM, Roger Guay  wrote:
> >>>
> >>> If one could double-click a word in the script editor and then simply
> >> click a button to put it in quotes? Has anyone already done this? Yes, I
> >> know I can do Find and Replace, but this would definitely be the cat’s
> meow!
> >>
> >>
> >> ___
> >> use-livecode mailing list
> >> use-livecode@lists.runrev.com
> >> Please visit this url to subscribe, unsubscribe and manage your
> >> subscription preferences:
> >> http://lists.runrev.com/mailman/listinfo/use-livecode
> >>
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wouldn't it be neat...

2016-08-20 Thread Roger Guay
Thanks Jacque, Monty, Peter and Mike.

Mike, I tried a similar script in plugin, but I don’t know how to make it 
interact with the Script Editor. What am I missing?



> On Aug 20, 2016, at 8:29 PM, Mike Bonner  wrote:
> 
> I like this idea, so I made a quick and dirty method.
> 
> Made a button with this..
> on mouseUp
>   put the selectedtext into tText
>   if the first char of tText is not quote then put quote before tText
>   if the last char of tText is not quote then put quote after tText
>   put tText into the selectedchunk
> end mouseUp
> 
> Did the extra rigamarole for those times when I get one of the quotes in
> but forgot the other.  If there is already a quote at either end of the
> selection, no quote is added to that end. Should be easy to turn it into a
> plugin, and assign a key combination to do the quote insert. Thanks for the
> idea.
> 
> On Sat, Aug 20, 2016 at 8:47 PM, Monte Goulding  wrote:
> 
>> Wouldn't it be better if typing quote when you have more than an insertion
>> point quoted around the selection?
>> 
>> Sent from my iPhone
>> 
>>> On 21 Aug 2016, at 12:38 PM, Roger Guay  wrote:
>>> 
>>> If one could double-click a word in the script editor and then simply
>> click a button to put it in quotes? Has anyone already done this? Yes, I
>> know I can do Find and Replace, but this would definitely be the cat’s meow!
>> 
>> 
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wouldn't it be neat...

2016-08-20 Thread Mike Bonner
I like this idea, so I made a quick and dirty method.

Made a button with this..
on mouseUp
   put the selectedtext into tText
   if the first char of tText is not quote then put quote before tText
   if the last char of tText is not quote then put quote after tText
   put tText into the selectedchunk
end mouseUp

Did the extra rigamarole for those times when I get one of the quotes in
but forgot the other.  If there is already a quote at either end of the
selection, no quote is added to that end. Should be easy to turn it into a
plugin, and assign a key combination to do the quote insert. Thanks for the
idea.

On Sat, Aug 20, 2016 at 8:47 PM, Monte Goulding  wrote:

> Wouldn't it be better if typing quote when you have more than an insertion
> point quoted around the selection?
>
> Sent from my iPhone
>
> > On 21 Aug 2016, at 12:38 PM, Roger Guay  wrote:
> >
> > If one could double-click a word in the script editor and then simply
> click a button to put it in quotes? Has anyone already done this? Yes, I
> know I can do Find and Replace, but this would definitely be the cat’s meow!
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wouldn't it be neat...

2016-08-20 Thread Peter Haworth
Thanks to Jacque for allowing me to use her code as the basis of doing this
in lcstackbrowser... But then you have to pay so would be much better in
the script editor as would many other editing features.

I've recently been using NetBeans for html and php script editing and
really like its features in that environment.

On Sat, Aug 20, 2016, 8:04 PM J. Landman Gay 
wrote:

> Yes, and add parentheses, curly brackets and square brackets too. Right now
> I'm doing these with a frontscript, which I can post when I'm back at the
> computer unless Pete does it first. My version screws up undo and his
> doesn't.
>
> But I'd rather have it built into the editor.
>
>
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
>
>
>
> On August 20, 2016 9:48:38 PM Monte Goulding  wrote:
>
> > Wouldn't it be better if typing quote when you have more than an
> insertion
> > point quoted around the selection?
> >
> > Sent from my iPhone
> >
> >> On 21 Aug 2016, at 12:38 PM, Roger Guay  wrote:
> >>
> >> If one could double-click a word in the script editor and then simply
> click
> >> a button to put it in quotes? Has anyone already done this? Yes, I know
> I
> >> can do Find and Replace, but this would definitely be the cat’s meow!
> >
> >
> > ___
> > use-livecode mailing list
> > use-livecode@lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wouldn't it be neat...

2016-08-20 Thread J. Landman Gay
Yes, and add parentheses, curly brackets and square brackets too. Right now 
I'm doing these with a frontscript, which I can post when I'm back at the 
computer unless Pete does it first. My version screws up undo and his doesn't.


But I'd rather have it built into the editor.


Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com



On August 20, 2016 9:48:38 PM Monte Goulding  wrote:

Wouldn't it be better if typing quote when you have more than an insertion 
point quoted around the selection?


Sent from my iPhone


On 21 Aug 2016, at 12:38 PM, Roger Guay  wrote:

If one could double-click a word in the script editor and then simply click 
a button to put it in quotes? Has anyone already done this? Yes, I know I 
can do Find and Replace, but this would definitely be the cat’s meow!



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-livecode




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Wouldn't it be neat...

2016-08-20 Thread Monte Goulding
Wouldn't it be better if typing quote when you have more than an insertion 
point quoted around the selection?

Sent from my iPhone

> On 21 Aug 2016, at 12:38 PM, Roger Guay  wrote:
> 
> If one could double-click a word in the script editor and then simply click a 
> button to put it in quotes? Has anyone already done this? Yes, I know I can 
> do Find and Replace, but this would definitely be the cat’s meow!


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Wouldn't it be neat...

2016-08-20 Thread Roger Guay
If one could double-click a word in the script editor and then simply click a 
button to put it in quotes? Has anyone already done this? Yes, I know I can do 
Find and Replace, but this would definitely be the cat’s meow!

Roger




___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode