Skip to content

Commit

Permalink
retreive current user timeline with single key stroke
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic0 committed Jul 24, 2011
1 parent 229c723 commit 50e525f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/constant.py
Expand Up @@ -60,6 +60,7 @@
'sendDM': 'D',
'search': 's',
'search_user': 'U',
'search_current_user': '^F',
'search_myself': '^U',
'redraw': '^L',
'fav': 'b',
Expand Down
2 changes: 2 additions & 0 deletions src/keys.py
Expand Up @@ -115,6 +115,8 @@ def handleKeyBinding(self):
# SEARCH MYSELF
elif ch == self.conf.keys['search_myself']:
self.api.my_public_timeline()
elif ch == self.conf.keys['search_current_user']:
self.api.find_current_public_timeline()
# Redraw screen
elif ch == self.conf.keys['redraw']:
self.interface.display_redraw_screen()
Expand Down
4 changes: 4 additions & 0 deletions src/tweets.py
Expand Up @@ -229,6 +229,10 @@ def find_public_timeline(self):
self.load_user_public_timeline()
self.interface.change_buffer('user')

def find_current_public_timeline(self):
self.search_user = self.interface.current_status().user.screen_name
self.interface.change_buffer('user')

def change_search_user(self, nick):
self.search_user = nick
self.timelines['user'].empty()
Expand Down

0 comments on commit 50e525f

Please sign in to comment.