[MonoDevelop] SearchBar patch

Jacob Ilsø Christensen jacobilsoe at gmail.com
Tue Sep 26 13:29:21 EDT 2006


Hi.

On 3/27/06, Lluis Sanchez <lluis at ximian.com> wrote:
> Hello,
>
> El dom, 26-03-2006 a las 15:26 +0200, Jacob Ilsø Christensen escribió:
> > Hi.
> >
> > The attached patch adds a search bar to MonoDevelop like the one in
> > e.g. FireFox. The patch is not finished yet, but should be usable
> > enough for feedback. A few comments:
> >
> > * The bar is opened by pressing ctrl+shift+f and closed with escape or
> > the close button.
> >
> > * If this is the way we want it, we should probably phase out the
> > simple search dialogs and add a few more options to the bar.
> >
> > * The SearchBar class is currently nested in
> > SourceEditorDisplayBinding. This will of course be refactored.
>
> Yeah, it needs to. Searching is not limited to the Source Editor. The
> same search infrastructure should be available to search in other
> editors or even in pads (for example, search in an output window).

The SearchBar is now a separate stetic widget, so it can be used elsewhere.

>
> >
> > * Each open document has its own search bar. Do we want this?
>
> I don't think so. Like in FireFox, the search text and options should be
> global, and shouldn't change when you switch documents.

I am not quite sure how to do this. The
MonoDevelop.SourceEditor.Gui.SourceEditorDisplayBinding class is used
as a DisplayBinding for text files. How do I make several instances
share the same SearchBar?

I could add a static field on the SourceEditorDisplayBinding class but
that seems a bit ugly.

Any good ideas?

> >
> > Please try it out and let me know if I should continue working on this thing.
> >
> > /Jacob
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>


More information about the Monodevelop-list mailing list