Files
atom/bundles/css.tmbundle/Commands/CodeCompletion CSS Property Values.tmCommand
2012-09-28 17:36:36 -06:00

41 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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>467B298F-6227-11D9-BFB1-000D93589AF6</string>
<key>command</key>
<string>#!/usr/bin/env ruby
require "#{ENV['TM_SUPPORT_PATH']}/lib/codecompletion"
preference = 'Property Value Completions'
choices = []
parsed_choices = TextmateCompletionsParser.new(nil, :scope =&gt; :css_values).to_ary
choices += parsed_choices if parsed_choices
choices += ['--']
plist_choices = TextmateCompletionsPlist.new( "#{ENV['TM_BUNDLE_PATH']}/Preferences/#{preference}.tmPreferences" ).to_ary
choices += plist_choices if plist_choices
print TextmateCodeCompletion.new(choices,STDIN.read).to_snippet
</string>
<key>fallbackInput</key>
<string>line</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
<string>~</string>
<key>name</key>
<string>CodeCompletion CSS Property Values</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
<string>source.css meta.property-value</string>
<key>uuid</key>
<string>35DFB6D6-E48B-4907-9030-019904DA0C5B</string>
</dict>
</plist>