 selector = require './selector'
 
 module.exports = GuessIndent =
+
+  possibleIndentations: [2, 3, 4, 6, 8]
 
   activate: (state) ->
     @manual = new Set()


  select: ->
    items = [{text: "Automatic"}]
    items.push {text: "1 Space", length: 1}
    items.push(({text: "#{n} Spaces", length: n} for n in [2, 3, 4, 6, 8])...)
    items.push {text: "Tabs"}
    s = selector.show items, ({text, length}={}) =>
      ed = atom.workspace.getActiveTextEditor()

      if @isblank l then continue
      if @iscomment [row, 0], ed then continue
      next = @indent l
      # only count differences in indentation
      if next == last then continue
      if next.startsWith last
        @count votes, @after next, last
      else if last.startsWith next
