[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
IDE features: M-x find-grep
From: |
Davi Leal |
Subject: |
IDE features: M-x find-grep |
Date: |
Sun, 27 Apr 2008 22:36:27 +0200 |
User-agent: |
KMail/1.9.7 |
"find-grep" lists the matches too under the CVS, .svn, .git, ... directories.
Other IDEs avoid to list matches on repository specific files. They only list
matches in source code files.
find-grep could detect it is going to process a CVS, SVN or Git repository and
so prune such directories: -path '*/.svn' -prune
So, instead of the current find-grep default command [1], emacs could offer
one which prune the repository control directories [2], [3], ...
[1] find . -type f -print0 | xargs -0 -e grep -nH -e
[2] find . -path '*/CVS' -prune -o -type f -print | xargs -e grep -I -n -e
[3] find . -path '*/.svn' -prune -o -type f -print | xargs -e grep -I -n -e
Can such behavior be got just configuring .emacs?
--
gnuherds.org The democratic FS job site.
- IDE features: M-x find-grep,
Davi Leal <=