From 85f89a5ed5b7bc844410adc243d05cc528205a9f Mon Sep 17 00:00:00 2001 From: William Morgan Date: Thu, 9 Apr 2009 13:17:34 -0400 Subject: [PATCH] keybindings: ; -> buffer-list-mode, b, B, + ';' is mapped to buffer-list-mode. I really like this, because then ;, j, k and enter are all you need to quickly swap between buffers. Apply-to-tagged is now '+', from ';'. Sorry. But this also leaves room for ':' as a future buffer-chooser device, e.g. by name, with tab completion. 'B' is reenabled to mean swap-buffer-backwards. --- bin/sup | 4 ++-- lib/sup/modes/contact-list-mode.rb | 2 +- lib/sup/modes/thread-index-mode.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/sup b/bin/sup index 01d9417..77a5da3 100644 --- a/bin/sup +++ b/bin/sup @@ -67,9 +67,9 @@ global_keymap = Keymap.new do |k| 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 :roll_buffers_backwards, "Switch to previous buffer", 'B' k.add :kill_buffer, "Kill the current buffer", 'x' - k.add :list_buffers, "List all buffers", 'B' + k.add :list_buffers, "List all buffers", ';' k.add :list_contacts, "List contacts", 'C' k.add :redraw, "Redraw screen", :ctrl_l k.add :search, "Search all messages", '\\', 'F' diff --git a/lib/sup/modes/contact-list-mode.rb b/lib/sup/modes/contact-list-mode.rb index 7c16bab..edbef5e 100644 --- a/lib/sup/modes/contact-list-mode.rb +++ b/lib/sup/modes/contact-list-mode.rb @@ -23,7 +23,7 @@ class ContactListMode < LineCursorMode k.add :reload, "Drop contact list and reload", 'D' k.add :alias, "Edit alias/or name for contact", 'a', 'i' k.add :toggle_tagged, "Tag/untag current line", 't' - k.add :apply_to_tagged, "Apply next command to all tagged items", ';' + k.add :apply_to_tagged, "Apply next command to all tagged items", '+' k.add :search, "Search for messages from particular people", 'S' end diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index 916edec..0bce0de 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -42,7 +42,7 @@ EOS k.add :toggle_tagged, "Tag/untag selected thread", 't' k.add :toggle_tagged_all, "Tag/untag all threads", 'T' k.add :tag_matching, "Tag matching threads", 'g' - k.add :apply_to_tagged, "Apply next command to all tagged threads", ';' + k.add :apply_to_tagged, "Apply next command to all tagged threads", '+' k.add :join_threads, "Force tagged threads to be joined into the same thread", '#' end -- 2.45.2