Skip to content
Browse files

Add web preview command.

  • Loading branch information...
1 parent 2e855b7 commit 30944fb22343cc9e56f31fa0717bb10e30b69120 @infininight infininight committed Sep 22, 2011
Showing with 26 additions and 0 deletions.
  1. +25 −0 Commands/Show Web Preview.tmCommand
  2. +1 −0 info.plist
View
25 Commands/Show Web Preview.tmCommand
@@ -0,0 +1,25 @@
+<?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>#!/bin/sh
+if [[ -e "$TM_FILEPATH" ]]; then
+ echo "&lt;base href=\"file://$TM_FILEPATH\"&gt;"
+fi
+cat
+</string>
+ <key>input</key>
+ <string>document</string>
+ <key>keyEquivalent</key>
+ <string>^~@p</string>
+ <key>name</key>
+ <string>Show Web Preview</string>
+ <key>output</key>
+ <string>showAsHTML</string>
+ <key>uuid</key>
+ <string>AC5F664E-86BA-4D81-B6CE-1B12F69FA490</string>
+</dict>
+</plist>
View
1 info.plist
@@ -26,6 +26,7 @@
<string>637CEA2B-578C-429C-BB74-30E8D42BFA22</string>
<string>3F26240E-6E4A-11D9-B411-000D93589AF6</string>
<string>------------------------------------</string>
+ <string>AC5F664E-86BA-4D81-B6CE-1B12F69FA490</string>
<string>970EE6B4-A091-11D9-A5A2-000D93C8BE28</string>
<string>B8651C6E-A05E-11D9-86AC-000D93C8BE28</string>
<string>------------------------------------</string>

0 comments on commit 30944fb

Please sign in to comment.
Something went wrong with that request. Please try again.