forked from textmate/todo.tmbundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
• this command inserts the start of a TODO list wrapped in block comm…
…ent delimiters appropriate for the current language (now we just need ⌅ in the TODO list to insert the next item :) ). git-svn-id: http://svn.textmate.org/trunk/Bundles/TODO.tmbundle@6819 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?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 -wKU | ||
require ENV['TM_SUPPORT_PATH'] + '/lib/escape.rb' | ||
10.times do |n| | ||
start = ENV["TM_COMMENT_START#{"_#{n}" if n > 0}"].to_s.strip | ||
stop = ENV["TM_COMMENT_END#{"_#{n}" if n > 0}"].to_s.strip | ||
unless start.empty? || stop.empty? | ||
print "#{e_sn start}\n\tTODO $0\n#{e_sn stop}" | ||
exit | ||
end | ||
end | ||
fallback = ENV['TM_COMMENT_START'].to_s.strip | ||
print "#{e_sn fallback.sub(/.$/, '\\0 ')}TODO " | ||
</string> | ||
<key>input</key> | ||
<string>none</string> | ||
<key>name</key> | ||
<string>Insert TODO List</string> | ||
<key>output</key> | ||
<string>insertAsSnippet</string> | ||
<key>tabTrigger</key> | ||
<string>todo</string> | ||
<key>uuid</key> | ||
<string>D2F7F545-5149-47B9-AC62-DBDC6ACAB9BB</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters