mirror of
https://github.com/atom/atom.git
synced 2026-01-25 14:59:03 -05:00
tweak filefinder, hey it still works
This commit is contained in:
@@ -40,7 +40,10 @@ class FilefinderPane extends Pane
|
||||
_paths = []
|
||||
for dir in File.list window.url
|
||||
continue if /\.git|Cocoa/.test dir
|
||||
_paths.push File.listDirectoryTree dir
|
||||
if File.isDirectory dir
|
||||
_paths.push File.listDirectoryTree dir
|
||||
else
|
||||
_paths.push dir
|
||||
_.reject _.flatten(_paths), (dir) -> File.isDirectory dir
|
||||
|
||||
showFinder: ->
|
||||
|
||||
@@ -5,8 +5,10 @@ module.exports =
|
||||
class Filefinder extends Extension
|
||||
constructor: ->
|
||||
atom.keybinder.load require.resolve "filefinder/key-bindings.coffee"
|
||||
atom.on 'project:load', @startup
|
||||
|
||||
@pane = new FilefinderPane @
|
||||
startup: =>
|
||||
@pane = new FilefinderPane this
|
||||
|
||||
toggle: ->
|
||||
@pane.toggle()
|
||||
@pane?.toggle()
|
||||
Reference in New Issue
Block a user