finished search feature!

This commit is contained in:
Qingping Hou
2012-02-19 14:41:44 +08:00
parent f9804a1c92
commit 060ad5cb01
3 changed files with 111 additions and 74 deletions

View File

@@ -190,8 +190,14 @@ function FileChooser:choose(ypos, height)
elseif ev.code == KEY_S then
-- invoke search input
keywords = InputBox:input(height-100, 100, "Search:")
if keywords then
-- display search result according to keywords
if keywords then -- display search result according to keywords
--[[
----------------------------------------------------------------
|| uncomment following line and set the correct path if you want
|| to test search feature in EMU mode
----------------------------------------------------------------
--]]
--FileSearcher:init("/home/dave/documents/kindle/backup/documents")
FileSearcher:init()
file = FileSearcher:choose(ypos, height, keywords)
if file then