Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Don't focus the tree view with "reveal-active-file" #459

Open

Description

@mehcode

It seems awkward to me. And conflicts with a simple package I'd been using to keep the active file synced with the tree-view.

Perhaps if this package supports the synced behavior than I wouldn't care what the manual action did.

Maybe have a config option for this? Or merge in something similar to #247 ?

Activity

  1. changed the title [-]Don't focus the tree view with "reveal-active-file[/-] [+]Don't focus the tree view with "reveal-active-file"[/+] on May 31, 2015
  2. vraravam commented on Jun 8, 2015

    @vraravam

    Sorry - I dont have enough knowledge of coffeescript/atom API to get this working. Any help would be appreciated. I used a "hack" in my init script, but that has stopped working in the past week or so.

    atom.workspace.observeTextEditors (editor) ->
      editor.onDidSave ->
        atom.commands.dispatch(atom.workspaceView.element, 'tree-view:reveal-active-file')
        atom.views.getView(editor).focus()
      editor.onDidChangePath ->
        atom.commands.dispatch(atom.workspaceView.element, 'tree-view:reveal-active-file')
        atom.views.getView(editor).focus()
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions