Permalink
Browse files

Implemented a way to restore old behaviour of TODO list to scan the w…

…hole project. Would only scan current file if selected in project drawer after change http://lists.macromates.com/textmate-dev/2009-October/014188.html.
  • Loading branch information...
1 parent 7af4cea commit 000b087291cb75bde763bd75ee2aa7c80d2c6529 Stanley Rost committed Dec 10, 2009
Showing with 5 additions and 4 deletions.
  1. +5 −4 Support/todo.rb
View
@@ -14,10 +14,11 @@
require "#{ENV['TM_SUPPORT_PATH']}/lib/web_preview"
if ARGV.size > 0
- if ARGV[0] == 'file'
- ENV.delete 'TM_PROJECT_DIRECTORY'
- elsif ARGV[0] == 'dir'
- ENV['TM_PROJECT_DIRECTORY'] = File.dirname ENV['TM_FILEPATH']
+ if ARGV[0] == 'dir'
+ ENV['TM_SELECTED_FILES'] = ""
+ ENV['TM_PROJECT_DIRECTORY'] = File.dirname ENV['TM_FILEPATH']
+ elsif ARGV[0] == 'project'
+ ENV['TM_SELECTED_FILES'] = ""
end
end

0 comments on commit 000b087

Please sign in to comment.