#9 ✓hold
Bradley Wright

Ack in project searches more than project

Reported by Bradley Wright | December 6th, 2008 @ 04:27 AM

If you use Ack in project to search a project, it actually searches the entire directory structure under the project's location (i.e a project located in ~ searches Applications, Library etc.). It should just be confined to the files in the project.

Comments and changes to this ticket

  • Trevor Squires

    Trevor Squires December 8th, 2008 @ 01:10 PM

    • State changed from “new” to “hold”

    Hi Bradley,

    this is sort-of by design. The 'ack' command itself is geared to (by default) searching entire directory trees under your current location - something that works very well when you've got a project containing many hundreds of files.

    It's probably possible for me to construct a list of files that are eligible for searching but it strikes me that it would be a) slower and b) require a lot of defensive effort to make sure I don't exceed OS limits on the length of an argument list when calling ack.

    If you can find a way to support your requirement without significantly impacting the common case of "a .tmproj file in the root of a tree with a lot of files and directories" I'd definitely take a look at integrating it into the bundle.

    Thanks, Trev

  • Bradley Wright

    Bradley Wright December 8th, 2008 @ 02:41 PM

    Fair point, I understand it's an edge case and definitely not worth any kind of concerted effort. I was kinda hoping you'd have a quick solution. ;)

    I'll take a deeper look into ack and TextMate and maybe comment back here if I can come up with something nifty.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ack Textmate Bundle

People watching this ticket