- ``mentions`` will show mentions timeline. ``mentions 7`` will show 7\r
mention tweets.\r
\r
+- ``conversation 12`` will show the chain of replies prior to the tweet with *[id=12]*.\r
+\r
- ``whois @dtvd88`` will show profile of @dtvd88.\r
\r
- ``view @mdo`` will show @mdo ’s timeline. ``view @dmo 9`` will print\r
printNicely('')
+def conversation():
+ """
+ Conversation view
+ """
+ t = Twitter(auth=authen())
+ try:
+ id = int(g['stuff'].split()[0])
+ except:
+ printNicely(red('Sorry I can\'t understand.'))
+ return
+ tid = c['tweet_dict'][id]
+ tweet = t.statuses.show(id=tid)
+ limit = 9
+ thread_ref = []
+ thread_ref.append (tweet)
+ prev_tid = tweet['in_reply_to_status_id']
+ while prev_tid and limit:
+ limit -= 1
+ tweet = t.statuses.show(id=prev_tid)
+ prev_tid = tweet['in_reply_to_status_id']
+ thread_ref.append (tweet)
+
+ for tweet in reversed(thread_ref):
+ draw(t=tweet)
+ printNicely('')
+
+
def tweet():
"""
Tweet
light_green('home 7') + ' will show 7 tweets.\n'
usage += s * 2 + light_green('mentions') + ' will show mentions timeline. ' + \
light_green('mentions 7') + ' will show 7 mention tweets.\n'
+ usage += s * 2 + light_green('conversation 12') + ' will show the chain of replies prior to the tweet with ' + \
+ light_yellow('[id=12]') + '.\n'
usage += s * 2 + light_green('whois @mdo') + ' will show profile of ' + \
magenta('@mdo') + '.\n'
usage += s * 2 + light_green('view @mdo') + \
'home',
'view',
'mentions',
+ 'conversation',
't',
'rt',
'quote',
home,
view,
mentions,
+ conversation,
tweet,
retweet,
quote,
[], # home
['@'], # view
[], # mentions
+ [], # conversation
[], # tweet
[], # retweet
[], # quote