From mboxrd@z Thu Jan 1 00:00:00 1970 From: rlane@club.cc.cmu.edu (Rich Lane) Date: Sun, 16 Aug 2009 12:36:08 -0700 Subject: [sup-talk] [PATCH] add 'I' keybinding to raise Inbox buffer Message-ID: <1250451368-16150-1-git-send-email-rlane@club.cc.cmu.edu> --- 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