jugyo / earthquake

Twitter terminal client with streaming API support.
MIT License
661 stars 94 forks source link

Add separator option #154

Closed joker1007 closed 11 years ago

joker1007 commented 11 years ago

For making easier to read each tweets.

Usage:

Earthquake.config[:separator] = "-"

Output example:

[$aa] joker1007: tweet1 29 Jul 17:09 - earthquake
------------------------------------------------
[$ab] joker1007: tweet2 29 Jul 17:09 - earthquake
------------------------------------------------
[$ac] joker1007: tweet3 29 Jul 17:09 - earthquake
------------------------------------------------
jugyo commented 11 years ago

The idea is good and it would be better that is created as a plugin like below:

Earthquake.init do
  output do |item|
    next unless item['text']
    puts '-' * 72
  end
end

Thanks

joker1007 commented 11 years ago

Thanks!

I did not understand output hook point. I rewrite it as a plugin.

https://gist.github.com/joker1007/6109962