Class Redwood::ThreadIndexMode
In: lib/sup/modes/thread-index-mode.rb
Parent: LineCursorMode

subclasses should implement:

Methods

Constants

DATE_WIDTH = Time::TO_NICE_S_MAX_LEN
MIN_FROM_WIDTH = 15
LOAD_MORE_THREAD_NUM = 20
AUTHOR_LIMIT = 5

Public Class methods

Public Instance methods

overwrite me!

these two methods are called by thread-view-modes when the user wants to view the previous/next thread without going back to index-mode. we update the cursor as a convenience.

TODO: figure out @ts_mutex in this method

m-m-m-m-MULTI-KILL

both spam and deleted have the curious characteristic that you always want to hide the thread after either applying or removing that label. in all thread-index-views except for label-search-results-mode, when you mark a message as spam or deleted, you want it to disappear immediately; in LSRM, you only see deleted or spam emails, and when you undelete or unspam them you also want them to disappear immediately.

open up a thread view window

Protected Instance methods

preserve author order from the thread

used to tag threads by query. this can be made a lot more sophisticated, but for right now we‘ll do the obvious this.

[Validate]