From: Nicolas Pouillard Date: Mon, 16 Mar 2009 18:36:28 +0000 (+0100) Subject: Buffer switching, 'bn' for the next one and 'bp' for the previous X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=6dfbd42fbc9ba9cb89f7fd9f1fb71e259a7032ca;p=sup Buffer switching, 'bn' for the next one and 'bp' for the previous --- diff --git a/bin/sup b/bin/sup index 0d2366e..ba68ea4 100644 --- a/bin/sup +++ b/bin/sup @@ -66,8 +66,10 @@ global_keymap = Keymap.new do |k| k.add :quit_ask, "Quit Sup, but ask first", 'q' k.add :quit_now, "Quit Sup immediately", 'Q' k.add :help, "Show help", '?' - k.add :roll_buffers, "Switch to next buffer", 'b' -# k.add :roll_buffers_backwards, "Switch to previous buffer", 'B' + k.add_multi "(n)ext/(p)revious:", 'b' do |kk| + kk.add :roll_buffers, "Switch to next buffer", 'n' + kk.add :roll_buffers_backwards, "Switch to previous buffer", 'p' + end k.add :kill_buffer, "Kill the current buffer", 'x' k.add :list_buffers, "List all buffers", 'B' k.add :list_contacts, "List contacts", 'C'