Hey,
a short while back I went looking for a TextMate plugin for ack but the advertised link was dead so I based one off GrepInProject++ (instead of doing something sensible like contact the plugin's author about the dead link...).
Anyhow, my own take on "Ack in project" can be found at:
http://github.com/protocool/ack-tmbundle/tree/master
It does nifty stuff like remember your last 10 searches, allows you to choose word, literal or case insensitive search as well as configure options like whether you want to show context lines, follow symlinks and ignore .ackrc (you can define a .ackrc in your project directory too).
I've still got a few things I'd like to improve with it but it's in daily use (on Tiger, will test Leopard shortly).
Regards, Trevor
per email senden meine ich natürlich in der SMS ...
aber vermutlich schläfst Du schon.
dennis
Am 30.05.2008 um 02:23 schrieb Trevor Squires:
Hey,
a short while back I went looking for a TextMate plugin for ack but the advertised link was dead so I based one off GrepInProject++ (instead of doing something sensible like contact the plugin's author about the dead link...).
Anyhow, my own take on "Ack in project" can be found at:
http://github.com/protocool/ack-tmbundle/tree/master
It does nifty stuff like remember your last 10 searches, allows you to choose word, literal or case insensitive search as well as configure options like whether you want to show context lines, follow symlinks and ignore .ackrc (you can define a .ackrc in your project directory too).
I've still got a few things I'd like to improve with it but it's in daily use (on Tiger, will test Leopard shortly).
Regards, Trevor
--
Trevor Squires http://somethinglearned.com
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Thu, May 29, 2008 at 5:23 PM, Trevor Squires trevor@protocool.com wrote:
Hey,
a short while back I went looking for a TextMate plugin for ack but the advertised link was dead so I based one off GrepInProject++ (instead of doing something sensible like contact the plugin's author about the dead link...).
Anyhow, my own take on "Ack in project" can be found at:
http://github.com/protocool/ack-tmbundle/tree/master
It does nifty stuff like remember your last 10 searches, allows you to choose word, literal or case insensitive search as well as configure options like whether you want to show context lines, follow symlinks and ignore .ackrc (you can define a .ackrc in your project directory too).
I've still got a few things I'd like to improve with it but it's in daily use (on Tiger, will test Leopard shortly).
Regards, Trevor
--
Trevor Squires http://somethinglearned.com
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Hey Trevor, I tried out this bundle and am extremely impressed with it. It's much faster than the built in search in project and most importantly doesn't block TM when you perform a search. Keep up the great work!
Cheers, Yi
On Thu, May 29, 2008 at 5:23 PM, Trevor Squires trevor@protocool.com wrote:
Hey,
a short while back I went looking for a TextMate plugin for ack but the advertised link was dead so I based one off GrepInProject++ (instead of doing something sensible like contact the plugin's author about the dead link...).
Anyhow, my own take on "Ack in project" can be found at:
http://github.com/protocool/ack-tmbundle/tree/master
It does nifty stuff like remember your last 10 searches, allows you to choose word, literal or case insensitive search as well as configure options like whether you want to show context lines, follow symlinks and ignore .ackrc (you can define a .ackrc in your project directory too).
I've still got a few things I'd like to improve with it but it's in daily use (on Tiger, will test Leopard shortly).
Nice! A few things:
- It should use the search pasteboard (tip: "pbpaste -pboard find")
- It includes nib files (even though the ack man page says it doesn't) and also the .tmproj file. So i think it should use a default .ackrc of:
--type-set nib=.nib,.xib --type-set textmate=.tmproj --nonib --notextmate
- I think a shortcut of ⇧⌥⌘-F (Shift-Alt-Cmd-F in case mail doesn't preserve those characters) would be more intuitive
- The progress spinner while the panel is up is a bit annoying, though I am not sure if that can be changed easily
- I think cancel should close the window (maybe use the tooltip exit code and print "Ack in project cancelled" or so)
BTW seems to work fine on Leopard.
Gerd
Hi Gerd,
thanks for the feedback:
Search Pasteboard: thanks, and done. It both queries and updates the pboard now so (provided your find-panel 'Regular Expression' setting jives with the ack-panel's 'Literal' setting) you can do command-g in the editor to go to the next match.
Nib Files: strange... I don't get results from nibs...
Tmproj Files: I agree that it should be excluded but right now I think the best thing to do is document "suggested $HOME/.ackrc entries" on the github wiki.
Different Shortcut: as much as your suggestion is symmetrical, I find it just too darn hard to type... I plan to leave it as-is because users can remap it at will anyhow. Sorry.
Progress Spinner: yeah, I find it annoying too. There's much that's sub-optimal with having to return my results to an html output window and I haven't found a strategy that meets all my requirements.
Cancel Button: the more I think about it, the more I wish I had done TextMate.exit_discard in response to 'cancel'. It's a bit unnerving to have the output window disappear though... I'm thinking on it anyhow.
Again, thanks for taking the time to provide quality feedback.
Regards, Trevor
On 5/30/08, Gerd Knops gerti-textmate@bitart.com wrote:
On Thu, May 29, 2008 at 5:23 PM, Trevor Squires trevor@protocool.com wrote:
Hey,
a short while back I went looking for a TextMate plugin for ack but the advertised link was dead so I based one off GrepInProject++ (instead of doing something sensible like contact the plugin's author about the dead link...).
Anyhow, my own take on "Ack in project" can be found at:
http://github.com/protocool/ack-tmbundle/tree/master
It does nifty stuff like remember your last 10 searches, allows you to choose word, literal or case insensitive search as well as configure options like whether you want to show context lines, follow symlinks and ignore .ackrc (you can define a .ackrc in your project directory too).
I've still got a few things I'd like to improve with it but it's in daily use (on Tiger, will test Leopard shortly).
Nice! A few things:
It should use the search pasteboard (tip: "pbpaste -pboard find")
It includes nib files (even though the ack man page says it doesn't) and
also the .tmproj file. So i think it should use a default .ackrc of:
--type-set nib=.nib,.xib --type-set textmate=.tmproj --nonib --notextmate
- I think a shortcut of ⇧⌥⌘-F (Shift-Alt-Cmd-F in case mail doesn't
preserve those characters) would be more intuitive
- The progress spinner while the panel is up is a bit annoying, though I am
not sure if that can be changed easily
- I think cancel should close the window (maybe use the tooltip exit code
and print "Ack in project cancelled" or so)
BTW seems to work fine on Leopard.
Gerd
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Thanks for great bundle Trevor!
It is really superior to GrepInProject++, and well there's active maintainer.
I'd love to put my 0.02$...
1) ⇧⌘A shall open only Ack In Project (dialog) dialog, shouldn't open IMHO output (html) window (yet)
2) Pressing Find we shall always open NEW output (html) window, keeping previous untouched, so I can keep several search results hanging around. I miss this feature for both bult-in search and GrepInProject ones, only one results window :(. This should also allow to launch few searches in parallel; ⇧⌘A type Phrase1 then Find, ⇧⌘A again Phrase2 and Find.
3) When search is started and output (html) is open, please put immediately <Searching for "Phrase" in folder> and flush output, so we can see what the search is searching for, instead of annoying spinning wheel together with empty window :)
I don't know if those changes are feasible, but if you look at marvelous TODO bundle, this is the way it works, no-spinner, output window content updated on fly.
Best regards,