 
   getSuggestions: ({bufferPosition, editor}) ->
     # return unless @isEditingAnAtomPackageFile(editor)
+    file = editor.getText()
+    regex = /(Given|And|When|Then)(.*)/g
+    match = regex.exec(file)
+    console.log match
+
     line = editor.getTextInRange([[bufferPosition.row, 0], bufferPosition])
-    @getCompletions(line)
+    @getCompletions(line, file)
 
   load: ->
-    @loadCompletions()
     atom.project.onDidChangePaths => @scanProjectDirectories()
     @scanProjectDirectories()
 

          error = parseError
      callback(error, metadata)

  loadCompletions: ->
    @completions ?= {}

    fs.readFile path.resolve(__dirname, '..', 'completions.json'), (error, content) =>
      return if error?
      @completions = {}

      @loadProperty('atom', 'Atom', classes)
      return

  getCompletions: (line, file) ->
    completions = []
    match =  propertyPrefixPattern.exec(line)?[1]
    return completions unless match

    results = []
    regex = /(Given|And|When|Then)(.*)/g
    while (myRegexArray = regex.exec(file)) != null
      results.push({"text":myRegexArray[2].replace /^\s+|\s+$/g, ""})
    return results

  getPropertyClass: (name) ->
    atom[name]?.constructor?.name
