# HG changeset patch # User Shingo W. Kagami # Date 1302846759 -32400 # Node ID d82f8c4f1faddf784931c3120597330783e57c7d # Parent 2fa712f71fdafec289b805325ec73ba335ccbafd Add a copy.js setting for Scrapbook plus. diff -r 2fa712f71fda -r d82f8c4f1fad .vimperatorrc --- a/.vimperatorrc Thu Mar 10 04:04:46 2011 +0900 +++ b/.vimperatorrc Fri Apr 15 14:52:39 2011 +0900 @@ -62,6 +62,11 @@ s = s.replace(/\n/, "\n "); return t + ":\n - " + u + (s? ("\n >>\n " + s + "\n <<"): ''); }}, + { label: 'sc', custom: function() { + var t = content.document.title; + var u = content.location.href.replace(/^.+ScrapBook\/data\//, ''); + return '[sc] &scrapbook(' + t + ',' + u + ');'; + }}, { label: 'datestr', custom: function() { return '[' + content.location.href.match(/\d\d\d\d-\d\d-\d\d-\d+/) + ']'; }},