mirror of
https://github.com/kennethreitz-archive/kcode.tmbundle.git
synced 2026-06-05 23:50:18 +00:00
All set. Best of Sparkup + Zen Coding for now
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//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>command</key>
|
||||
<string>#!/usr/bin/env python
|
||||
import sys; import os; sys.path.append(os.getenv('TM_BUNDLE_SUPPORT')); import sparkup
|
||||
|
||||
# You may change these options to your liking.
|
||||
# Those starting with # are comments (disabled).
|
||||
options = {
|
||||
'textmate': True,
|
||||
'no-last-newline': True,
|
||||
#'start-guide-format': 'Begin %s',
|
||||
#'end-guide-format': 'End %s',
|
||||
}
|
||||
|
||||
sparkup.Router().start(options=options)</string>
|
||||
<key>fallbackInput</key>
|
||||
<string>line</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>keyEquivalent</key>
|
||||
<string>@e</string>
|
||||
<key>name</key>
|
||||
<string>Sizzle Expand</string>
|
||||
<key>output</key>
|
||||
<string>insertAsSnippet</string>
|
||||
<key>scope</key>
|
||||
<string>text.html</string>
|
||||
<key>uuid</key>
|
||||
<string>73A48D2B-D843-42A1-A288-0D1A6380043B</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//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>input</key>
|
||||
<string>selection</string>
|
||||
<key>name</key>
|
||||
<string>Sparkup Expand</string>
|
||||
<key>output</key>
|
||||
<string>replaceSelectedText</string>
|
||||
<key>uuid</key>
|
||||
<string>EF1F0ADB-1A4D-411A-9BDB-FF9837072CB2</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//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>command</key>
|
||||
<string>cd "$TM_BUNDLE_PATH"
|
||||
|
||||
echo "<pre>"
|
||||
[ -d ".git" ] && git pull
|
||||
[ ! -d .git ] && echo "You must install the bundle using Git in order to update via this command. More info: http://github.com/kennethreitz/kCode.tmBundle"
|
||||
|
||||
osascript -e 'tell app "TextMate" to reload bundles'
|
||||
|
||||
echo "</pre>"</string>
|
||||
<key>input</key>
|
||||
<string>selection</string>
|
||||
<key>name</key>
|
||||
<string>Update Bundle via Git</string>
|
||||
<key>output</key>
|
||||
<string>discard</string>
|
||||
<key>uuid</key>
|
||||
<string>FC3E137B-6E92-40C9-BAF6-ED13182D7269</string>
|
||||
</dict>
|
||||
</plist>
|
||||
Reference in New Issue
Block a user