<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -87,6 +87,10 @@ class AckInProject::Search
     options &lt;&lt; '-C' if result['showContext'] == 1
     options &lt;&lt; &quot;--#{result['followSymLinks'] == 1 ? '' : 'no'}follow&quot;
     options &lt;&lt; &quot;--#{result['loadAckRC'] == 1 ? '' : 'no'}env&quot;
+    
+    options &lt;&lt; &quot;--type=&quot;+plist['ackFileType'] if plist['ackFileType'] != 'All'
+    # I don't know why ackFileType doesn't go into result. I am an Interface Builder n00b.
+    # (putting it into defaults instead of params didn't change anything)
 
     AckInProject.update_search_history result['returnArgument']
     AckInProject.update_pbfind result['returnArgument']</diff>
      <filename>Support/lib/search.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,11 +25,11 @@ class AckInProject::SearchDialog
   end
   
   def params
-    history = AckInProject.search_history
     {
-      #'contentHeight' =&gt; 168,
       'ackExpression' =&gt; AckInProject.pbfind,
-      'ackHistory' =&gt; history
+      'ackHistory' =&gt; AckInProject.search_history,
+      'ackFileTypes' =&gt; filetypes,
+      'ackFileType' =&gt; 'All'
     }
   end
   
@@ -42,6 +42,58 @@ class AckInProject::SearchDialog
     &lt;/body&gt;&lt;/html&gt;
     HTML
   end
+  
+  def filetypes
+    # I'm sure there's a better way to do this. But I'm not familiar with it.
+    [
+      {'filetype'=&gt;'All'},
+      {'filetype'=&gt;'actionscript'},
+      {'filetype'=&gt;'asm'},
+      {'filetype'=&gt;'batch'},
+      {'filetype'=&gt;'binary'},
+      {'filetype'=&gt;'cc'},
+      {'filetype'=&gt;'cfmx'},
+      {'filetype'=&gt;'cpp'},
+      {'filetype'=&gt;'csharp'},
+      {'filetype'=&gt;'css'},
+      {'filetype'=&gt;'elisp'},
+      {'filetype'=&gt;'erlang'},
+      {'filetype'=&gt;'fortran'},
+      {'filetype'=&gt;'haskell'},
+      {'filetype'=&gt;'hh'},
+      {'filetype'=&gt;'html'},
+      {'filetype'=&gt;'java'},
+      {'filetype'=&gt;'js'},
+      {'filetype'=&gt;'jsp'},
+      {'filetype'=&gt;'lisp'},
+      {'filetype'=&gt;'lua'},
+      {'filetype'=&gt;'make'},
+      {'filetype'=&gt;'mason'},
+      {'filetype'=&gt;'objc'},
+      {'filetype'=&gt;'objcpp'},
+      {'filetype'=&gt;'ocaml'},
+      {'filetype'=&gt;'parrot'},
+      {'filetype'=&gt;'perl'},
+      {'filetype'=&gt;'php'},
+      {'filetype'=&gt;'plone'},
+      {'filetype'=&gt;'python'},
+      {'filetype'=&gt;'rake'},
+      {'filetype'=&gt;'ruby'},
+      {'filetype'=&gt;'scheme'},
+      {'filetype'=&gt;'shell'},
+      {'filetype'=&gt;'skipped'},
+      {'filetype'=&gt;'smalltalk'},
+      {'filetype'=&gt;'sql'},
+      {'filetype'=&gt;'tcl'},
+      {'filetype'=&gt;'tex'},
+      {'filetype'=&gt;'text'},
+      {'filetype'=&gt;'tt'},
+      {'filetype'=&gt;'vb'},
+      {'filetype'=&gt;'vim'},
+      {'filetype'=&gt;'xml'},
+      {'filetype'=&gt;'yaml'}
+    ]
+  end
 end
 
 </diff>
      <filename>Support/lib/search_dialog.rb</filename>
    </modified>
    <modified>
      <diff>@@ -15,7 +15,7 @@ class AckInProject::SearchResults
       :html_head    =&gt; header_extra()
     )
     puts &lt;&lt;-HTML
-      &lt;h2&gt;Searching for &#8220;#{ h search_string }&#8221; in #{ searched_in }&lt;/h2&gt;
+      &lt;h2&gt;Searching for &#8220;#{ h search_string }&#8221; in #{ searched_in }#{plist['ackFileType'] == 'All' ? '' : (' ('+plist['ackFileType']+' only)')}&lt;/h2&gt;
       &lt;div id=&quot;counters&quot;&gt;&lt;span id=&quot;linecount&quot;&gt;0 lines&lt;/span&gt; matched in &lt;span id=&quot;filecount&quot;&gt;0 files&lt;/span&gt;&lt;/div&gt;
       &lt;script type=&quot;text/javascript&quot;&gt;searchStarted();&lt;/script&gt;
       &lt;table id=&quot;results&quot; width=&quot;100%&quot; cellspacing=&quot;0&quot;&gt;</diff>
      <filename>Support/lib/search_results.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,30 @@
