Re: [cssed-devel] cssed-findinfiles-plugin: some problems
Brought to you by:
iagorubio
From: Iago R. <iag...@hi...> - 2004-09-14 12:50:24
|
On Tue, 2004-09-14 at 12:08, Mich=C3=A8le Garoche wrote: > Le 14 sept. 2004, =C3=A0 10:10, Iago Rubio a =C3=A9crit : > > On Mon, 2004-09-13 at 21:39, Mich=C3=A8le Garoche wrote: > >> Le 13 sept. 2004, =C3=A0 15:08, Iago Rubio a =C3=A9crit : > >> Besides, it will be a nice plus: you can search by selecting a word or > >> by entering a word in the search field, very useful when you want to=20 > >> be > >> sure that a term does not exist in a file for example. > > You can do it right now. If you can't do it, it's a bug. > > Just type something in the search term entry and click "Find". > I only can do it if the base directory is set to the document's path. If it's not, use the menu "In file's base directory". This should set the base dir to the file's one, and search for the selected text. > What I mean here is when using the contextual menu in the document and=20 > 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 ? If so I must add another menu item to the pop menu. Current ones: ->"In current base directory" - search for the selected text on document on the configured search base directory. Changes the text on the search term entry. ->"In file's base directory" - search for the selected text on the current document's base directory. Changes the text on the search term entry and in the base directory entry. Those could go to: Find in files -> Selected text -> "In current base directory" Find in files -> Selected text -> "In file's base directory" And add: ->"Search in file's base directory" - search for the configured search term in this file's base directory. Changes the base directory entry. So the final layout of this pop menu should be something like: Find In Files -> "Search in file's base directory"=20 -> Selected text -> "In current base directory" -> Selected text -> "In file's base directory"=20 Quoted items are action widgets (will respond user's clicks). What do you think about that ?? =09 [snip] > > Does this command line freezes find (in a shell) ? > > find `pwd` -print0 -type f -maxdepth 1 | xargs -0 grep -n term > It seems too, already 10 minutes running, just because in the search=20 > directory there is a pipe, and it freezes at this level. There's a bug here as `find -type -f` should discard named pipes. > It reads ok up to .lyx, then freezes, but the ouput is not very useful: > ... > grep: /Users/michga/.gconf: Operation not permitted > grep: /Users/michga/.gconfd: Operation not permitted Also here as`find -type f` should discard directories. I must test your `find` binary to check why it doesn't works. --=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 |