On Tue, 19 Oct 2010 10:39:42 -0400 Vineet Jain vinjvinj@gmail.com wrote:
- I use find in files quite often across a large nested source tree.
One of the problem with the current find in files process is that the default behavior is to search in the current folder. Almost in most cases, I want to search at the project root. It would be great if geany could remember the last entry in the find in files an not update the directory based on which dir you are in.
Preferences: General: Miscellaneous: Search: "Use the current file's directory for Find in Files"
- Also the default behavior for the grep is to search in all files.
Normally, I would like to search just in *.py files. I've tried --include and can't seem to get it working.
grep -nHIrF --include=*.{py,txt} -- select /some/dir
You can't use {py,txt} - the command is not passed to a Bourne shell.
Instead use "--include=*.py --include=*.txt".
Also the SVN version has a 'Files' field where you can list patterns.
Has anyone got the include option working with grep in find in files?
Yes.
Nick