diff options
-rw-r--r-- | alot/defaults/alot.rc.spec | 10 | ||||
-rw-r--r-- | alot/ui.py | 4 |
2 files changed, 9 insertions, 5 deletions
diff --git a/alot/defaults/alot.rc.spec b/alot/defaults/alot.rc.spec index f57224bc..63689e9f 100644 --- a/alot/defaults/alot.rc.spec +++ b/alot/defaults/alot.rc.spec @@ -91,7 +91,7 @@ show_statusbar = boolean(default=True) # * `{buffer_no}`: index of this buffer in the global buffer list # * `{total_messages}`: total numer of messages indexed by notmuch # * `{pending_writes}`: number of pending write operations to the index -bufferlist_statusbar = mixed_list(string, string, default=list('[{buffer_no}: bufferlist]','total messages: {total_messages}')) +bufferlist_statusbar = mixed_list(string, string, default=list('[{buffer_no}: bufferlist]','{input_queue} total messages: {total_messages}')) # Format of the status-bar in search mode. # This is a pair of strings to be left and right aligned in the status-bar. @@ -101,7 +101,7 @@ bufferlist_statusbar = mixed_list(string, string, default=list('[{buffer_no}: bu # * `{querystring}`: search string # * `{result_count}`: number of matching messages # * `{result_count_positive}`: 's' if result count is greater than 0. -search_statusbar = mixed_list(string, string, default=list('[{buffer_no}: search] for "{querystring}"','{result_count} of {total_messages} messages')) +search_statusbar = mixed_list(string, string, default=list('[{buffer_no}: search] for "{querystring}"','{input_queue} {result_count} of {total_messages} messages')) # Format of the status-bar in thread mode. # This is a pair of strings to be left and right aligned in the status-bar. @@ -112,13 +112,13 @@ search_statusbar = mixed_list(string, string, default=list('[{buffer_no}: search # * `{subject}`: subject line of the thread # * `{authors}`: abbreviated authors string for this thread # * `{message_count}`: number of contained messages -thread_statusbar = mixed_list(string, string, default=list('[{buffer_no}: thread] {subject}','total messages: {total_messages}')) +thread_statusbar = mixed_list(string, string, default=list('[{buffer_no}: thread] {subject}','{input_queue} total messages: {total_messages}')) # Format of the status-bar in taglist mode. # This is a pair of strings to be left and right aligned in the status-bar. # These strings may contain variables listed at :ref:`bufferlist_statusbar <bufferlist-statusbar>` # that will be substituted accordingly. -taglist_statusbar = mixed_list(string, string, default=list('[{buffer_no}: taglist]','total messages: {total_messages}')) +taglist_statusbar = mixed_list(string, string, default=list('[{buffer_no}: taglist]','{input_queue} total messages: {total_messages}')) # Format of the status-bar in envelope mode. # This is a pair of strings to be left and right aligned in the status-bar. @@ -126,7 +126,7 @@ taglist_statusbar = mixed_list(string, string, default=list('[{buffer_no}: tagli # these strings may contain variables: # # * `{to}`: To-header of the envelope -envelope_statusbar = mixed_list(string, string, default=list('[{buffer_no}: envelope]','total messages: {total_messages}')) +envelope_statusbar = mixed_list(string, string, default=list('[{buffer_no}: envelope]','{input_queue} total messages: {total_messages}')) # timestamp format in `strftime format syntax <http://docs.python.org/library/datetime.html#strftime-strptime-behavior>`_ timestamp_format = string(default=None) @@ -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: |