dhou / ack-tmbundle

"Ack in Project" TextMate bundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ack Textmate Bundle.
Version 0.1

Type command-shift-a to ack your project in TextMate… ’nuff said.

You can learn more about ack at http://petdance.com/ack/.

This fork adds file-type filtering, allowing you to (say) search only within .js files.

Installation

  • Run this:
cd ~/Library/Application\ Support/TextMate/Bundles
git clone git://github.com/kemayo/ack-tmbundle.git Ack.tmbundle

Bugs

You can file tickets for any bugs using LightHouse.

Notes

The ack-standalone.sh script from http://petdance.com/ack/ is included in this bundle. You can use a different version of ack by setting the TM_ACK environment variable to point to your version.

This bundle has only been tested against this particular version of ack-standalone.

Per-project .ackrc

Ack normally honors the settings in your $HOME/.ackrc file. Additionally, any .ackrc file in your project directory (TM_PROJECT_DIRECTORY) will also be read.

You can switch-off loading of any .ackrc files in the ‘Advanced options’ drawer.

Background

The code is based on GrepInProject++ which was itself based on other’s code as below:

# By Henrik Nyh (http://henrik.nyh.se) 2007-06-26
# Free to modify and redistribute with credit.

# Includes some minor modifications by Max (http://max.xaok.org/webtek) 2007-08-01
# Adds search UI plus some minor modifications by Robert Thurnher (http://soup.robert42.com) 2007-08-11
# Further modifications by Trevor Squires (http://somethinglearned.com) 2008-05-21
# Yet more modifications by David Lynch (http://davidlynch.org) 2009-02-12

About

"Ack in Project" TextMate bundle