           keydown 'd'
           keydown '/'
           editor.commandModeInputView.editor.setText 'def'
-          editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'
+          editor.commandModeInputView.editor.trigger 'core:confirm'
           expect(editor.getText()).toEqual "def\nabc\ndef\n"
 
         it "repeats correctly with operators", ->
           keydown 'd'
           keydown '/'
           editor.commandModeInputView.editor.setText 'def'
-          editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'
+          editor.commandModeInputView.editor.trigger 'core:confirm'
 
           keydown '.'
           expect(editor.getText()).toEqual "def\n"

      it "moves the cursor backwards to the specified search pattern", ->
        keydown '?'
        editor.commandModeInputView.editor.setText 'def'
        editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'
        expect(editor.getCursorBufferPosition()).toEqual [3, 0]

      describe "repeating", ->
        beforeEach ->
          keydown '?'
          editor.commandModeInputView.editor.setText 'def'
          editor.commandModeInputView.trigger 'vim-mode:command-mode-input-confirm'

        describe 'the n keybinding', ->
          it "repeats the last search backwards", ->


        # How to simulate typing?
        editor.commandModeInputView.editor.setText 'def'
        editor.commandModeInputView.editor.trigger 'core:confirm'

        expect(editor.getCursorBufferPosition()).toEqual [1, 0]

