Permalink
Browse files

Update TM2 bundle

  • Loading branch information...
1 parent 8fdf811 commit c467741f928976f67d801fe4b744ab287e6faa4e @elia committed Nov 24, 2012
@@ -6,9 +6,12 @@
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby -wKU
-file = File.expand_path("~/.timetap.tm2.current_file")
-File.open(file, 'w') do |f|
- f &lt;&lt; ENV['TM_FILEPATH']
+current_file = ENV['TM_FILEPATH'].to_s
+
+if File.exist? current_file
+ system 'touch', current_file
+ file = File.expand_path("~/.timetap.tm2.current_file")
+ File.open(file, 'w') { |f| f &lt;&lt; current_file }
end
</string>
<key>input</key>
@@ -24,7 +27,7 @@ end
<key>outputLocation</key>
<string>discard</string>
<key>semanticClass</key>
- <string>callback.application.did-activate</string>
+ <string>callback.document.did-save</string>
<key>uuid</key>
<string>1C8DC4BC-DF6C-4E8C-A65C-E6A7FAF6911E</string>
<key>version</key>
@@ -8,6 +8,8 @@
<string>Elia Schito</string>
<key>description</key>
<string>TimeTap hooks.</string>
+ <key>isEnabled</key>
+ <true/>
<key>name</key>
<string>TimeTap</string>
<key>uuid</key>
@@ -1,36 +0,0 @@
-<?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>#!/usr/bin/env ruby -wKU
-current_file = ENV['TM_FILEPATH'].to_s
-
-if File.exist? current_file
- system 'touch', current_file
- file = File.expand_path("~/.timetap.tm2.current_file")
- File.open(file, 'w') { |f| f &lt;&lt; current_file }
-end
-</string>
- <key>input</key>
- <string>none</string>
- <key>inputFormat</key>
- <string>text</string>
- <key>name</key>
- <string>Record current file</string>
- <key>outputCaret</key>
- <string>afterOutput</string>
- <key>outputFormat</key>
- <string>text</string>
- <key>outputLocation</key>
- <string>discard</string>
- <key>semanticClass</key>
- <string>callback.document.did-save</string>
- <key>uuid</key>
- <string>1C8DC4BC-DF6C-4E8C-A65C-E6A7FAF6911E</string>
- <key>version</key>
- <integer>2</integer>
-</dict>
-</plist>
@@ -1,18 +0,0 @@
-<?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>contactEmailRot13</key>
- <string>creyryvn@tznvy.pbz</string>
- <key>contactName</key>
- <string>Elia Schito</string>
- <key>description</key>
- <string>TimeTap hooks.</string>
- <key>isEnabled</key>
- <true/>
- <key>name</key>
- <string>TimeTap</string>
- <key>uuid</key>
- <string>BD5A5988-9E98-48DC-BBB5-76D7D9CE3830</string>
-</dict>
-</plist>

0 comments on commit c467741

Please sign in to comment.