function setCurrentCursorValue (value) {
        var position = $rootScope.editor.getCursorPosition()
        $rootScope.editor.getSession().insert(position, value)
        return value
      }
Append current value to cursor location.