   getEditor: ->
     atom.workspace.getActiveTextEditor()
 
+  getPosition: (editor=@getEditor())->
+    editor.getCursorBufferPosition()
+
   dump: ->
     console.log @isLocked()
     @history.dump '', true

        delete @editorSubscriptions[editor.id]

    atom.workspace.observeTextEditors (editor) =>
      @editorSubscriptions[editor.id] = new CompositeDisposable
      @editorSubscriptions[editor.id].add onDidChangePath(editor)
      @editorSubscriptions[editor.id].add onDidChangeCursorPosition(editor)

    @subscriptions.add @observeTextEditors()
    @subscriptions.add @observeActivePaneItem()
    @subscriptions.add @observeOnWillDestroyPaneItem()

  deactivate: ->
    for editorID, disposables of @editorSubscriptions
