Blob of Commands/Debug - Copy inspection to clipboard as pretty print.tmCommand (raw blob data)

1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3 <plist version="1.0">
4 <dict>
5 <key>beforeRunningCommand</key>
6 <string>nop</string>
7 <key>command</key>
8 <string>#!/usr/bin/env ruby
9
10 require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/ruby_amp.rb"
11 d = RubyAMP::RemoteDebugger.new
12 exit unless d.connected?
13
14 what = RubyAMP::Inspect.get_selection
15 RubyAMP::Inspect.copy_to_clipboard(d.evaluate(what, :current, :pp))
16 puts "Copied value of #{what} to clipboard"</string>
17 <key>input</key>
18 <string>document</string>
19 <key>keyEquivalent</key>
20 <string>^~i</string>
21 <key>name</key>
22 <string>Debug - Copy inspection to clipboard as pretty print</string>
23 <key>output</key>
24 <string>showAsTooltip</string>
25 <key>uuid</key>
26 <string>B79A89E1-3301-499B-9D5E-5E0B87EB15BD</string>
27 </dict>
28 </plist>