Permalink
Browse files

initial commit

  • Loading branch information...
1 parent fe03a3f commit f1e62ac77fbeb938bc649e516b837ff3ca8bae0b @rdp committed Aug 6, 2010
Showing with 33 additions and 0 deletions.
  1. +3 −0 README
  2. +18 −0 lib/save_all_on_lose_focus.rb
  3. +4 −0 lib/tags
  4. +8 −0 plugin.rb
View
3 README
@@ -0,0 +1,3 @@
+see announcement:
+
+http://groups.google.com/group/redcar-editor/browse_thread/thread/47dcccd93365137e
View
18 lib/save_all_on_lose_focus.rb
@@ -0,0 +1,18 @@
+module Redcar
+
+ class SaveAllOnLoseFocus2
+
+ def self.sensitivities
+ p 'in sensitivites'
+ Redcar.app.add_listener(:new_window) do |win|
+ p 'got new window..'
+ win.add_listener(:tab_closed) do
+ if Redcar.app.focussed_window.all_tabs.length == 0
+ Redcar.app.focussed_window.close
+ end
+ end
+ end
+ end
+ end
+end
+
View
4 lib/tags
@@ -0,0 +1,4 @@
+1281057966
+Redcar C:/Users/packrd/.redcar/plugins/redcar-auto-close/lib/save_all_on_lose_focus.rb module Redcar
+SaveAllOnLoseFocus2 C:/Users/packrd/.redcar/plugins/redcar-auto-close/lib/save_all_on_lose_focus.rb class SaveAllOnLoseFocus2
+sensitivities C:/Users/packrd/.redcar/plugins/redcar-auto-close/lib/save_all_on_lose_focus.rb def self.sensitivities
View
8 plugin.rb
@@ -0,0 +1,8 @@
+Plugin.define do
+ name "save-all-on-lose-focus2"
+ version "0.0"
+ file "lib", "save_all_on_lose_focus"
+ object "Redcar::SaveAllOnLoseFocus2"
+ dependencies "project", ">0"
+
+end

0 comments on commit f1e62ac

Please sign in to comment.