Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (35 sloc) 1005 Bytes
<?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>command</key>
<string>#!/usr/bin/env ruby
text = STDIN.read
lines = text.split("\n")
row = ENV['TM_LINE_NUMBER'].to_i
m = lines[row-1].scan(/^\[\d+\]/)[0]
txt = text.slice(0..text.index(m))
lines = txt.split("\n")
line = lines.length
last_line = lines.last
column = last_line.scan(/^\s*@[^\s]+\s+/)[0].length + 1
`open "txmt://open?line=#{line}&amp;column=#{column}"`
</string>
<key>fallbackInput</key>
<string>document</string>
<key>input</key>
<string>document</string>
<key>keyEquivalent</key>
<string>^{</string>
<key>name</key>
<string>Go to Action</string>
<key>output</key>
<string>discard</string>
<key>scope</key>
<string>text.gtdalt meta.note</string>
<key>uuid</key>
<string>14CE2968-B4F4-4AB5-8A26-5F0EC156E1D0</string>
</dict>
</plist>
Jump to Line
Something went wrong with that request. Please try again.