[Pharo-project] How can I get smart characters in Pharo 1.4?
Hi guys. I cannot live without smart characters or whatever they are called. What I mean is when you select/surround something (a piece of text) and when you press '(' or '[', or whatever opening symbol, it adds both, the opening and the closing one to what you have selected. So...how can I have that in Pharo 1.4 ? Thanks -- Mariano http://marianopeck.wordpress.com
But it works for me in 1.4 Alain On 15/09/2011 16:48, Mariano Martinez Peck wrote:
Hi guys. I cannot live without smart characters or whatever they are called. What I mean is when you select/surround something (a piece of text) and when you press '(' or '[', or whatever opening symbol, it adds both, the opening and the closing one to what you have selected.
So...how can I have that in Pharo 1.4 ?
Thanks
-- Mariano http://marianopeck.wordpress.com
mmmm which image? I am in 14112 and it doesn't work for me :( On Thu, Sep 15, 2011 at 7:42 PM, Alain Plantec <alain.plantec@yahoo.com>wrote:
But it works for me in 1.4 Alain
On 15/09/2011 16:48, Mariano Martinez Peck wrote:
Hi guys. I cannot live without smart characters or whatever they are called. What I mean is when you select/surround something (a piece of text) and when you press '(' or '[', or whatever opening symbol, it adds both, the opening and the closing one to what you have selected.
So...how can I have that in Pharo 1.4 ?
Thanks
-- Mariano http://marianopeck.wordpress.**com <http://marianopeck.wordpress.com>
-- Mariano http://marianopeck.wordpress.com
why do you use 14112? especially in alpha this is good to move close to the edge but not too close :) Stef On Sep 15, 2011, at 7:54 PM, Mariano Martinez Peck wrote:
mmmm which image? I am in 14112 and it doesn't work for me :(
On Thu, Sep 15, 2011 at 7:42 PM, Alain Plantec <alain.plantec@yahoo.com> wrote: But it works for me in 1.4 Alain
On 15/09/2011 16:48, Mariano Martinez Peck wrote: Hi guys. I cannot live without smart characters or whatever they are called. What I mean is when you select/surround something (a piece of text) and when you press '(' or '[', or whatever opening symbol, it adds both, the opening and the closing one to what you have selected.
So...how can I have that in Pharo 1.4 ?
Thanks
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
that's working when you press shift⦠- select text - press shift + [ or '"({ the character will surround the text⦠On 2011-09-15, at 16:48, Mariano Martinez Peck wrote:
Hi guys. I cannot live without smart characters or whatever they are called. What I mean is when you select/surround something (a piece of text) and when you press '(' or '[', or whatever opening symbol, it adds both, the opening and the closing one to what you have selected.
So...how can I have that in Pharo 1.4 ?
Thanks
-- Mariano http://marianopeck.wordpress.com
On Thu, Sep 15, 2011 at 7:55 PM, Camillo Bruni <camillo.bruni@inria.fr>wrote:
that's working when you press shiftâ¦
- select text - press shift + [ or '"({
the character will surround the textâ¦
Still. It does not work. Are you testing in 14112 ?
On 2011-09-15, at 16:48, Mariano Martinez Peck wrote:
Hi guys. I cannot live without smart characters or whatever they are called. What I mean is when you select/surround something (a piece of text) and when you press '(' or '[', or whatever opening symbol, it adds both, the opening and the closing one to what you have selected.
So...how can I have that in Pharo 1.4 ?
Thanks
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
fresh image from jenkins, and it works ;) https://ci.lille.inria.fr/pharo/view/Pharo%201.4/job/Pharo%201.4/lastSuccess... opened workspace entered: asdfasd cmd - a cmd + shift + " result: "asdfasd" so thats working in the latest version, AFAIK it worked always with me On 2011-09-15, at 20:03, Mariano Martinez Peck wrote:
On Thu, Sep 15, 2011 at 7:55 PM, Camillo Bruni <camillo.bruni@inria.fr> wrote: that's working when you press shiftâ¦
- select text - press shift + [ or '"({
the character will surround the textâ¦
Still. It does not work. Are you testing in 14112 ?
On 2011-09-15, at 16:48, Mariano Martinez Peck wrote:
Hi guys. I cannot live without smart characters or whatever they are called. What I mean is when you select/surround something (a piece of text) and when you press '(' or '[', or whatever opening symbol, it adds both, the opening and the closing one to what you have selected.
So...how can I have that in Pharo 1.4 ?
Thanks
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
On Thu, Sep 15, 2011 at 8:29 PM, Camillo Bruni <camillo.bruni@inria.fr>wrote:
fresh image from jenkins, and it works ;)
https://ci.lille.inria.fr/pharo/view/Pharo%201.4/job/Pharo%201.4/lastSuccess...
opened workspace
entered: asdfasd cmd - a cmd + shift + "
I guess you said shift + ", not cmd + shift + "
result: "asdfasd"
so thats working in the latest version, AFAIK it worked always with me
Well. Maybe I am too stupid, but taking exactly the image you mention from Jenkis, I DOES NOT WORK. shift + " or whatever, removes the selected text and lets only the opening symbol- cmd + shift + " just puts a 2. I am the only one? please, tell that no!!
On 2011-09-15, at 20:03, Mariano Martinez Peck wrote:
On Thu, Sep 15, 2011 at 7:55 PM, Camillo Bruni <camillo.bruni@inria.fr>
wrote:
that's working when you press shiftâ¦
- select text - press shift + [ or '"({
the character will surround the textâ¦
Still. It does not work. Are you testing in 14112 ?
On 2011-09-15, at 16:48, Mariano Martinez Peck wrote:
Hi guys. I cannot live without smart characters or whatever they are called. What I mean is when you select/surround something (a piece of text) and when you press '(' or '[', or whatever opening symbol, it adds both, the opening and the closing one to what you have selected.
So...how can I have that in Pharo 1.4 ?
Thanks
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
Well. Maybe I am too stupid, but taking exactly the image you mention from Jenkis, I DOES NOT WORK. shift + " or whatever, removes the selected text and lets only the opening symbol- cmd + shift + " just puts a 2.
then what keyboard layout are you using? I am on OSX with the standard U.S. layout :)
I am the only one? please, tell that no!!
On 2011-09-15, at 20:03, Mariano Martinez Peck wrote:
On Thu, Sep 15, 2011 at 7:55 PM, Camillo Bruni <camillo.bruni@inria.fr> wrote: that's working when you press shiftâ¦
- select text - press shift + [ or '"({
the character will surround the textâ¦
Still. It does not work. Are you testing in 14112 ?
On 2011-09-15, at 16:48, Mariano Martinez Peck wrote:
Hi guys. I cannot live without smart characters or whatever they are called. What I mean is when you select/surround something (a piece of text) and when you press '(' or '[', or whatever opening symbol, it adds both, the opening and the closing one to what you have selected.
So...how can I have that in Pharo 1.4 ?
Thanks
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com
It does *not* work for me either. My setup is Pharo #14140, on Ubuntu Linux 32bits with a US International keyboard layout. When I press `Alt+shift+(' I get a parenthesis. However, when I press "Alt+[" I get the selected output between square brackets (what I expected). Would it be possible that the Shift key (required to press $(, $), and $") deactivates the smart-character feature? With CogVM as follows: $ CogVM -version 3.9-7 #1 Mon Aug 22 17:40:54 CEST 2011 gcc 4.1.2 Croquet Closure Cog VM [CoInterpreter VMMaker-oscog-IgorStasenko.108] Linux pharo-build.lille.inria.fr 2.6.18-194.26.1.el5xen #1 SMP Tue Nov 9 14:13:46 EST 2010 i686 i686 i386 GNU/Linux -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
On Fri, Sep 16, 2011 at 11:02 AM, Damien Cassou <damien.cassou@gmail.com> wrote:
It does *not* work for me either. My setup is Pharo #14140, on Ubuntu Linux 32bits with a US International keyboard layout.
Not working here either. Image updated to #14140 as well, debian testing 64-bit, canadian-french keyboard. CogVM -version 3.9-7 #1 Wed Aug 31 14:50:51 CEST 2011 gcc 4.1.2 Croquet Closure Cog VM [CoInterpreter VMMaker-oscog-IgorStasenko.123] Works fine in Pharo 1.3 #13295, everything else being identical.
so that's an issue with the keyboard input not pharo directly see http://code.google.com/p/pharo/issues/detail?id=3748 and try to figure out what keyboard events you get in for meta + " meta + shift + " ctrl + " ctrl + shift + " alt + " alt + shift + " cause I am sure that they are rather randomly distributed around some sane average... On 2011-09-16, at 12:54, Alexis Parseghian wrote:
On Fri, Sep 16, 2011 at 11:02 AM, Damien Cassou <damien.cassou@gmail.com> wrote:
It does *not* work for me either. My setup is Pharo #14140, on Ubuntu Linux 32bits with a US International keyboard layout.
Not working here either. Image updated to #14140 as well, debian testing 64-bit, canadian-french keyboard.
CogVM -version 3.9-7 #1 Wed Aug 31 14:50:51 CEST 2011 gcc 4.1.2 Croquet Closure Cog VM [CoInterpreter VMMaker-oscog-IgorStasenko.123]
Works fine in Pharo 1.3 #13295, everything else being identical.
On Sun, Sep 18, 2011 at 10:43 PM, Camillo Bruni <camillo.bruni@inria.fr>wrote:
so that's an issue with the keyboard input not pharo directly
see http://code.google.com/p/pharo/issues/detail?id=3748
and try to figure out what keyboard events you get in for
where can I put a Transcript show: to get the results you expect?
meta + " meta + shift + "
ctrl + " ctrl + shift + "
alt + " alt + shift + "
cause I am sure that they are rather randomly distributed around some sane average...
On 2011-09-16, at 12:54, Alexis Parseghian wrote:
On Fri, Sep 16, 2011 at 11:02 AM, Damien Cassou <damien.cassou@gmail.com> wrote:
It does *not* work for me either. My setup is Pharo #14140, on Ubuntu Linux 32bits with a US International keyboard layout.
Not working here either. Image updated to #14140 as well, debian testing 64-bit, canadian-french keyboard.
CogVM -version 3.9-7 #1 Wed Aug 31 14:50:51 CEST 2011 gcc 4.1.2 Croquet Closure Cog VM [CoInterpreter VMMaker-oscog-IgorStasenko.123]
Works fine in Pharo 1.3 #13295, everything else being identical.
-- Mariano http://marianopeck.wordpress.com
see TextEditor >> performCmdActionsWith: aKeyboardEvent shifted: aBoolean return: return | asciiValue actions action| aKeyboardEvent inspect. ⦠and add the inspect line :) On 2011-09-18, at 23:00, Mariano Martinez Peck wrote:
On Sun, Sep 18, 2011 at 10:43 PM, Camillo Bruni <camillo.bruni@inria.fr> wrote: so that's an issue with the keyboard input not pharo directly
see http://code.google.com/p/pharo/issues/detail?id=3748
and try to figure out what keyboard events you get in for
where can I put a Transcript show: to get the results you expect?
meta + " meta + shift + "
ctrl + " ctrl + shift + "
alt + " alt + shift + "
cause I am sure that they are rather randomly distributed around some sane average...
On 2011-09-16, at 12:54, Alexis Parseghian wrote:
On Fri, Sep 16, 2011 at 11:02 AM, Damien Cassou <damien.cassou@gmail.com> wrote:
It does *not* work for me either. My setup is Pharo #14140, on Ubuntu Linux 32bits with a US International keyboard layout.
Not working here either. Image updated to #14140 as well, debian testing 64-bit, canadian-french keyboard.
CogVM -version 3.9-7 #1 Wed Aug 31 14:50:51 CEST 2011 gcc 4.1.2 Croquet Closure Cog VM [CoInterpreter VMMaker-oscog-IgorStasenko.123]
Works fine in Pharo 1.3 #13295, everything else being identical.
-- Mariano http://marianopeck.wordpress.com
On Sun, Sep 18, 2011 at 10:43 PM, Camillo Bruni <camillo.bruni@inria.fr>wrote:
so that's an issue with the keyboard input not pharo directly
see http://code.google.com/p/pharo/issues/detail?id=3748
and try to figure out what keyboard events you get in for
meta + "
[keystroke '<Cmd-2>'] timeStamp: 40653 source: a HandMorph(843055104) windowIndex: nil type: #keystroke buttons: 64 position: 140@32 handler: nil wasHandled: true keyValue: 50 charCode: 50 scanCode: 19
meta + shift + "
[keystroke '<Cmd-2>'] timeStamp: 108637 source: a HandMorph(843055104) windowIndex: nil type: #keystroke buttons: 72 position: 42@8 handler: nil wasHandled: true keyValue: 50 charCode: 50 scanCode: 19
ctrl + "
Nothing
ctrl + shift + "
nothing
alt + "
$@
alt + shift + "
$?
cause I am sure that they are rather randomly distributed around some sane average...
:( Layout: ISO Spanish on a MAC OS 10.6.8
On 2011-09-16, at 12:54, Alexis Parseghian wrote:
On Fri, Sep 16, 2011 at 11:02 AM, Damien Cassou <damien.cassou@gmail.com> wrote:
It does *not* work for me either. My setup is Pharo #14140, on Ubuntu Linux 32bits with a US International keyboard layout.
Not working here either. Image updated to #14140 as well, debian testing 64-bit, canadian-french keyboard.
CogVM -version 3.9-7 #1 Wed Aug 31 14:50:51 CEST 2011 gcc 4.1.2 Croquet Closure Cog VM [CoInterpreter VMMaker-oscog-IgorStasenko.123]
Works fine in Pharo 1.3 #13295, everything else being identical.
-- Mariano http://marianopeck.wordpress.com
On 2011-09-19, at 21:32, Mariano Martinez Peck wrote:
On Sun, Sep 18, 2011 at 10:43 PM, Camillo Bruni <camillo.bruni@inria.fr> wrote: so that's an issue with the keyboard input not pharo directly
see http://code.google.com/p/pharo/issues/detail?id=3748
and try to figure out what keyboard events you get in for
meta + "
[keystroke '<Cmd-2>']
timeStamp: 40653 source: a HandMorph(843055104) windowIndex: nil type: #keystroke buttons: 64 position: 140@32 handler: nil wasHandled: true keyValue: 50 charCode: 50 scanCode: 19
meta + shift + "
[keystroke '<Cmd-2>']
timeStamp: 108637 source: a HandMorph(843055104) windowIndex: nil type: #keystroke buttons: 72 position: 42@8 handler: nil wasHandled: true keyValue: 50 charCode: 50 scanCode: 19
ctrl + "
Nothing
ctrl + shift + "
nothing
alt + "
$@
alt + shift + "
$?
cause I am sure that they are rather randomly distributed around some sane average...
:(
Layout: ISO Spanish on a MAC OS 10.6.8
hmm so the easiest solution for now is to switch to US layout :/ (who uses ISO Spanish for programming anyway :P) otherwise see http://code.google.com/p/pharo/issues/detail?id=4599 cami
On Mon, Sep 19, 2011 at 11:12 PM, Camillo Bruni <camillo.bruni@inria.fr>wrote:
On 2011-09-19, at 21:32, Mariano Martinez Peck wrote:
On Sun, Sep 18, 2011 at 10:43 PM, Camillo Bruni <camillo.bruni@inria.fr>
wrote:
so that's an issue with the keyboard input not pharo directly
it doesn't work either :(
see http://code.google.com/p/pharo/issues/detail?id=3748
and try to figure out what keyboard events you get in for
meta + "
[keystroke '<Cmd-2>']
timeStamp: 40653 source: a HandMorph(843055104) windowIndex: nil type: #keystroke buttons: 64 position: 140@32 handler: nil wasHandled: true keyValue: 50 charCode: 50 scanCode: 19
meta + shift + "
[keystroke '<Cmd-2>']
timeStamp: 108637 source: a HandMorph(843055104) windowIndex: nil type: #keystroke buttons: 72 position: 42@8 handler: nil wasHandled: true keyValue: 50 charCode: 50 scanCode: 19
ctrl + "
Nothing
ctrl + shift + "
nothing
alt + "
$@
alt + shift + "
$?
cause I am sure that they are rather randomly distributed around some
sane average...
:(
Layout: ISO Spanish on a MAC OS 10.6.8
hmm so the easiest solution for now is to switch to US layout :/ (who uses ISO Spanish for programming anyway :P)
otherwise see http://code.google.com/p/pharo/issues/detail?id=4599
cami
-- Mariano http://marianopeck.wordpress.com
Ubuntu, us intl keyboard layout with alt+gr key On Sun, Sep 18, 2011 at 10:43 PM, Camillo Bruni <camillo.bruni@inria.fr> wrote:
meta + "
I get $' (with meta = windows key)
meta + shift + "
I get $" (with meta = windows key)
ctrl + "
timeStamp: 368473 source: a HandMorph(843055104) windowIndex: nil type: #keystroke buttons: 16 position: 283@92 handler: nil wasHandled: true keyValue: 39 charCode: 39 scanCode: 39
ctrl + shift + "
timeStamp: 396125 source: a HandMorph(843055104) windowIndex: nil type: #keystroke buttons: 24 position: 168@20 handler: nil wasHandled: true keyValue: 34 charCode: 34 scanCode: 34
alt + "
timeStamp: 419355 source: a HandMorph(843055104) windowIndex: nil type: #keystroke buttons: 64 position: -34@85 handler: nil wasHandled: true keyValue: 39 charCode: 39 scanCode: 39
alt + shift + "
timeStamp: 79181 source: a HandMorph(843055104) windowIndex: nil type: #keystroke buttons: 72 position: 63@36 handler: nil wasHandled: true keyValue: 34 charCode: 34 scanCode: 34 -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
Image updated to #14156. CogVM -version 3.9-7 #1 Wed Aug 31 14:50:51 CEST 2011 gcc 4.1.2 Croquet Closure Cog VM [CoInterpreter VMMaker-oscog-IgorStasenko.123] Debian wheezy Canadian french keyboard without Windows/Menu keys: " is shift-2, ( is shift-9, ) is shift-0 from the top row [ ] { } are unshifted, accessed with AltCar ' is shift-comma, right of 'M', bottom row. Below: "no transcript" means nothing transcripted but the character appears as typed unless specified otherwise, "no input" means no character appears in workspace when typed. " no transcript Ctrl+" (Ctrl+Shift+2) [keystroke '<Ctrl-">' #keystroke keyValue 34 charCode 34 scanCode 34] Alt+" (Alt+Shift+2) [keystroke '<Cmd-">' #keystroke keyValue 34 charCode 34 scanCode 34] Ctrl+Alt+" (Ctrl+Alt+Shift+2) no transcript ( no transcript Ctrl+( (Ctrl+Shift+9) [keystroke '<Ctrl-(>' #keystroke keyValue 40 charCode 40 scanCode 40] Alt+( (Alt+Shift+9) [keystroke '<Cmd-(>' #keystroke keyValue 40 charCode 40 scanCode 40] Ctrl+Alt+( (Ctrl+Alt+Shift+9) no transcript [ (AltCar+circumflex accent dead key) no transcript Shift+AltCar no transcript, no input Ctrl+AltCar+[ [keystroke '<Ctrl-[>' #keystroke keyValue 27 charCode 91 scanCode 27] no input, invokes menu Alt+AltCar+[ [keystroke '<Cmd-[>' #keystroke keyValue 91 charCode 91 scanCode 91] with smart ] Ctrl+Alt+AltCar+[ [keystroke '<Opt-[>' #keystroke keyValue 27 charCode 91 scanCode 27] no input, invokes menu Ctrl+Alt+Shift+AltCar+[ no transcript, no input ' (Shift+,) no transcript Ctrl+' (Ctrl+Shift+,) [keystroke '<Ctrl-'>' #keystroke keyValue 39 charCode 39 scanCode 39] smart _double_ quotes Alt+' (Alt+Shift+,) [keystroke '<Cmd-'>' #keystroke keyValue 39 charCode 39 scanCode 39] smart _double_ quotes Ctrl+Alt+' (Ctrl+Alt+Shift+,) no transcript { (AltCar+grave accent dead key) no transcript Ctrl+{ [keystroke '<Ctrl-{>' #keystroke keyValue 27 charCode 123 scanCode 27] no input, invokes menu all other { combinations : no input, no transcript Hope this helps.
participants (6)
-
Alain Plantec -
Alexis Parseghian -
Camillo Bruni -
Damien Cassou -
Mariano Martinez Peck -
Stéphane Ducasse