commit 8f5c45866e94178fd1a8dad83ca0b68eba292946
parent 57efd0b64eb6c00d9ca6aac2f54748370d0cd4a2
Author: William Morgan <wmorgan-sup@masanjin.net>
Date: Sun, 17 Jan 2010 18:20:17 -0500
Merge branch 'insta-save' into next
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
@@ -37,6 +37,7 @@ EOS
k.add :toggle_spam, "Mark/unmark thread as spam", 'S'
k.add :toggle_deleted, "Delete/undelete thread", 'd'
k.add :kill, "Kill thread (never to be seen in inbox again)", '&'
+ k.add :flush_index, "Flush all changes now", '$'
k.add :jump_to_next_new, "Jump to next new thread", :tab
k.add :reply, "Reply to latest message in a thread", 'r'
k.add :reply_all, "Reply to all participants of the latest message in a thread", 'G'
@@ -452,6 +453,12 @@ EOS
multi_kill [t]
end
+ def flush_index
+ @flush_id = BufferManager.say "Flushing index..."
+ Index.save_index
+ BufferManager.clear @flush_id
+ end
+
## m-m-m-m-MULTI-KILL
def multi_kill threads
UndoManager.register "killing #{threads.size.pluralize 'thread'}" do