Posted on 2005-08-02 22:22:52-07 by nkh
Text-Editor-Vip Update
Here are some news for Text-Editor-Vip. I started looking at what needs to be refactored from the WxWindows version of the perl editor I had.

The setup refactoring I did a few months ago seems to be right though a bit complex and It depends on a module that is part of PerlBuildSystem. Tha module must be made autonomous in some way.

The design tries to be simple and keep things separated. Three classes exists (in the design). The app class, the view class and the buffer class. All three have a flexible setup. The view class is what most people would call the editor. Vip will not define a class for the application and only a base class for the view so views can be inplemented in Curses, GTK, ...

The buffer class has been kept to a strict minimum but it can very easily be extended. The implementation now includes an undo facility as well as support for macros.

A test framework is in place and I used it to test insertion and undo.

There are a few design question left but all is going smooth.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.