beforeRunningCommand saveActiveFile bundleUUID BB5D89CB-88E5-43C7-9549-304A5CFF5DBC command #!/usr/bin/env ruby require 'rubygems' begin gem 'coderay', '>=0.9.1' require 'coderay' rescue LoadError puts 'I need CodeRay 0.9 or higher. Please run "gem install coderay".' exit end tokens = CodeRay.scan_file(ENV['TM_FILENAME']) puts "%d lines of %s code" % [tokens.loc, tokens.scanner.class.title] input selection keyEquivalent ^@l name Count LOC output showAsTooltip scope source uuid 228AF915-1449-4B85-B6FC-923D55721835