| 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, :yaml)) |
| 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 YAML</string> |
| 23 |
<key>output</key> |
| 24 |
<string>showAsTooltip</string> |
| 25 |
<key>uuid</key> |
| 26 |
<string>90E13791-96CC-4380-8344-48EB84D9E616</string> |
| 27 |
</dict> |
| 28 |
</plist> |