PageRenderTime 15ms CodeModel.GetById 9ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/misc/Factor.tmbundle/Commands/Watch Word.tmCommand

http://github.com/abeaumont/factor
Unknown | 32 lines | 30 code | 2 blank | 0 comment | 0 complexity | 10026c7d333d18943835d06d84a86290 MD5 | raw file
 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>bundleUUID</key>
 8	<string>8061D2F3-B603-411D-AFFE-61784A07906D</string>
 9	<key>command</key>
10	<string>#!/usr/bin/env ruby
11
12require "#{ENV["TM_BUNDLE_SUPPORT"]}/lib/tm_factor"
13
14doc = STDIN.read
15word = line_current_word(ENV["TM_CURRENT_LINE"], ENV["TM_LINE_INDEX"].to_i)
16puts factor_eval(%Q(#{doc_using_statements(doc)} USE: tools.annotations\n \\ #{word} watch))</string>
17	<key>fallbackInput</key>
18	<string>word</string>
19	<key>input</key>
20	<string>document</string>
21	<key>keyEquivalent</key>
22	<string>^~w</string>
23	<key>name</key>
24	<string>Watch Word</string>
25	<key>output</key>
26	<string>discard</string>
27	<key>scope</key>
28	<string>source.factor</string>
29	<key>uuid</key>
30	<string>1C86869F-1030-4F74-B242-6357A080E127</string>
31</dict>
32</plist>