From 8a994ccfb3e960a1475be8e4bd0543a0ae181e4e Mon Sep 17 00:00:00 2001 From: teramako Date: Wed, 19 Aug 2009 12:42:09 +0000 Subject: 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 --- copy.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'copy.js') 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){ -- cgit v1.2.3