aboutsummaryrefslogtreecommitdiffstats
path: root/plugin_loader.js
diff options
context:
space:
mode:
authoranekos2008-11-07 11:33:41 +0000
committeranekos2008-11-07 11:33:41 +0000
commit3a78c1d1bcd4c07f6dca28d6bde03cf175699bd1 (patch)
treefa8097e1411bea42216d7375a9ddc1c057989424 /plugin_loader.js
parent820cdacb35f56eb4054ca2cf4c6fc3470aab6cee (diff)
downloadvimperator-plugins-3a78c1d1bcd4c07f6dca28d6bde03cf175699bd1.tar.bz2
:so するときにログ出力するように。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@22945 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'plugin_loader.js')
-rw-r--r--plugin_loader.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugin_loader.js b/plugin_loader.js
index 7cdd96c..0350332 100644
--- a/plugin_loader.js
+++ b/plugin_loader.js
@@ -1,8 +1,11 @@
// ==VimperatorPlugin==
// @name Plugin Loader
+// @description to load plugins from specified directory at starting up Vimperator.
// @description-ja 指定(ディレクトリ|プラグイン)を起動時にロードする
// @license Creative Commons 2.1 (Attribution + Share Alike)
// @version 2.3
+// @minVersion 1.2
+// @maxVersion 2.0Pre
// @author anekos
// ==/VimperatorPlugin==
//
@@ -35,8 +38,10 @@
roots.forEach(function (root) {
let files = io.readDirectory(io.getFile(root), true);
files.forEach(function (file) {
- if (filter.test(file.path))
+ if (filter.test(file.path)) {
+ liberator.log("Sourcing: " + file.path);
io.source(file.path, false);
+ }
});
});