Merge branch 'master' into asyncfs

This commit is contained in:
Nathan Sobo
2012-01-04 13:58:10 -07:00
3 changed files with 20 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ class FileFinder extends Template
@populateUrlList()
@bindKey 'up', 'moveUp'
@bindKey 'down', 'moveDown'
@bindKey 'enter', 'select'
populateUrlList: ->
@urlList.empty()
@@ -31,6 +32,11 @@ class FileFinder extends Template
findSelectedLi: ->
@urlList.children('li.selected')
select: ->
filePath = @findSelectedLi().text()
atom.open filePath if filePath
moveUp: ->
@findSelectedLi()
.filter(':not(:first-child)')

View File

@@ -46,4 +46,3 @@ class RootView extends Template
@fileFinder = FileFinder.build({urls})
@addPane(@fileFinder)
@fileFinder.input.focus()