 {ElementBuilder} = require './utils'
 
-modeToContent =
+modeStringToContent =
   "normal": "Normal"
   'insert': "Insert"
   'insert.replace': "Replace"

  "visual.characterwise": "Visual Char"
  "visual.linewise": "Visual Line"
  "visual.blockwise": "Visual Block"

module.exports =
class StatusBarManager

    modeString = mode
    modeString += "." + submode if submode?
    @element.className = "#{@prefix}-#{mode}"
    @element.textContent = modeStringToContent[modeString]

  attach: ->
    @tile = @statusBar.addRightTile(item: @container, priority: 20)
