<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -34,11 +34,12 @@ class SearchInFilesListener
     @find = FindFrame.new(@service.arcadia.layout.root)
     @find.on_close=proc{@find.hide}
     @find.hide
-    @find.b_go.bind('1', proc{Thread.new{do_find}}) # add trigger to button    
+    @find.b_go.bind('1', proc{Thread.new{update_all_combo;do_find}}) # add trigger to button    
     
     enter_proc = proc {|e|
       case e.keysym
       when 'Return'
+        update_all_combo    
         do_find
         Tk.callback_break
       end
@@ -50,6 +51,33 @@ class SearchInFilesListener
     @find.title(title)
   end
   private :create_find
+
+  def update_what_combo(_txt)
+    values = @find.e_what.cget('values')
+    if (values != nil &amp;&amp; !values.include?(_txt))
+      @find.e_what.insert('end', _txt)
+    end
+  end
+
+  def update_filter_combo(_txt)
+    values = @find.e_filter.cget('values')
+    if (values != nil &amp;&amp; !values.include?(_txt))
+      @find.e_filter.insert('end', _txt)
+    end
+  end
+
+  def update_dir_combo(_txt)
+    values = @find.e_dir.cget('values')
+    if (values != nil &amp;&amp; !values.include?(_txt))
+      @find.e_dir.insert('end', _txt)
+    end
+  end
+  
+  def update_all_combo
+    update_what_combo(@find.e_what.text)
+    update_filter_combo(@find.e_filter.text)
+    update_dir_combo(@find.e_dir.text)
+  end
   
   def do_find
     return if @find.e_what.text.strip.length == 0  || @find.e_filter.text.strip.length == 0  || @find.e_dir.text.strip.length == 0
@@ -257,6 +285,8 @@ class FindFrame &lt; TkFloatTitledFrame
     @e_filter_entry = TkWinfo.children(@e_filter)[0]
     @e_filter_entry.bind_append(&quot;1&quot;,proc{Arcadia.process_event(InputEnterEvent.new(self,'receiver'=&gt;@e_filter_entry))})
 
+    @e_filter.insert('end', '*.*')
+    @e_filter.insert('end', '*.rb')
     @e_filter.text('*.rb')
     y0 = y0 + d
 </diff>
      <filename>ext/ae-search-in-files/ae-search-in-files.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9b957c280e57eaa7a8c401f18579dbc1113a9e4c</id>
    </parent>
  </parents>
  <author>
    <name>Antonio Galeone</name>
    <email>antonio.galeone@gmail.com</email>
  </author>
  <url>http://github.com/angal/arcadia/commit/fe938652be3148e572d60ec8e371059f177eb620</url>
  <id>fe938652be3148e572d60ec8e371059f177eb620</id>
  <committed-date>2009-10-26T16:31:53-07:00</committed-date>
  <authored-date>2009-10-26T16:31:53-07:00</authored-date>
  <message>memo old values in combo</message>
  <tree>cc08adc33b4fd87ac6110735ddaf1c7a3fd6f6b5</tree>
  <committer>
    <name>Antonio Galeone</name>
    <email>antonio.galeone@gmail.com</email>
  </committer>
</commit>
