Interface for other editors (was: vi-mode possible?)

Roberto Alsina ralsina at unl.edu.ar
Tue Dec 21 16:51:25 GMT 1999


On Tue, 21 Dec 1999, ljp wrote:

> 
> > Am Sam, 18 Dez 1999 schrieb Benoit Cerrina:
> >
> > > Actually I agree, I'd like to be able to use vim instead of kwrite as an
> > > editor.
> >
> > > Did any body think about how to implement an interface to other
> > > editors (I  can hear people screeming for emacs support from here).
> >
> > I want to repeat this question, if there was any diskussion about any
> > other editor-modes in kdevelop. Or even, as proposed by Benoit Cerrina,
> > to implement a special editor-interface (which sound kind of upset
> > indeed)?
> >
> > It should be well known, that many programmer´s only feel at home, when
> > they are allowed to use their favorite editor. For me, it would be a
> > crown on kdevelop, if I could use the vi (or it´s best features) in
> > it. I wonder about so many questions concerning uml integration an
> > nobody screaming for "his"/"her" editor...
> 
> I guess the real question should be, HOW to implement the ability to
> interface
> with various 'modes'. It would be nice to be integrate an exterior editor
>  I choose
> emacs, though), but at the moment, I use both emacs and the kdevelop editor,
> and am happy and comfortable, except that I have to 'tell' kdevelop that I
> have
> changed a file.

One (perhaps the easiest) way to integrate a custom editor would be to
make kdevelop create a child emacs or vi or whatever process to edit the
file when the user requests so, and then stat() the file periodically to
check for changes, then reparse it.

The really big problem is, of course, that there is no easy way to make
the class browser force the editor to jump to a class definition, for
instance.

I think this can be done using emacsclient, and in the case of vi, you can
always just start a new vi on the desired location. Of course you will get
the same file open in several editors, but modern editors notice that kind
of thing and prevent you from saving over the changes.

 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  ralsina at unl.edu.ar
 (_Y_.)' ._   ) `._`.  " -.-'   Centro de Telematica
  _..`-'_..-_/ /-'_.'           Universidad Nacional del Litoral
(l)-'' ((i).' ((!.'             Santa Fe - Argentina
                                KDE Developer (MFCH)
Not mad, but bound more than a madman is (Romeo and Juliet, Act I Scene II)





More information about the KDevelop mailing list