Le 03/12/2012 23:17, Sean P. DeNigris a écrit :
Goubier Thierry wrote
the removal of the global, class-linked maps (it was rejected)... This is the only step missing for your vim shortcuts to work.
Yes!!! That's exactly what was holding me up... From http://forum.world.st/Keymapping-Class-vs-Instance-Targets-tp4639863p4640220... :
What I introduced is kind of what you are asking : - An initialization method in a Morph which adds default maps to the KMDispatcher instance, called #initializeShortcuts:. Its called when the KMDispatcher instance is created. It is used by the focus navigation, which loads the #MorphFocusCtrlNavigation category. But I didn't remember that conversation when I did it :( Thierry
Sean P. DeNigris wrote
Guillermo Polito wrote
- static shortcuts (per class) - dynamic category shortcuts ( you build a category and attach it to an instance) The thing is that these two conflict. If I add a category to a class in the "static shortcuts" (which I consider to be "default shortcuts" - I think that's more useful), and then I want to remove that category for an instance, I can't.
What I want is: each instance gets its own copy of all its maps. If the morph instance doesn't have any per-instance customizations, this can point to the class defaults to save space (but I think this would be premature optimization). However, as soon as the instance differs at all from the class defaults, it /must/ have it's own local copy of all the maps. I don't want to have to override each shortcut of a category attached to the class. I want to detach the category /for just this instance/.
-- View this message in context: http://forum.world.st/Re-Vim-Keys-tp4657381p4657920.html Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
-- Thierry Goubier CEA list Laboratoire des Fondations des Systèmes Temps Réel Embarqués 91191 Gif sur Yvette Cedex France Phone/Fax: +33 (0) 1 69 08 32 92 / 83 95