When did it become a good idea for selected text to be enclosed by () instead of replaced by 9 ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

When did it become a good idea for selected text to be enclosed by () instead of replaced by 9 ?

timrowledge
In trying to see if anything had changed re WaveEditor etc I updated an image to update 16963. When I went to save this image a Squeak5.1-16963… I selected the last thre digits of the prior name (Squeak5.1-16549…) intending to type 963. Imagine my surprise - nay, alarm! - when I got ‘Squeak5.1-16(963) instead.

Oh my, I said to myself, what has Pooh done now.

As best I can work out this is a result of the change in TextEditor>enclose: that added ‘9’ some time ago (and which did not affect me since I normally turn off the annoying enclose stuff in preferences) combined with a more recent change to TextEditor>dispatchOnKeyboardEvent: wherein a use of TextEditor>enclose: was added near the end.

I see two obviously related Preferences for enclosing text. I see this as a dangerous thing, because multiple preferences interacting on the same issue can cause chaos, not to say confusion. And every time a preference is added it is yet another sheaf of potential problems to test.  

So, yes, I can turn it off easily enough. But how could it ever be unsurprising to a user to get a(bc)d instead of the expected a9d ?

tim
--
tim Rowledge; [hidden email]; http://www.rowledge.org/tim
Useful random insult:- Fell out of the family tree.



Reply | Threaded
Open this post in threaded view
|

Re: When did it become a good idea for selected text to be enclosed by () instead of replaced by 9 ?

Christoph Thiede
Old thread, but still up to date. When would you ever expect the 9 key do add
brackets? I struggle with it every day.

What would be wrong with just removing this 9? Or at least introducing a new
preference for that (TextEditor>>#useDigitsToEncloseSelection)?



--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html

Carpe Squeak!
Reply | Threaded
Open this post in threaded view
|

Re: When did it become a good idea for selected text to be enclosed by () instead of replaced by 9 ?

Nicolas Cellier
Indeed, different layouts, different expectations...
Capture d’écran 2019-11-04 à 21.48.02.png
Capture d’écran 2019-11-04 à 21.44.56.png

Le lun. 4 nov. 2019 à 21:14, Christoph Thiede <[hidden email]> a écrit :
Old thread, but still up to date. When would you ever expect the 9 key do add
brackets? I struggle with it every day.

What would be wrong with just removing this 9? Or at least introducing a new
preference for that (TextEditor>>#useDigitsToEncloseSelection)?



--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html



Reply | Threaded
Open this post in threaded view
|

Re: When did it become a good idea for selected text to be enclosed by () instead of replaced by 9 ?

marcel.taeumel
In reply to this post by Christoph Thiede
When would you ever expect the 9 key do add brackets?

Well, for the US/GB layout, I would expect that. :-)


Best,
Marcel

Am 04.11.2019 21:14:51 schrieb Christoph Thiede <[hidden email]>:

Old thread, but still up to date. When would you ever expect the 9 key do add
brackets? I struggle with it every day.

What would be wrong with just removing this 9? Or at least introducing a new
preference for that (TextEditor>>#useDigitsToEncloseSelection)?



--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html



Reply | Threaded
Open this post in threaded view
|

Re: When did it become a good idea for selected text to be enclosed by () instead of replaced by 9 ?

Tobias Pape
Mine is this:



¯\_(ツ)_/¯



On 05.11.2019, at 08:44, Marcel Taeumel <[hidden email]> wrote:

> When would you ever expect the 9 key do add brackets?

Well, for the US/GB layout, I would expect that. :-)



Best,
Marcel
Am 04.11.2019 21:14:51 schrieb Christoph Thiede <[hidden email]>:

Old thread, but still up to date. When would you ever expect the 9 key do add
brackets? I struggle with it every day.

What would be wrong with just removing this 9? Or at least introducing a new
preference for that (TextEditor>>#useDigitsToEncloseSelection)?



--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html






Reply | Threaded
Open this post in threaded view
|

Re: When did it become a good idea for selected text to be enclosed by () instead of replaced by 9 ?

marcel.taeumel
Hmm... it should be sufficient to check for the character code for "(" ... but I suppose there are some hick-ups with the key codes?

Best,
Marcel

Am 05.11.2019 08:55:21 schrieb Tobias Pape <[hidden email]>:

Mine is this:



¯\_(ツ)_/¯



On 05.11.2019, at 08:44, Marcel Taeumel <[hidden email]> wrote:

> When would you ever expect the 9 key do add brackets?

Well, for the US/GB layout, I would expect that. :-)



Best,
Marcel
Am 04.11.2019 21:14:51 schrieb Christoph Thiede <[hidden email]>:

Old thread, but still up to date. When would you ever expect the 9 key do add
brackets? I struggle with it every day.

What would be wrong with just removing this 9? Or at least introducing a new
preference for that (TextEditor>>#useDigitsToEncloseSelection)?



--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html






Reply | Threaded
Open this post in threaded view
|

Re: When did it become a good idea for selected text to be enclosed by () instead of replaced by 9 ?

Christoph Thiede
In reply to this post by marcel.taeumel

Even with respect to the qwerty layout, I would still expect that I have to press Shift + 9 to enclose the selection with brackets ... It's just inconsistent that 8 and 9 behave so totally different. In particular, I am referring to the numeric keypad, where no keyboard layout (I am aware of) has a bracket printed above the 9.


Best,

Christoph



Von: Squeak-dev <[hidden email]> im Auftrag von Taeumel, Marcel
Gesendet: Dienstag, 5. November 2019 08:44:36
An: John Pfersich via Squeak-dev
Betreff: Re: [squeak-dev] When did it become a good idea for selected text to be enclosed by () instead of replaced by 9 ?
 
When would you ever expect the 9 key do add brackets?

Well, for the US/GB layout, I would expect that. :-)

<img onload="InlineImageLoader.GetLoader().Load(this)" naturalheight="152" naturalwidth="413" width="auto" style="user-select: none;" src="https://forum.world.st/attachment/5106652/0/image.png">

Best,
Marcel

Am 04.11.2019 21:14:51 schrieb Christoph Thiede <[hidden email]>:

Old thread, but still up to date. When would you ever expect the 9 key do add
brackets? I struggle with it every day.

What would be wrong with just removing this 9? Or at least introducing a new
preference for that (TextEditor>>#useDigitsToEncloseSelection)?



--
Sent from: http://forum.world.st/Squeak-Dev-f45488.html



Carpe Squeak!