Skip to content

Commit

Permalink
Implemented a way to restore old behaviour of TODO list to scan the w…
Browse files Browse the repository at this point in the history
…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
Stanley Rost authored and Stanley Rost committed Dec 10, 2009
1 parent 7af4cea commit 000b087
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Support/todo.rb
Expand Up @@ -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

Expand Down

0 comments on commit 000b087

Please sign in to comment.