   isearch: (word)->
     @_update_statusbar word,true
     return unless word
-    editor = atom.workspace.getActiveEditor()
+    editor = atom.workspace.getActiveTextEditor()
     return if not editor or editor.mini
     buffer_end = editor.getBuffer().getEndPosition()
     re = @_create_re word

          @isearch_word += e.Text
          @isearch @isearch_word

    @keymap_listener = atom.keymap.onDidMatchBinding (e)=>
      if @isearch_tile
        if e.keystrokes.length == 1
          @isearch_word += e.keystrokes

    false

  set_mark: ->
    editor = atom.workspace.getActiveTextEditor()
    editorView = atom.views.getView editor
    $(editorView).toggleClass "transient-marked"
    cursor.clearSelection() for cursor in editor.getCursors()

  kill_region_or_backward_word: ->
    editor = atom.workspace.getActiveTextEditor()
    if editor.getSelection().isEmpty()
      @kill_backward_word()
    else
      @kill_region()

  _push_regeon_to_killring: ->
    editor = atom.workspace.getActiveTextEditor()
    editorView = atom.views.getView editor
    $(editorView).removeClass "transient-marked"
    texts = (s.getText() for s in editor.getSelections())
