mirror of
https://github.com/atom/atom.git
synced 2026-02-08 21:55:05 -05:00
Merge branch 'master' into asyncfs
This commit is contained in:
@@ -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)')
|
||||
|
||||
@@ -46,4 +46,3 @@ class RootView extends Template
|
||||
@fileFinder = FileFinder.build({urls})
|
||||
@addPane(@fileFinder)
|
||||
@fileFinder.input.focus()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user