On Thu, Oct 20, 2011 at 4:05 AM, laurent laffont <laurent.laffont@gmail.com>wrote:
On Wed, Oct 19, 2011 at 11:00 PM, Mariano Martinez Peck < marianopeck@gmail.com> wrote:
On Sun, Oct 16, 2011 at 2:49 PM, laurent laffont < laurent.laffont@gmail.com> wrote:
On Sun, Oct 16, 2011 at 12:32 PM, Mariano Martinez Peck < marianopeck@gmail.com> wrote:
Thanks Guille for the whole work :)
Laurent: let me know when I can use TWM properly with this latest version of keymappings.
There's a new (development) version: - package TWM split into several packages - KeyMapping 2.0 - TWM shortcut prefix is now Cmd+r (see TWMKeymapping class>>#shortcuts for default shortcuts. Feel free to adapt and suggests better ones).
Hi Laurent. I find cmd + r not nice because I loose the ability to do cmd + shift + l and cmd + shift + r (tab to left and tab to right).
cmd + r should not conflict with cmd + shift + r , this should be handled by keymapping... Guillermo ?
Well it should not... But the event polled from the image, in mac are the following: If you press *Cmd + a* you get *Cmd + a* If you press *Cmd + Shift + a* you get *Cmd + A *If you press *Ctrl + a* you get *Ctrl + a *If you press *Ctrl + Shift + a* you get *Ctrl + Shift + a* So, I'm not getting right now the shift from the keyEvent :/. And the main problem is that this behavior is different for each platform and sometimes It cannot be hacked to get it working... The right thing to do I think is to fix the event handling at VM side... :/
Now I was thinking, what about providing a setting that let you change just the first part of the shortcuts of TWM (r in this case), otherwise I would need to change all settings ;)
at least we can add a #prefix accessor in TWMKeymapping to change the default at once, and adapt TWMKeymapping>>#shortcuts consequently.
Now I am not sure if we should change this in TWM or try to replace cmd + shift + r with a simple TAB and cmd + shift + l with cmd + shift + tab. The problem wuth TAB so far is that it is used by OCompletion :(
We can also change for Ctrl + r as prefix to be more Emacs-like but IIRC Ctrl shortcut is not well handled on OSX.
Laurent
Any ideas?
Thanks!
- You can load TWM without KeyMapping using: ConfigurationOfTilingWindowManager loadDevelopmentWithoutKeyMapping.
As a side note, this is the configuration I use in my Pharo images:
Gofer it squeaksource: 'TilingWindowManager'; package: 'ConfigurationOfTilingWindowManager'; load. (Smalltalk at:#ConfigurationOfTilingWindowManager) loadDevelopment. (Smalltalk at:#TWMUITheme) beCurrent. TaskbarMorph showTaskbar: false. TasklistMorph keepOpen: true. (Smalltalk at:#TWMBar) perform: #showTWMBar: with: true.
Cheers,
Laurent Laffont
Thanks guys
On Sun, Oct 16, 2011 at 10:11 AM, laurent laffont < laurent.laffont@gmail.com> wrote:
OK so cmd+w is definitely not a good prefix for TWM shortcuts. Is cmd+m better ?
oups Cmd+m not a good idea :) I struggle to find a good prefix.....
Laurent.
So i installed TWM without keybinding but now I cannot open the
settings window because keymappings is not load.
Any solution? (install TWM without keymappings or fixing keymappings)
I've done some fixes and improvements to keymapping, and I've created a 2.0 version where:
- the collisions below are fixed - keymaps can be configured per morph instance too (not only per class, as the former version) - some little improvements and code cleaning
Thanks !
But those things I remarked of TWM should be reviewed :)
Or you can Use twm without keymappings and I'll have no more feedback :(
TWM without Keymapping is not really interesting. I will produce new versions of TWM.
Laurent
thanks!
Thank you :)
Guille
-- Mariano http://marianopeck.wordpress.com
-- Mariano http://marianopeck.wordpress.com