Subject: [sup-devel] [PATCH] [issue4] kill buffers in buffer-list-mode with "X"

From: Eric Sherman <[email-masked]>
Date: Sun, 03 Jan 2010 12:09:50 -0500

---
 lib/sup/modes/buffer-list-mode.rb |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lib/sup/modes/buffer-list-mode.rb b/lib/sup/modes/buffer-list-mode.rb
index 1554cae..40f2e76 100644
--- a/lib/sup/modes/buffer-list-mode.rb
+++ b/lib/sup/modes/buffer-list-mode.rb
@@ -4,6 +4,7 @@ class BufferListMode < LineCursorMode
   register_keymap do |k|
     k.add :jump_to_buffer, "Jump to selected buffer", :enter
     k.add :reload, "Reload buffer list", "@"
+    k.add :kill_selected_buffer, "Kill selected buffer", "X"
   end
 
   def initialize
@@ -40,6 +41,10 @@ protected
   def jump_to_buffer
     BufferManager.raise_to_front @bufs[curpos][1]
   end
+
+  def kill_selected_buffer
+    reload if BufferManager.kill_buffer_safely @bufs[curpos][1]
+  end
 end
 
 end
-- 
1.6.5.7
_______________________________________________
Sup-devel mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-devel

---

From: William Morgan <[email-masked]>
Date: Sun, 03 Jan 2010 14:11:49 -0800

Applied directly to master. It's still Christmas! Thanks!
-- 
William <[email-masked]>
_______________________________________________
Sup-devel mailing list
[email-masked]
http://rubyforge.org/mailman/listinfo/sup-devel