From 000b087291cb75bde763bd75ee2aa7c80d2c6529 Mon Sep 17 00:00:00 2001 From: Stanley Rost Date: Thu, 10 Dec 2009 10:13:49 +0100 Subject: [PATCH] Implemented a way to restore old behaviour of TODO list to scan the whole project. Would only scan current file if selected in project drawer after change http://lists.macromates.com/textmate-dev/2009-October/014188.html. --- Support/todo.rb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Support/todo.rb b/Support/todo.rb index 7da5d32..cb130cf 100644 --- a/Support/todo.rb +++ b/Support/todo.rb @@ -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