PageRenderTime 25ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/misc/Factor.tmbundle/Commands/Vocab Usage.tmCommand

http://github.com/abeaumont/factor
Unknown | 29 lines | 27 code | 2 blank | 0 comment | 0 complexity | b482e73743618f49f6494ad7963f5de1 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
14word = line_current_word(ENV["TM_CURRENT_LINE"], ENV["TM_LINE_INDEX"].to_i)
15puts factor_eval(%Q(USE: tools.crossref\n "#{word}" vocab-usage.))</string>
16	<key>fallbackInput</key>
17	<string>word</string>
18	<key>input</key>
19	<string>none</string>
20	<key>name</key>
21	<string>Vocab Usage</string>
22	<key>output</key>
23	<string>showAsTooltip</string>
24	<key>scope</key>
25	<string>source.factor</string>
26	<key>uuid</key>
27	<string>B1F81321-B760-474F-875D-78FB52752E1B</string>
28</dict>
29</plist>