FileFinder requires the full filePath.

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-01-03 17:06:58 -08:00
parent fe0c6f9a61
commit f0976d4650
2 changed files with 0 additions and 6 deletions

View File

@@ -30,11 +30,6 @@ describe "RootView", ->
rootView.toggleFileFinder()
expect(rootView.fileFinder.urlList.children('li').length).toBe 3
it "remove common path prefix from files", ->
rootView.toggleFileFinder()
commonPathPattern = new RegExp("^" + fs.directory(baseUrl))
expect(rootView.fileFinder.urlList.children('li:first').text()).not.toMatch commonPathPattern
describe "when the editor has no url", ->
it "does not open the FileFinder", ->
expect(rootView.editor.buffer.url).toBeUndefined()

View File

@@ -39,7 +39,6 @@ class RootView extends Template
else
directory = fs.directory @editor.buffer.url
urls = (url for url in fs.list(directory, true) when fs.isFile url)
urls = (url.replace(directory, "") for url in urls)
@fileFinder = FileFinder.build({urls})
@addPane(@fileFinder)
@fileFinder.input.focus()