From mboxrd@z Thu Jan 1 00:00:00 1970 From: nicolas.pouillard@gmail.com (Nicolas Pouillard) Date: Mon, 16 Mar 2009 19:36:28 +0100 Subject: [sup-talk] [PATCH] Buffer switching, 'bn' for the next one and 'bp' for the previous In-Reply-To: <1227194855-12300-1-git-send-email-nicolas.pouillard@gmail.com> References: <1227194855-12300-1-git-send-email-nicolas.pouillard@gmail.com> Message-ID: <1237228583-sup-7694@ausone.local> Resent... --- bin/sup | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/sup b/bin/sup index 152c42c..965f2ee 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' -- Nicolas Pouillard