     #
     # see: https://github.com/ajaxorg/ace/blob/v1.1.4/lib/ace/commands/default_commands.js
 
-    name    : obj.name
+    name    : model.name
     exec    : exec
-    bindKey : toBindKey obj.binding[0] # binds only first shortcut
+    bindKey : toBindKey model.binding[0] # binds only first shortcut
 
 
   constructor: (options, file) ->

        @emit 'FileContentRestored'  unless @isCurrentContentChanged()

      @editor.gotoLine 0

      @editor.commands.removeCommands [
        'sortlines' # XXX
        'showSettingsMenu'
        'findprevious'
        'findnext'
        'findAll'
        'toggleFoldWidget'
        'toggleParentFoldWidget'
        'passKeysToBrowser'
        'jumptomatching'
        'selecttomatching'
        'expandToMatching'
        'iSearch'
        'iSearchAndGo'
        'iSearchBackwardsAndGo'
        'recenterTopBottom'
        'selectAllMatches'
        'searchAsRegExp'
        'yankNextChar'
        'yankNextWord'
        'occurisearch'
        'cancelSearch'
        'confirmSearch'
        'restartSearch'
        'searchBackward'
        'searchForward'
        'shrinkSearchTerm'
        'extendSearchTermSpace'
      ]

      @prepareEditor()


              else
                @emit.bind this, 'FindAndReplaceViewRequested', replace

        exec or= @editor.commands.commands[model.name].exec
        @editor.commands.addCommand toCommand(model, exec)


  setEditorListeners: ->
