From ba1669d2b97ab87f5e1862a78e4b6191ff722483 Mon Sep 17 00:00:00 2001 From: anekos Date: Sat, 18 Sep 2010 23:05:18 +0000 Subject: トラッキングする語を変更できるようにサブコマンド追加 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38486 d0d07461-0603-4401-acd4-de1884942a52 --- twittperator.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'twittperator.js') diff --git a/twittperator.js b/twittperator.js index 071a215..220df3f 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1833,7 +1833,18 @@ let PLUGIN_INFO = history.filter(function(st) st.id === id).map(dtdd).forEach(liberator.echo); }, completer: Completers.id() - }) + }), + SubCommand({ + command: ["track"], + description: "Track the specified words.", + action: function(arg) { + TrackingStream.start(arg); + }, + completer: function (context, args) { + if (setting.trackWords) + context.completions = [setting.trackWords, "from global variable"]; + } + }), ]; // }}} function findSubCommand(s) { // {{{ -- cgit v1.2.3