Converted plugin to support Sublime Text 3