Re: [gedit-list] GtkSourceView Popup
- From: perriman <chuchiperriman gmail com>
- To: Paolo Maggi <paolo maggi gmail com>
- Cc: gedit-list gnome org
- Subject: Re: [gedit-list] GtkSourceView Popup
- Date: Sat, 17 Mar 2007 11:29:12 +0100
Thanks Paolo,
I will study and analize the design of the framework and when i finish
it then i make you knows.
Regards,
Chuchi
El s� 17-03-2007 a las 11:20 +0100, Paolo Maggi escribi� Hi Chuchi,
> I thinks that this feature would be a very nice addition to gedit and
> gtksourceview.
>
> I think we need a "autocompletion" framework that various autocompletion
> sources can use to suggest autocompletion items.
>
> I think we need an interface "AutocompletionSource" that the various
> autocompletion sources must implement.
>
> An autocompletion source registers itself with the document (or may be
> with the view, I still need to figure this point). When the document (or
> view) needs to obtain a list of possible autocompletion items, it
> queries all the autocompletion sources to build a list (note that we
> need some way to prioritize items).
>
> If the list is longer than one, then an autocompletion popup is shown to
> the user.
>
> I suggest you to first try to design such framework and post the design
> here for discussion.
>
> Then we will figure how to implement it in such a way that will allow it
> to be first included in gedit and then, when it will be mature, to be
> moved to gtksourceview.
>
> Ciao,
> Paolo
>
>
> On Sat, 2007-03-17 at 10:49 +0100, perriman wrote:
> > Hi all!!
> >
> > I'm thinking in develop an autocompletion popup for GtkSourceView
> > (Perhaps GtkTextView). The idea is develop a popup that you can get it
> > various "loader" from externals application that provide it the
> > autocompletion items. There are two autocompletion types:
> >
> > 1.- Automatic: Show automaitic autocompletion when the user writes three
> > letters. This is util for C symbols, python function names etc.
> >
> > 2.- Manual autocompletion: The user press control+Return and we show the
> > popup. This is util for snippets etc.
> >
> > There are two autocompletion ways:
> >
> > 1.- Get autocompletion items when we show the popup and the listeners or
> > loaders filter its content before show the popup.
> >
> > 2.- Get autocompletion all items when the loader is asigned to the
> > GtkSourceViewPopup, save the items in memory and the popup filter the
> > items when popup is shown.
> >
> >
> > What do you think about??
> >
> > I'm trying to analize this GtkSourceView assistant to make it usable for
> > all applications and make easy to add new "loaders" to this.
> >
> > Regards,
> > Chuchi
> >
> > _______________________________________________
> > gedit-list mailing list
> > gedit-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gedit-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]