aboutsummaryrefslogtreecommitdiffstats
path: root/memo.js
diff options
context:
space:
mode:
authoranekos2010-04-23 04:59:48 +0000
committeranekos2010-04-23 04:59:48 +0000
commitc4355f294796d6e62ecad8757545d0d39414860b (patch)
tree707bed075148a75ad7ddf234854c56f9e1949ce2 /memo.js
parent8006029b78bebd9f3264549f6005a61e11988136 (diff)
downloadvimperator-plugins-c4355f294796d6e62ecad8757545d0d39414860b.tar.bz2
改行をシュシュッとする
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37259 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'memo.js')
-rw-r--r--memo.js16
1 files changed, 11 insertions, 5 deletions
diff --git a/memo.js b/memo.js
index 28fa3a2..25e588c 100644
--- a/memo.js
+++ b/memo.js
@@ -1,5 +1,5 @@
/* {{{
-Copyright (c) 2008, anekos.
+Copyright (c) 2008-2010, anekos.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
@@ -38,13 +38,13 @@ let PLUGIN_INFO =
<name>{NAME}</name>
<description>Write a memo to the specified file.</description>
<description lang="ja">指定のファイルにメモを書く</description>
- <version>1.0.1</version>
+ <version>1.0.2</version>
<author mail="anekos@snca.net" homepage="http://d.hatena.ne.jp/nokturnalmortum/">anekos</author>
<license>new BSD License (Please read the source code comments of this plugin)</license>
<license lang="ja">修正BSDライセンス (ソースコードのコメントを参照してください)</license>
<updateURL>http://coderepos.org/share/export/27234/lang/javascript/vimperator-plugins/trunk/memo.js</updateURL>
<minVersion>2.0pre</minVersion>
- <maxVersion>2.0pre</maxVersion>
+ <maxVersion>2.3</maxVersion>
<detail><![CDATA[
== Usage ==
:memo:
@@ -119,9 +119,15 @@ let PLUGIN_INFO =
if (arg.string) {
puts(arg.string);
} else {
- liberator.echo(gets());
+ let out = <></>;
+ gets().split(/\n/).reverse().forEach(function (l) {
+ out += <li>{l}</li>
+ });
+ liberator.echo(out);
}
- }
+ },
+ {},
+ true
);
})();