Re: [cssed-devel] cssed-findinfiles-plugin: some problems
Brought to you by:
iagorubio
From: Iago R. <iag...@hi...> - 2004-09-15 08:05:04
|
On Tue, 2004-09-14 at 22:25, Mich=C3=A8le Garoche wrote: > Le 14 sept. 2004, =C3=A0 22:17, Iago Rubio a =C3=A9crit : > > On Tue, 2004-09-14 at 17:11, Mich=C3=A8le Garoche wrote: > >> Le 14 sept. 2004, =C3=A0 14:50, Iago Rubio a =C3=A9crit : > >>>> What I mean here is when using the contextual menu in the document=20 > >>>> and > >>>> the search in file base's. > >>> Sorry but I'm misunderstunding you :) > >>> What you want is to search a yet used term - so in the search term > >>> entry > >>> - in the current file's base directory, isn't it ? > >> Not exactly, I want to be able to search in the current document with > >> the search term given in the search term entry in the bottom panel. > > Mostly a task for the find dialog, isn't it ? > Yes, exactly. This dialog must be updated. Right now it only searches from caret position to end of document. The bits to search backwards are in place so I must update it.=20 > >>> If so I must add another menu item to the pop menu. > > [snip] > >>> What do you think about that ?? > >> This is another option, but it is not the same as I thought of. Maybe > >> it is more related to quicksearch plugin, now that I think about it. > > Yes, we could add a pop menu entry for the quickserch plugin. > Yes, maybe it's clearer. Will take a try then. > >> What do you think if we restrict to maxdepth=3D1 for Darwin? Otherwise= =20 > >> it > >> will take ages before we can have something functional if ever. > > We can easily do it by hidding all the depth related widgets, and a > > couple of #ifdef. > > May be we could limit maxdepth meanwhile we don't find a better > > solution, and go for the release, > > The we could have time to further investigate those problems. > Yes, I think so, but don't impede other systems to use the most of it,=20 > just restrict it on systems where there are problems. And as find is bogus there, what about egrep. We can avoid maxdepth and set recursive or not. Non recursive: egrep -in term Recursive: egrep -irn term Does it works in your system ? > And while you're at release step, did you check the changes I've made=20 > to quicksearch? All is ok, and neat :) > And I'm also finishing a plugin for the doc, the interface works fine=20 > (load, unload of a new item in the plugin menu), now I wonder how to=20 > open a browser, I don't want to use netscape or gtk-doc, but more a=20 > default as dillo and then have a preferences where to change the=20 > browser, i.e. Safari for example as a default on Mac, then if the user=20 > prefers Opera, Mozilla, etc..., he can change it, as in gimp for=20 > example. In linux there used to be a script called htmlview that defauts to the preferred browser in the system. In fact it searches among a bunch of browsers checking the environment. But I think I must to put an entry in the configuration file asking for a browser as cssed needs it to show the help. May be I also should wrap a function in the plugins API called open_in_default_browser() to make it avaiable to all plugins. Of course those bits can be on the plugin cose. If the problem is to open the browser from the plugin, just use g_spanw_command_line_async() and that's all. > I'm about to love coding with you in C. Happy to know that. I was wondering if the plugable interface would be use by anyone but me :) --=20 Iago Rubio =20 - Home page * http://www.iagorubio.com=20 - Last project * http://cssed.sourceforge.net =20 - GPG Keyserv * pgp.rediris.es id=3D0x909BD4DD |