From: Carl Worth Date: Wed, 26 Aug 2009 22:40:34 +0000 (-0700) Subject: add 'a' and 'd' keybindings to thread-view-mode to archive/delete current thread X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=35d2d5b3d0b52b152539dc8075a830dee3bf5b71;p=sup add 'a' and 'd' keybindings to thread-view-mode to archive/delete current thread These behave identically to the existing ",a" and ",d" commands, (that is they archive or delete the current thread and then view the next). --- diff --git a/lib/sup/modes/thread-view-mode.rb b/lib/sup/modes/thread-view-mode.rb index 27167cb..1c38fbb 100644 --- a/lib/sup/modes/thread-view-mode.rb +++ b/lib/sup/modes/thread-view-mode.rb @@ -65,6 +65,9 @@ EOS k.add :unsubscribe_from_list, "Subscribe to/unsubscribe from mailing list", ")" k.add :pipe_message, "Pipe message or attachment to a shell command", '|' + k.add :archive_and_next, "Archive this thread, kill buffer, and view next", 'a' + k.add :delete_and_next, "Delete this thread, kill buffer, and view next", 'd' + k.add_multi "(a)rchive/(d)elete/mark as (s)pam/mark as u(N)read:", '.' do |kk| kk.add :archive_and_kill, "Archive this thread and kill buffer", 'a' kk.add :delete_and_kill, "Delete this thread and kill buffer", 'd'