Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piouPiouM/159193 to your computer and use it in GitHub Desktop.
Save piouPiouM/159193 to your computer and use it in GitHub Desktop.
TextMate "Convert Selection to Unicode" command for the CSS bundle.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>bundleUUID</key>
<string>4675F24E-6227-11D9-BFB1-000D93589AF6</string>
<key>command</key>
<string>#!/usr/bin/env ruby -wKU
print STDIN.read.unpack("U*").map { |e| sprintf('\%02x', e) }.join(' ')</string>
<key>fallbackInput</key>
<string>character</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
<string>^X</string>
<key>name</key>
<string>Convert Selection to Unicode</string>
<key>output</key>
<string>replaceSelectedText</string>
<key>uuid</key>
<string>30A2527B-0FC7-4620-A746-B5746B5915D3</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment