Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<?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>5A9D4FC6-6CBE-11D9-A21B-000D93589AF6</string> <key>command</key> <string>res=$(CocoaDialog inputbox --title "Open URL" \ --text "$TM_SELECTED_TEXT" \ --informative-text "URL:" \ --button1 "Okay" --button2 "Cancel") [[ $(head -n1 <<<"$res") == "2" ]] && exit_discard res=$(tail -n1 <<<"$res") /usr/bin/env ruby -e "require 'net/http';require 'uri';Net::HTTP.get_print URI.parse('$res')"</string> <key>fallbackInput</key> <string>none</string> <key>input</key> <string>selection</string> <key>keyEquivalent</key> <string>@O</string> <key>name</key> <string>Open URL in TextMate</string> <key>output</key> <string>openAsNewDocument</string> <key>uuid</key> <string>2111A2E2-7474-4FA0-8025-DB44385E46B4</string> </dict> </plist>
This paste will be private.
From the Design Piracy series on my blog: