[MonoDevelop] Planning MonoDevelop 1.0
Lluis Sanchez
lluis at ximian.com
Thu Nov 30 08:02:51 EST 2006
El dj 23 de 11 del 2006 a les 00:33 -0600, en/na Hector E. Gomez Morales
va escriure:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> HI:
>
> I plan to work in the configurable key bindings but I dont think It
> can be in time for 1.0 , first I have to get familiar with Monodevelop
> internals. Maybe I can help in the meantime with audit to the core
> API at the same time I am learning it.
>
> Any docs that can get me up to speed to implement the configurable key
> bindings or any design tip is welcome.
There isn't documentation about the internals of the MD command system.
In any case, I think it's not overly difficult to implement. The class
CommandManager holds a list of all commands registered in MD. Here are
some hints:
* Add support in MonoDevelop.Core.Gui.CommandService for reading/writing
key bindings from/to an xml file. This file would store
command_id/accelerator pairs.
* Create a dialog that shows a list of all commands and allows selecting
one an change the accelerator. After changing the accelerators, the new
accelerator configuration would be saved to a file in
~/.config/MonoDevelop.
* The key bindings config file would only include accelerators which are
different from the default. You'll need to add a new property to Command
to hold the default accelerator (loaded when the command is created).
* It would be nice to allow selecting between several stock key binding
configurations. For example Visual Studio, Eclipse, etc. We would have a
file for every configuration.
I hope that helps.
Lluis.
More information about the Monodevelop-list
mailing list