mirror of
https://github.com/atom/atom.git
synced 2026-01-28 00:08:13 -05:00
41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
<?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 = 'Completions'
|
||
choices = []
|
||
|
||
parsed_choices = TextmateCompletionsParser.new(nil, :scope => :css).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, :scope => :css).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</string>
|
||
<key>output</key>
|
||
<string>insertAsSnippet</string>
|
||
<key>scope</key>
|
||
<string>source.css -meta.property-list</string>
|
||
<key>uuid</key>
|
||
<string>E6FB4209-818E-40F5-9AFF-96E204F52A11</string>
|
||
</dict>
|
||
</plist>
|