-{CompositeDisposable} = require 'atom'
-{basename, extname} = require 'path'
-
+# Kudos http://stackoverflow.com/a/17606289
 String::replaceAll = (search, replacement) ->
-  # Kudos http://stackoverflow.com/a/17606289
-  #
   target = this
   target.replace new RegExp(search, 'g'), replacement
 

    if not defaultTabName
      newTabname = null
    else
      fileName = atom.workspace.getActiveTextEditor().getFileName().toString()
      fileExt = extname(fileName)
      fileBase = basename(fileName, fileExt)

  counter: 0

  activate: (state) ->
    {CompositeDisposable} = require 'atom'

    # Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable
    #
    @subscriptions = new CompositeDisposable
