Surrounding text in editors
Hi, 1. When I open a workspace and type Hello in it. Now I select the whole text and hit the $" key to make it a comment. This works, the workspace shows "Hello" on both sides and I can continue to work with my comment. 2. When I open a workspace and type Hello in it. Now I select the whole text and hit the $' key to make it a string. This does not works, the workspace again shows: "Hello" on both sides - which is a comment, but I would have expected a string: 'Hello' Is this a known problem. Is it related to Windows only - can one check on other platforms? Should we open an issue? Seems to work well for brackets and braces by the way: Selecting Hello with an additional $[ key gives correctly [Hello] Selecting Hello with an additional $( key gives correctly (Hello) Thx T.
I believe this is related to your German keyboard, as has been discussed on the list recently. In any case it works for me. On 02 Sep 2014, at 16:53, Torsten Bergmann <astares@gmx.de> wrote:
Hi,
1. When I open a workspace and type
Hello
in it. Now I select the whole text and hit the $" key to make it a comment. This works, the workspace shows
"Hello"
on both sides and I can continue to work with my comment.
2. When I open a workspace and type
Hello
in it. Now I select the whole text and hit the $' key to make it a string. This does not works, the workspace again shows:
"Hello"
on both sides - which is a comment, but I would have expected a string:
'Hello'
Is this a known problem. Is it related to Windows only - can one check on other platforms? Should we open an issue?
Seems to work well for brackets and braces by the way: Selecting Hello with an additional $[ key gives correctly [Hello] Selecting Hello with an additional $( key gives correctly (Hello)
Thx T.
That works for me, however I have issues with selecting text and trying to enclose it in square brackets, It always encloses the text between regular brackets { } Open bracket, open square bracket and caret share the same key in Spanish LA keyboard, square requires shift modifier, caret requires Alt Gr. Regards! Esteban A. Maringolo 2014-09-02 11:53 GMT-03:00 Torsten Bergmann <astares@gmx.de>:
Hi,
1. When I open a workspace and type
Hello
in it. Now I select the whole text and hit the $" key to make it a comment. This works, the workspace shows
"Hello"
on both sides and I can continue to work with my comment.
2. When I open a workspace and type
Hello
in it. Now I select the whole text and hit the $' key to make it a string. This does not works, the workspace again shows:
"Hello"
on both sides - which is a comment, but I would have expected a string:
'Hello'
Is this a known problem. Is it related to Windows only - can one check on other platforms? Should we open an issue?
Seems to work well for brackets and braces by the way: Selecting Hello with an additional $[ key gives correctly [Hello] Selecting Hello with an additional $( key gives correctly (Hello)
Thx T.
Known problem :) http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/2014-August/09960... it is realated to hardcoding keyboard layout in TextEditor>>#shiftEnclose there are already open issues on fogbugz and nicolas proposed solution (I think). 2014-09-02 16:53 GMT+02:00 Torsten Bergmann <astares@gmx.de>:
Hi,
1. When I open a workspace and type
Hello
in it. Now I select the whole text and hit the $" key to make it a comment. This works, the workspace shows
"Hello"
on both sides and I can continue to work with my comment.
2. When I open a workspace and type
Hello
in it. Now I select the whole text and hit the $' key to make it a string. This does not works, the workspace again shows:
"Hello"
on both sides - which is a comment, but I would have expected a string:
'Hello'
Is this a known problem. Is it related to Windows only - can one check on other platforms? Should we open an issue?
Seems to work well for brackets and braces by the way: Selecting Hello with an additional $[ key gives correctly [Hello] Selecting Hello with an additional $( key gives correctly (Hello)
Thx T.
participants (4)
-
Esteban A. Maringolo -
Nicolai Hess -
Sven Van Caekenberghe -
Torsten Bergmann