On Sat, Apr 19, 2008 at 10:07 AM, Krasimir Angelov <[EMAIL PROTECTED]> wrote: > > Aha. I see the refreshEditor should update everything in the UI to be > in sync with the internal structures in the core. In this case I > propose to add support for general treeviews in the editor. It could > have a structure like this: > > type TreeViews = Map String (Forest Item) > data Item = ItemClass a => Item a > > class ItemClass a where > itemLabel :: a -> String > itemIcon :: a -> Icon > itemSource :: a -> Maybe (FilePath, Line, Col) > > Proposals for better names for Item and ItemClass are welcome. The > idea is that the editor can have any number of trees on the left hand > side with very general content. Some items may have associated source > locations and can be used for navigation. In the concrete case we can > use them to show the Cabal project content. Another tree view can show > the list of currently opened buffers for example. > > Does this make sense?
This makes a lot of sense :) The only thing I doubt is the Icon type... It should be UI-independent, and I'm not sure how to achieve that. -- JP --~--~---------~--~----~------------~-------~--~----~ Yi development mailing list [email protected] http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---
