Class | Redwood::ThreadViewMode |
In: |
lib/sup/modes/thread-view-mode.rb
|
Parent: | LineCursorMode |
DATE_FORMAT | = | "%B %e %Y %l:%M%p" |
INDENT_SPACES | = | 2 |
there are a couple important instance variables we hold to format the thread and to provide line-based functionality. @layout is a map from Messages to MessageLayouts, and @chunk_layout from Chunks to ChunkLayouts. @message_lines is a map from row s to Message objects. @chunk_lines is a map from row s to Chunk objects. @person_lines is a map from row s to Person objects.
called when someone presses enter when the cursor is highlighting a chunk. for expandable chunks (including messages) we toggle open/closed state; for viewable chunks (like attachments) we view.