Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 77bea33bc8
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (35 sloc) 1.055 kb
<?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
require ENV['TM_BUNDLE_SUPPORT'] + '/lib/GTDUtils.rb'
require ENV['TM_SUPPORT_PATH'] + '/lib/ui.rb'
line = STDIN.read
contextList = GTDContexts.contexts
choice = TextMate::UI.menu(contextList)
if choice then
print line.sub(/@(\S+)($|\s+)/) {|text,space| "@" + e_sn(contextList[choice]) + ((space.nil? or space == "") ? " " : space)+"$0"}
else
print e_sn(line)
end
</string>
<key>fallbackInput</key>
<string>line</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
<string>@</string>
<key>name</key>
<string>Change Context</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
<string>text.gtdalt meta.action</string>
<key>uuid</key>
<string>2B282247-5930-462F-8D6E-54ADF228EC49</string>
</dict>
</plist>
Jump to Line
Something went wrong with that request. Please try again.