]> git.notmuchmail.org Git - sup/commitdiff
better buffer names
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 23 May 2007 01:47:06 +0000 (01:47 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Wed, 23 May 2007 01:47:06 +0000 (01:47 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@412 5c8cc53c-5e98-4d25-b20a-d8db53a31250

bin/sup
lib/sup/modes/label-list-mode.rb

diff --git a/bin/sup b/bin/sup
index c28aba561030e3db2573a144a98e29bc7fb4ccaf..273ef01914e1d73c19d3d566c6fe9c5cfa73907a 100644 (file)
--- a/bin/sup
+++ b/bin/sup
@@ -114,7 +114,7 @@ begin
 
   log "initializing mail index buffer"
   imode = InboxMode.new
-  ibuf = bm.spawn "inbox", imode
+  ibuf = bm.spawn "Inbox", imode
 
   log "ready for interaction!"
   Logger.make_buf
@@ -184,7 +184,7 @@ begin
             bm.flash "Couldn't parse query."
           end
         when :list_labels
-          b = bm.spawn_unless_exists("Label List") { LabelListMode.new }
+          b = bm.spawn_unless_exists("Label list") { LabelListMode.new }
           b.mode.load_in_background
         when :compose
           mode = ComposeMode.new
index 5c1242fec81bf5436096009333f7597cbe4adffa..2ac88fd63ddd8428b1edd30736e01686623d775c 100644 (file)
@@ -70,7 +70,7 @@ protected
     if label == :inbox
       BufferManager.raise_to_front BufferManager["inbox"]
     else
-      b = BufferManager.spawn_unless_exists(label) do
+      b = BufferManager.spawn_unless_exists("All threads with label '#{label}'") do
         mode = LabelSearchResultsMode.new [label]
       end
       b.mode.load_threads :num => b.content_height