diff options
author | anekos | 2010-09-18 23:05:18 +0000 |
---|---|---|
committer | anekos | 2010-09-18 23:05:18 +0000 |
commit | ba1669d2b97ab87f5e1862a78e4b6191ff722483 (patch) | |
tree | da254b80e8d273ccd289d52322fe5c21cae62cd0 | |
parent | 693742abce640c1ac8dd59ae9f32abef914cc299 (diff) | |
download | vimperator-plugins-ba1669d2b97ab87f5e1862a78e4b6191ff722483.tar.bz2 |
トラッキングする語を変更できるようにサブコマンド追加
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38486 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-x | twittperator.js | 13 |
1 files changed, 12 insertions, 1 deletions
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) { // {{{ |