2009/8/27 Jean-Philippe Bernardy <jeanphilippe.berna...@gmail.com>: > There are a number of things Yi tries to do; I'm wondering which part of the > functionality you're interested in.
Longer term I guess just about everything. I think most Leksah users still use a non GUI editor often. If I am using a terminal I never fire up a GUI to make a small edit to one file (unless I am on a windows machine without cygwin or something). If someone does take the time to fire up a GUI like Leksah they should not find that they have less features. But for now, I think we will just want to make it a usable alternative to GtkSourceView. > There > is also the "keymap" part, which maps arbitrary input events to > editor-level or buffer-level > actions. You may want this in Leksah too, but I'm unsure if you do. To > complicate matters, > keymaps actually change per buffer. I figure we add an onKeyPress for Yi after the Leksah one. That way Yi will receive any key press events not in the Leksah keymaps. This way users just have to remove or change any clashing keymap entries and it should work. For the buffer level actions it might make sense to put an onKeyPress on the widget in question. Alternatively we can work out the active buffer from the IDE state. I am going to modify the IDE.TextEditor code so that uses our IDEM monad (currently uses IO). That way we can add whatever state Yi might need to the Leksah IDE state (perhaps Yi.Editor if it helps). > So, what benefits do you expect from using Yi in Leksah? GtkSourceView is nice, but we could spend a lot of time adding features to it that Yi already has or is going to have. I think top of the list is better support for emacs and vim users. Since Jurgen and I are both mainly users of CUA GUI IDE users, it has not been high on our list of priorities (it would be hard for us to get it right), but it is one of the most common complaints from potential users (though sometimes I wonder if the emacs users just want Leksah to include Tetris). I imagine they have similar problems with Yi, but it must be closer to what they want than Leksah currently is. Also doing this integration should make it easier to add other editors to Leksah. For instance if someone wrote a wysiwyg .lhs editor we could integrate it with Leksah using the same interface. Hamish --~--~---------~--~----~------------~-------~--~----~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---