aboutsummaryrefslogtreecommitdiffstats
path: root/xpcom_inspector.js
diff options
context:
space:
mode:
authorhogelog2009-02-04 21:30:56 +0000
committerhogelog2009-02-04 21:30:56 +0000
commit4f0deb90c6572cb91b766af94032f7b2472b914f (patch)
tree65ffe43252f18e59641737cb50ff219e196614dd /xpcom_inspector.js
parent16a3b24a91a4a5151b8998ecd8698adb69c7ea9a (diff)
downloadvimperator-plugins-4f0deb90c6572cb91b766af94032f7b2472b914f.tar.bz2
* fix completion
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29555 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'xpcom_inspector.js')
0 files changed, 0 insertions, 0 deletions
VER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ################################################################################### # http://sourceforge.jp/projects/opensource/wiki/licenses%2Fnew_BSD_license # # に参考になる日本語訳がありますが、有効なのは上記英文となります。 # ################################################################################### }}} */ // PLUGIN_INFO {{{ let PLUGIN_INFO = <VimperatorPlugin> <name>{NAME}</name> <description>Copy the escaped-unicode text to the clipboard.</description> <description lang="ja">Unicode エスケープされたテキストをクリップボードにコピーする</description> <version>1.0.1</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>https://github.com/vimpr/vimperator-plugins/raw/master/unicode.js</updateURL> <minVersion>2.0pre</minVersion> <maxVersion>2.0pre</maxVersion> <detail><![CDATA[ == Usage == :uc <MULTIBYTE_TEXT> :uc! <ESCAPED_UNICODE_TEXT> ]]></detail> </VimperatorPlugin>; // }}} (function () { function escape (s) s.toSource().replace(/^[^"]+"|"[^"]+$/g,''); function unescape (s) s.replace(/\\u([a-f\d]{4})/gi,function(_,c)String.fromCharCode(parseInt(c,16))); function copyAndEcho (s) (liberator.echo(s)+util.copyToClipboard(s)); commands.addUserCommand( ['unicode', 'uc'], 'unicode (un)escape', function (arg) copyAndEcho((arg.bang ? unescape : escape)(arg.string)), {argCount: '*', bang: true}, true ); })();