Subject: [sup-talk] [PATCH] add 'I' keybinding to raise Inbox buffer

From: [email-masked] (Rich Lane)
Date: Sun, 16 Aug 2009 12:36:08 -0700

---
 bin/sup |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/bin/sup b/bin/sup
index a9f0b95..d1eb163 100755
--- a/bin/sup
+++ b/bin/sup
@@ -78,6 +78,7 @@ global_keymap = Keymap.new do |k|
   k.add :compose, "Compose new message", 'm', 'c'
   k.add :nothing, "Do nothing", :ctrl_g
   k.add :recall_draft, "Edit most recent draft message", 'R'
+  k.add :show_inbox, "Show the Inbox buffer", 'I'
 end
 
 ## the following magic enables wide characters when used with a ruby
@@ -286,6 +287,8 @@ begin
         b, new = BufferManager.spawn_unless_exists("All drafts") { LabelSearchResultsMode.new [:draft] }
         b.mode.load_threads :num => b.content_height if new
       end
+    when :show_inbox
+      BufferManager.raise_to_front ibuf
     when :nothing, InputSequenceAborted
     when :redraw
       bm.completely_redraw_screen
-- 
1.6.4

---

From: [email-masked] (William Morgan)
Date: Tue, 18 Aug 2009 10:38:58 -0700

Applied to master, thanks!
-- 
William <wmorgan-sup at masanjin.net>