aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteramako2009-08-19 12:42:09 +0000
committerteramako2009-08-19 12:42:09 +0000
commit8a994ccfb3e960a1475be8e4bd0543a0ae181e4e (patch)
tree5cf557e3da524215e4ce4ab507bf051171d5e7a3
parentba0d7fd2f66ea1e03033c31328243793be3f898b (diff)
downloadvimperator-plugins-8a994ccfb3e960a1475be8e4bd0543a0ae181e4e.tar.bz2
add %CLIP% variable which is previous clipboard string
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@34915 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--copy.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/copy.js b/copy.js
index 98ad341..7cbc906 100644
--- a/copy.js
+++ b/copy.js
@@ -154,6 +154,9 @@ const REPLACE_TABLE = {
htmlsel += serializer.serializeToString(selection.getRangeAt(i).cloneContents());
}
return htmlsel;
+ },
+ get CLIP () {
+ return util.readFromClipboard();
}
};
'hostname pathname host port protocol search hash'.split(' ').forEach(function (name){