On 2009-06-02, Jason Axelson wrote: > On Tue, Jun 2, 2009 at 12:29 PM, Gary Johnson <[email protected]> wrote: > > Not if you define 'grepprg' appropriately. I work on a number of > > huge projects, with files spread across multiple directories and > > among other files and directories that are of no interest to me. > > For each project, I have a <project_name>_grep script that uses a > > fairly complicated find command to find only the files I want to > > search, piped to xargs and grep. I have a plugin that "knows" which > > project I'm working on and sets 'grepprg' to the corresponding > > script. > > > > Yes, I have to support those scripts, but they are all similar to > > one another, and I would have to similarly support any indexing tool > > I used on those projects. > > I'm curious if you've looked into using ack > (http://www.betterthangrep.com/) for your grepprg. I would naively > think that it would greatly simplify the scripts that you mentioned. > Of course, I could be totally off-base on this.
I hadn't heard of it. I just looked at the web page. It looks like a great tool for some situations. Unfortunately, it appears to solve problems I don't have and doesn't solve the problems I do have. For example, our source code includes proprietary languages with suffixes that ack doesn't support. We also have directories of automatically-generated C code that I usually don't want to include in searches. I think by the time I adjusted ack for issues like this, that it wouldn't be any easier to use than find/xargs/grep or grep -R --include=etc. Regards, Gary --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
