Subject: [sup-talk] [PATCH] Add tab-completion to multi add labels (;l)

From: [email-masked] (Marc Hartstein)
Date: Fri, 4 Apr 2008 15:51:47 -0400

---
 lib/sup/modes/thread-index-mode.rb |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb
index e24d7e0..0f9d12d 100644
--- a/lib/sup/modes/thread-index-mode.rb
+++ b/lib/sup/modes/thread-index-mode.rb
@@ -440,9 +440,8 @@ EOS
   end
 
   def multi_edit_labels threads
-    answer = BufferManager.ask :add_labels, "add labels: "
-    return unless answer
-    user_labels = answer.split(/\s+/).map { |l| l.intern }
+    user_labels = BufferManager.ask_for_labels :add_labels, "Add labels: ", [], @hidden_labels
+    return unless user_labels
     
     hl = user_labels.select { |l| @hidden_labels.member? l }
     if hl.empty?
-- 
1.5.3.7

---

From: [email-masked] (William Morgan)
Date: Wed, 30 Apr 2008 18:13:02 -0700

Applied directly to master. Thanks!

-- 
William <wmorgan-sup at masanjin.net>