commit 27c6404b638c73933caa92c39731063e5c6670a7
parent 01ac2a87b75aa8633cbe0e8a33dc0e888b8e62f0
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Thu, 31 Aug 2006 00:57:29 -0700
[project @ b359b737635e4128bb377cb1da6641171375e95c]
[project @ 13]
add Wmii#tags
up shortcuts for + and - tag
add shortcut for removing current tag from client
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/wmii.rb b/wmii.rb
@@ -49,8 +49,12 @@ class Wmii
View.new(self, "/view")
end
+ def tags
+ read('/tags').split
+ end
+
def views
- read('/tags').split.map {|v| View.new self, "/#{v}"}
+ tags.map {|v| View.new self, "/#{v}"}
end
def select_none