 
   destroy: ->
     @unsubscribe()
+
+  subscribeToFilePath: (filePath) ->
+    @file = new File(filePath)
+    @trigger 'title-changed'
+    @handleEvents()
+    @renderMarkdown()
 
   resolveEditor: (editorId) ->
     resolve = =>

    if atom.workspace?
      resolve()
    else
      atom.packages.once 'activated', =>
        resolve()
        @renderMarkdown()


    if @editorId?
      @resolveEditor(@editorId)
    else
      if atom.workspace?
        @subscribeToFilePath(filePath)
      else
        @subscribe atom.packages.once 'activated', =>
          @subscribeToFilePath(filePath)

  serialize: ->
    deserializer: 'MarkdownPreviewView'
