Commit 44ffe3a3cc3b683c52a69a85d9f4d04ed5174d75

Create MainIndexMode class

The stuff specific to the main inbox (unkillable buffer, singletonness,
etc.) will be moved to this new class. The other parts of InboxMode will
be reused to allow buffers querying subsets of the Inbox.

Signed-off-by: Eduardo Habkost <ehabkost@raisama.net>
bin/sup
(1 / 1)
  
153153 Colormap.new.populate_colormap
154154
155155 log "initializing mail index buffer"
156 imode = InboxMode.new
156 imode = MainInboxMode.new
157157 ibuf = bm.spawn "Inbox", imode
158158
159159 log "ready for interaction!"
lib/sup.rb
(1 / 0)
  
298298require "sup/modes/search-results-mode"
299299require "sup/modes/person-search-results-mode"
300300require "sup/modes/inbox-mode"
301require "sup/modes/main-inbox-mode"
301302require "sup/modes/buffer-list-mode"
302303require "sup/modes/poll-mode"
303304require "sup/modes/file-browser-mode"
  
1module Redwood
2
3class MainInboxMode < InboxMode
4end
5
6end