Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Ack in project searches more than project

#9

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.

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

State: hold
Milestone: none
Assigned to: Trevor Squires Trevor Squires

Activity

  1. Trevor Squires
    Trevor Squires
    • 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

    December 8th, 2008 @ 01:10 PM

  2. Bradley Wright
    Bradley Wright

    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.

    December 8th, 2008 @ 02:41 PM

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.