diff options
author | anekos | 2010-04-04 14:32:29 +0000 |
---|---|---|
committer | anekos | 2010-04-04 14:32:29 +0000 |
commit | aab42b87d106213d171674d5542d631f4c7a01ee (patch) | |
tree | ca259bf187e43df37f4d895503589d2ec5463f99 | |
parent | 97e62cc1fe6a07932972a0c27517142936035c72 (diff) | |
download | vimperator-plugins-aab42b87d106213d171674d5542d631f4c7a01ee.tar.bz2 |
let g:hints_copy_maps = "c C <nop> p" のような設定方法を許すようにした
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37155 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | hints-yank-paste.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hints-yank-paste.js b/hints-yank-paste.js index 470ab79..6e37d8c 100644 --- a/hints-yank-paste.js +++ b/hints-yank-paste.js @@ -4,11 +4,11 @@ var PLUGIN_INFO = <description>Adds "Yank element's text/html/attrs" or "Paste to element" hint mode</description> <description lang="ja">要素の text/html/attrs をコピーするヒントモードを追加する</description> <minVersion>2.0pre</minVersion> - <maxVersion>2.0</maxVersion> + <maxVersion>2.3</maxVersion> <updateURL>http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk/hints-yank-paste.js</updateURL> <author mail="hotchpotch@gmail.com" homepage="http://d.hatena.ne.jp/secondlife/">Yuichi Tateno</author> <license>MPL 1.1/GPL 2.0/LGPL 2.1</license> - <version>0.1</version> + <version>0.1.1</version> <detail><![CDATA[ ; の hint モードにおいて、c/C で要素の text / HTML / attributes をクリップボードにコピー(Yank)できるようにするプラグインです。 ソースコードや段落, 画像のURL, input/textarea の値などをさくっとコピーしたり、どこかの部分の HTML 自体をコピりたいなー、という時に活用できます。 @@ -59,6 +59,8 @@ options.add(["hintpastetags"], "string", DEFAULT_PASTE_HINTTAGS); let maps = liberator.globalVariables.hints_copy_maps || DEFAULT_MAPS; +if (typeof maps === "string") + maps = maps.split(/\s+/); var stripText = function(text) { text = text.replace(/^[ \t]+(?:\r\n|[\r\n])|\s+$/m, ''); //mg? |