summaryrefslogtreecommitdiff
path: root/alot/ui.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-08-19 22:46:37 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2012-08-19 22:46:37 +0100
commit20ef80a9b24b119ecdb978ed01f629fcbd3ea357 (patch)
treec502ce761844731670078ba1ca81731b203e7f95 /alot/ui.py
parent19238caf01b372e7498b72390ad056e29b5a2f28 (diff)
indicate input_queue in statusbar by default
Diffstat (limited to 'alot/ui.py')
-rw-r--r--alot/ui.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/alot/ui.py b/alot/ui.py
index fbc49834..5254197e 100644
--- a/alot/ui.py
+++ b/alot/ui.py
@@ -106,6 +106,7 @@ class UI(object):
# define callback that resets input queue
def clear(*args):
self.input_queue = []
+ self.update()
key = keys[0]
self.input_queue.append(key)
@@ -129,6 +130,8 @@ class UI(object):
self.notify(e.message, priority='error')
timeout = float(settings.get('input_timeout'))
self.mainloop.set_alarm_in(timeout, clear)
+ # update statusbar
+ self.update()
def _unhandeled_input(self, key):
"""
@@ -450,6 +453,7 @@ class UI(object):
info['buffer_type'] = btype
info['total_messages'] = self.dbman.count_messages('*')
info['pending_writes'] = len(self.dbman.writequeue)
+ info['input_queue'] = ' '.join(self.input_queue)
lefttxt = righttxt = u''
if cb is not None: