Skip to content

Instantly share code, notes, and snippets.

@dbaba
Created September 25, 2014 08:57
Show Gist options
  • Save dbaba/8a66b8191438000cb730 to your computer and use it in GitHub Desktop.
Save dbaba/8a66b8191438000cb730 to your computer and use it in GitHub Desktop.
javascript-node.tmbundle fix. Make sure 'Output' is 'Show in New Window' and 'Format' is 'HTML' in Bundle Editor.
#!/usr/bin/env ruby18 -wKU
require "#{ENV["TM_SUPPORT_PATH"]}/lib/escape"
require "#{ENV['TM_SUPPORT_PATH']}/lib/tm/save_current_document"
require "#{ENV["TM_SUPPORT_PATH"]}/lib/tm/executor"
TextMate.save_if_untitled('node')
TextMate::Executor.run(e_sh("node"), ENV['TM_FILEPATH'], :version_args => '-v', :version_regex => /(\w+ [\d.]+).*/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment