         if line
             pos = [~~line - 1, 0]
             editor.setCursorBufferPosition pos
+            editor.scrollToBufferPosition pos, {center: true}
 
         path = e.target.getAttribute('data-path')
         console.log("path, open file:", path)

            item.className = 'my-line-class'
            decoration = editor.decorateMarker(marker, {item, type: 'highlight', class: 'my-line-class'})
            console.log "deco", decoration, marker
            decorations.push(decoration)
)



el.addEventListener('mouseout',
    (e) ->
        if lastPos
            editor.scrollToBufferPosition lastPos, {center: true}
        #return
        decorations.forEach (d) ->
            d.destroy()
)


lastPos = null

el.addEventListener('mouseover',
    (e) ->
