]> git.cworth.org Git - sup/commitdiff
add 'a' and 'd' keybindings to thread-view-mode to archive/delete current thread
authorCarl Worth <cworth@cworth.org>
Wed, 26 Aug 2009 22:40:34 +0000 (15:40 -0700)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 9 Sep 2009 14:35:39 +0000 (10:35 -0400)
These behave identically to the existing ",a" and ",d" commands, (that
is they archive or delete the current thread and then view the next).

lib/sup/modes/thread-view-mode.rb

index 27167cbdd9750158f0a76dda51b4c11740a99c9a..1c38fbbc741168117557ec3de0fc34ef581b9f66 100644 (file)
@@ -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'