diff options
author | snaka | 2009-08-02 10:20:38 +0000 |
---|---|---|
committer | snaka | 2009-08-02 10:20:38 +0000 |
commit | 8f941673e1194b09f429589cff60dcc7ef8930b1 (patch) | |
tree | 04d341b0f59f5e5667c1409acc8700e1a0fdb835 /hateDAopener.js | |
parent | 4daa13f4b3cecee7dc5e6842e99e8f823f097e5c (diff) | |
download | vimperator-plugins-8f941673e1194b09f429589cff60dcc7ef8930b1.tar.bz2 |
Add API
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34709 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'hateDAopener.js')
-rw-r--r-- | hateDAopener.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/hateDAopener.js b/hateDAopener.js index 91530d7..0016d0c 100644 --- a/hateDAopener.js +++ b/hateDAopener.js @@ -41,7 +41,7 @@ let PLUGIN_INFO = <updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/hateDAopener.js</updateURL> <author mail="snaka.gml@gmail.com" homepage="http://vimperator.g.hatena.ne.jp/snaka72/">snaka</author> <license>MIT style license</license> - <version>1.0.0</version> + <version>1.1.0</version> <detail><![CDATA[ == Subject == Open specified page of Hatena::Diary @@ -90,7 +90,9 @@ plugins.hateDAopener = (function(){ // PUBLIC ///////////////////////////////////////////////////////////////{{{ let self = { - // Todo + getEntryList: function(keywords) { + return filteredCandidates(keywords); + }, }; // }}} // COMMAND //////////////////////////////////////////////////////////////{{{ @@ -104,6 +106,7 @@ plugins.hateDAopener = (function(){ liberator.open(str, bang ? liberator.NEW_TAB : liberator.CURRENT_TAB); }, { + default: args.string, completer: function(context) { dump("context", context); hatedaCompleter(context, context.filter.split(' ')); @@ -112,8 +115,11 @@ plugins.hateDAopener = (function(){ showCompletions(); } }); + if (args.string != "") + showCompletions(); }, { bang: true, + count: "*", }, true ); @@ -310,8 +316,4 @@ plugins.hateDAopener = (function(){ // }}} return self; })(); -let(msg="loaded...") { - liberator.echo(msg); - setTimeout(function() commandline.close(), 1000); -} // vim:sw=4 ts=4 et si fdm=marker fenc=utf-8 |