From 32775cd9d1861ebb1564c56808308b4db4675aaa Mon Sep 17 00:00:00 2001
From: anekos
Date: Tue, 24 Aug 2010 16:48:34 +0000
Subject: tw!info追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38351 d0d07461-0603-4401-acd4-de1884942a52
---
twittperator.js | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/twittperator.js b/twittperator.js
index 8493d08..f09d13a 100755
--- a/twittperator.js
+++ b/twittperator.js
@@ -28,7 +28,7 @@ let PLUGIN_INFO =
twittperator
Twitter Client using ChirpStream
OAuth対応Twitterクライアント
- 1.3.0
+ 1.4.0
2.3
2.4
teramako
@@ -1784,6 +1784,28 @@ let PLUGIN_INFO =
Twitter.destroy(m[0]);
},
completer: Completers.id(seleceMine)
+ }),
+ SubCommand({
+ command: ["info"],
+ description: "Display status information",
+ action: function(arg) {
+ function dtdd(obj) {
+ let items = <>>;
+ for (let [n, v] in Iterator(obj)) {
+ let cont = (v && typeof v === "object") ? dtdd(v) : v;
+ items += <>
{n}{cont}>;
+ }
+
+ return {items}
;
+ }
+
+ let m = arg.match(/^\d+/);
+ if (!m)
+ return;
+ let id = parseInt(m[0], 10);
+ history.filter(function(st) st.id === id).map(dtdd).forEach(liberator.echo);
+ },
+ completer: Completers.id()
})
]; // }}}
--
cgit v1.2.3