 
     grammar = editor.getGrammar()
     @lang = grammar.name
+    @filename = editor.getTitle()
 
     # Determine if no language is selected
     if grammar.name == "Null Grammar" or grammar.name == "Plain Text"

        cwd: atom.project.getPath()
        env: process.env

      stdout = (output) => @display(@lang, "stdout", output)
      stderr = (output) => @display(@lang, "stderr", output)
      exit = (return_code) -> console.log("Exited with #{return_code}")

      @bufferedProcess = new BufferedProcess({command, args, options, stdout, stderr, exit})

  @lang: null
  @code: null
  @err: null
  @filename: null

  @content: ->
    @div class: 'tool-panel panel panel-bottom padding script', outlet: 'script', tabindex: -1, =>
