 {CompositeDisposable, TextEditor} = require 'atom'
 CursorHistory = require './history'
+path = require 'path'
 
 module.exports =
   history: null

  serialize: ->
    @history?.serialize()

  # createMarker: (editor, point, properties) ->
  #   marker = editor.markBufferPosition point, invalidate: 'never', persistent: false
  #   marker.setProperties properties
  #   marker

  handleCursorMoved: ({oldBufferPosition, newBufferPosition, cursor}) ->
    unless @cursorMoveTracking
      @debug " -- Tracking Skip in CursorMoved"

  needRemember: (oldBufferPosition, newBufferPosition, cursor) ->
    # [FIXME] currently buffer without URI is simply ignored.
    # is there any way to support 'untitled' buffer?
    return false unless cursor.editor.getURI()

    # Line number delata exceeds or not.
