Sha256: a829640fb6b076bc8f8ccc8d8140c6b90894f9308a6f7c2c4116c9edc41b1a60
Contents?: true
Size: 823 Bytes
Versions: 1
Compression:
Stored size: 823 Bytes
Contents
module Redwood class PersonSearchResultsMode < ThreadIndexMode register_keymap do |k| k.add :load_more_threads, "Load #{LOAD_MORE_THREAD_NUM} more threads", 'M' end def initialize people @people = people super end def is_relevant? m; @people.any? { |p| m.from == p }; end def load_more_threads opts={} n = opts[:num] || ThreadIndexMode::LOAD_MORE_THREAD_NUM load_n_threads_background n, :participants => @people, :load_killed => true, :load_spam => false, :when_done =>(lambda do |num| opts[:when_done].call if opts[:when_done] if num > 0 BufferManager.flash "Found #{num} threads" else BufferManager.flash "No matches" end end) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sup-0.0.4 | lib/sup/modes/person-search-results-mode.rb |