Right now they are hardcoded here TextEditor class, category: keyboard shortcut tables
For example: TextEditor class>> initializeBasicCmdKeyShortcuts Wouldn't be hard to plug a customized mapping. And then do the same in TextEditor>>dispatchOn: aKeyboardEvent You could make this changes, and later test them easily using NewTextMorph. Fernando On Jul 22, 2010, at 8:59 PM, Max Leske wrote: > I checked Squeak 4.1 basic image (Damien's server didn't let me download the > SqueakDev image). There are no preferences in the preferences browser for > editing shortcuts. The only shortcut I could verify was cmd + -> and cmd + <- > for skipping words (I have that in my list as alt + -> and alt + <-). There > seem to be a couple of other nice shortcuts (e.g. advancing to the next > argument when typing a multi argument message) but I's prefer the basic > shortcuts would work... > > There is an Editor class with two sub classes that has replaced a former > implementation (apparently TextMorphEditor). I couldn't figure out where the > shortcuts are actually defined though. > > Max > > On 22.07.2010, at 20:14, Stéphane Ducasse wrote: > >> I guess that they did that in squeak can you check? >> >> On Jul 22, 2010, at 8:10 PM, Max Leske wrote: >> >>> No I haven't. I'll take a look at it later on. >>> Are you planning to replace Paragraph with Editor? >>> >>> Max >>> >>> >>> On 22.07.2010, at 20:05, Stéphane Ducasse wrote: >>> >>>> What I want is a real way to define, plug a shortcut table. >>>> Max did you check the new Editor class. >>>> >>>> Stef >>>> >>>> >>>>> Hi everyone. >>>>> >>>>> I have no idea what the status is on the editor in pharo and if there are >>>>> any plans to do something to / with it. If there's some resource, could >>>>> you point me to it? >>>>> In the meantime I thought I'd share my impressions with you; doesn't hurt >>>>> at least. >>>>> >>>>> Since I started developing in Pharo I've struggled with the editor, in >>>>> particular with the fact that I need to use the mouse a lot to position >>>>> the cursor which, as all of you know, makes development quite a bit >>>>> slower. >>>>> Before I came to Pharo I used to develop in Eclipse and Eclipse supports >>>>> all shortcuts used inside OS X (and if not you can change the shortcut >>>>> settings). My favorite shortcuts: >>>>> • cmd + -> : go to end of line >>>>> • cmd + <- : go to beginning of line >>>>> • alt + -> : go to end of the current word >>>>> • alt + -> : go to beginning of current word >>>>> • alt + arrow up : switch the line above with the current line (current >>>>> line has line number -1, line above has line number +1) >>>>> • alt + arrow down : switch the line below with the current line >>>>> • cmd + l : delete line (I know this shortcut is used to cancel changes >>>>> at the moment. Still, I haven't found a shortcut yet that deletes a >>>>> single line) >>>>> >>>>> I'd LOVE to see this in Pharo, or at least be able to configure the >>>>> shortcuts myself. I think, being able to change the shortcuts is >>>>> important anyway because each developer has an own style. >>>>> I'd try to come up with a solution myself but I just don't have the time >>>>> at the moment. >>>>> >>>>> Thanks for listening to my yapping :) >>>>> >>>>> Max >>>>> _______________________________________________ >>>>> Pharo-project mailing list >>>>> [email protected] >>>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >>>> >>>> >>>> _______________________________________________ >>>> Pharo-project mailing list >>>> [email protected] >>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >>> >>> >>> _______________________________________________ >>> Pharo-project mailing list >>> [email protected] >>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >> >> >> _______________________________________________ >> Pharo-project mailing list >> [email protected] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
