19

I've started using Agent Ransack to search an entire directory at once looking for a particular string. The only issue I have with it so far is that if I'm searching in a Subversion working copy, it finds the string in the .svn folders, which of course is not what I want. Is there a way to tell it to ignore any directory named .svn as well as any subdirectories of a .svn directory?

  • It already knows, by default, to avoid .git directories. Just kidding :) – Dan Rosenstark Jun 29 '10 at 0:58
12

Apparently you can exclude files now in the free version of Agent Ransack by using the following syntax:

NOT: *.dll; *.svn-base
  • yep - works a treat! – Allan Bowe Dec 24 '15 at 9:53
6

It's not possible in the free version. Your best bet is to make sure you include the file extension and then it'll exclude the svn-base files, e.g.

*.cs;*.vb
3

As snowdude hinted FileLocator Pro (which is the paid version of "Agent Ransack"/"FileLocator Lite" same thing different name If you are willing to upgrade (or like me willing to persuade your boss it's a good investment!) then there is a feature specificity for this under Persistent Search Filter so once set it will always ignore ".svn", ".hg" and ".git"(for Yar!)

So if you have this version (or buy it) then you can click the little filter icon to the right of the "subfolders" tickbox (see this pic) and click "Exclude SVN/HG/GIT/CVS meta data folders" (even shows you the filter it uses so you can update it directly or copy it for other uses).

Hope this helps.

2

You can do it, if you turn on the File Name match by Regular Expression in the Tab Options. Then use a expression like .*jsp$, this will exclude all SVN control files of the results.

0

You can use Agent Ransack itself for this task. To avoid specific directories (Ex: c:\Windows), update the field "Look in": "c:\; !C:\Windows"

!C:\Windows - This will exclude Windows directory from search criteria.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.