Integration with other features of Gedit

Tobias
2009-12-06
2013-04-24
  • Tobias
    Tobias
    2009-12-06

    I have been wondering about this for a long time. So now I have to ask.

    You implemented a home-grown solution for snippets and for completion. This seems redundant as there has been a very capable Snippets plugin in Gedit for a while. Also – at least since recently – there is a seemingly very capable completion system in gtksourceview.

    Do you have a rationale for implementing these two from scratch?
    Now that cross-plugin interoperation is possible. Will you consider making use of these facilities to get rid of redundancy? Is it because you take old versions into account?

    cf:

    - http://blogs.gnome.org/jessevdk/2009/12/06/about-snippets/
    - http://blogs.gnome.org/nacho/2009/12/05/news-on-geditgtksourceview/

     
  • Hi Tobias,

    you're right, I should definitely switch to the gedit snippet implementation and GtkSourceCompletion. One issue is (or was) that those features are quite recent and I wanted to wait for the APIs to become stable (at least for completion) and yes, I'd like to support old versions as long as possible. The other issue is that switching to other people's implementation always means a lot of work and time - in short: it works, so I don't touch it ;-) but I'm planning to switch in the long time.

    Michael

     
  • Tobias
    Tobias
    2009-12-22

    I see. But it’s also an aspect that once you use the official implementation you can rely on them to maintain them and concentrate on other issues. It would make your effort simpler in the long run, I guess.

    One bad side effect right now is that the plugins both react to <Control><Space> and they both open their popups. Confusing.