mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
finished search feature!
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user