Reveal file in sidebar


#1

Is there a “reveal in sidebar” function like in ST2 when I right click on an open file? I can’t seem to find it if exists.


#2

You can use cmd-shift-\ to reveal the current open file in the tree view. We don’t have a menu item for this yet.


#3

@nathansobo the shortcut is great, thank you!


#4

On my Danish keyboard, \ sits on alt-shift-7, however this command won’t trigger when I do cmd-alt-shift-7, instead it triggers the “Tree View” toggle on cmd-\.

Is there a way for me to trigger the “Reveal active file” shortcut?


#5

Edit your keymap.cson file (goto Atom>Open Your Keymap. And paste this into your file:

  '.platform-darwin':
    'ctrl-cmd-r': 'tree-view:reveal-active-file'

You can change the shortcut by changing the “ctrl-cmd-r” to something you prefer.


#6

this work on me.


#7

The tree-view package now supports this feature through the autoReveal option.

See the commit here:

https://github.com/atom/tree-view/pull/754/files


#8

Thanks. I’ve done it by editing this file. Preferences -> Open Config Folder -> config.cson
Copy paste this in json into the file. Just copied editor also for reference. No need to change their values.
“*”:
editor:
fontSize: 13
invisibles: {}
scrollPastEnd: true
softWrap: true
“tree-view”:
autoReveal: true