-{
-    IBClasses = (
-        {CLASS = FirstResponder; LANGUAGE = ObjC; SUPERCLASS = NSObject; }, 
-        {ACTIONS = {performButtonClick = id; }; CLASS = NSObject; LANGUAGE = ObjC; }
-    ); 
-    IBVersion = 1; 
-}
\ No newline at end of file
+&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
+&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
+&lt;plist version=&quot;1.0&quot;&gt;
+&lt;dict&gt;
+	&lt;key&gt;IBClasses&lt;/key&gt;
+	&lt;array&gt;
+		&lt;dict&gt;
+			&lt;key&gt;CLASS&lt;/key&gt;
+			&lt;string&gt;FirstResponder&lt;/string&gt;
+			&lt;key&gt;LANGUAGE&lt;/key&gt;
+			&lt;string&gt;ObjC&lt;/string&gt;
+			&lt;key&gt;SUPERCLASS&lt;/key&gt;
+			&lt;string&gt;NSObject&lt;/string&gt;
+		&lt;/dict&gt;
+		&lt;dict&gt;
+			&lt;key&gt;ACTIONS&lt;/key&gt;
+			&lt;dict&gt;
+				&lt;key&gt;performButtonClick&lt;/key&gt;
+				&lt;string&gt;id&lt;/string&gt;
+			&lt;/dict&gt;
+			&lt;key&gt;CLASS&lt;/key&gt;
+			&lt;string&gt;NSObject&lt;/string&gt;
+			&lt;key&gt;LANGUAGE&lt;/key&gt;
+			&lt;string&gt;ObjC&lt;/string&gt;
+		&lt;/dict&gt;
+	&lt;/array&gt;
+	&lt;key&gt;IBVersion&lt;/key&gt;
+	&lt;string&gt;1&lt;/string&gt;
+&lt;/dict&gt;
+&lt;/plist&gt;</diff>
      <filename>Support/nibs/AckInProjectSearch.nib/classes.nib</filename>
    </modified>
    <modified>
      <diff>@@ -1,22 +1,19 @@
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;!DOCTYPE plist PUBLIC &quot;-//Apple Computer//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
+&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;
 &lt;plist version=&quot;1.0&quot;&gt;
 &lt;dict&gt;
-	&lt;key&gt;IBDocumentLocation&lt;/key&gt;
-	&lt;string&gt;425 98 703 386 0 0 1680 1028 &lt;/string&gt;
-	&lt;key&gt;IBEditorPositions&lt;/key&gt;
-	&lt;dict&gt;
-		&lt;key&gt;185&lt;/key&gt;
-		&lt;string&gt;756 617 214 136 0 0 1680 1028 &lt;/string&gt;
-	&lt;/dict&gt;
 	&lt;key&gt;IBFramework Version&lt;/key&gt;
-	&lt;string&gt;443.0&lt;/string&gt;
+	&lt;string&gt;629&lt;/string&gt;
+	&lt;key&gt;IBOldestOS&lt;/key&gt;
+	&lt;integer&gt;5&lt;/integer&gt;
 	&lt;key&gt;IBOpenObjects&lt;/key&gt;
 	&lt;array&gt;
-		&lt;integer&gt;5&lt;/integer&gt;
+		&lt;integer&gt;40&lt;/integer&gt;
 		&lt;integer&gt;185&lt;/integer&gt;
 	&lt;/array&gt;
 	&lt;key&gt;IBSystem Version&lt;/key&gt;
-	&lt;string&gt;8S2167&lt;/string&gt;
+	&lt;string&gt;9G55&lt;/string&gt;
+	&lt;key&gt;targetFramework&lt;/key&gt;
+	&lt;string&gt;IBCocoaFramework&lt;/string&gt;
 &lt;/dict&gt;
 &lt;/plist&gt;</diff>
      <filename>Support/nibs/AckInProjectSearch.nib/info.nib</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>Support/nibs/AckInProjectSearch.nib/keyedobjects.nib</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2684ce1818db301f3f3f7e16cbbfda82cc6978c6</id>
    </parent>
  </parents>
  <author>
    <name>David Lynch</name>
    <email>kemayo@gmail.com</email>
  </author>
  <url>http://github.com/adinardi/ack-tmbundle/commit/90f16268f721cffc900dc2c7eae84f32b39e8faf</url>
  <id>90f16268f721cffc900dc2c7eae84f32b39e8faf</id>
  <committed-date>2009-11-05T04:54:22-08:00</committed-date>
  <authored-date>2009-02-12T19:50:03-08:00</authored-date>
  <message>Filetypes support

Adds a dropdown in the advanced drawer which lets you pick an option to pass to --type
It's a bit clunky, as I couldn't work out how some of the tm_dialog stuff works (why some
values went into 'result' and others didn't, and how to make the .nib pass through separate
values and labels for a dropdown).</message>
  <tree>7130decec668eb12612124612a9453ae4d2ca4f9</tree>
  <committer>
    <name>Angelo DiNardi</name>
    <email>adinardi@fragtop.local</email>
  </committer>
</commit>
