protocool / AckMate

TextMate plugin (Cocoa) shell for running 'ack'
MIT License
723 stars 34 forks source link

search by file's extension #37

Open i3zhe opened 12 years ago

i3zhe commented 12 years ago

Could we search by file's extensions? Like I only want to see results in .rb, or .js .css files.

petdance commented 12 years ago

If you were calling ack from the command line, you'd say "ack whatever --rb --js --css". But I don't know about in ackmate.

i3zhe commented 12 years ago

Oh, sorry. I mean this feature in Ack.tmbundle. I tried to add this, and will commit it soon. Please review it and see if its good to go and merge.

One problem I found is searching with long words or quotes sometimes returns no result. e.g. App::Ack::die( qq{--type-add: Builtin type "$type" cannot be changed.} ) this line sits in ack-standalone.sh

but the original textmate search works. Any work around please?