more progress on the new filter tab

This commit is contained in:
Manuel Simon Hirsig
2016-01-30 13:12:32 +01:00
parent 53935e9363
commit 5fb208f5ae
10 changed files with 326 additions and 234 deletions
+13
View File
@@ -17,4 +17,17 @@ m.test_group = '13127;9510;4438;16254;12006;13131;13012;4413;1482'
function m.test()
local array = Aux.persistence.deserialize(';', ';')
snipe.log(getn(array))
end
function on_char()
for _, data in ipairs(TSM.db.global.savedSearches) do
if data.searchMode == "normal" then
local prevSearch = strlower(data.filter)
if strsub(prevSearch, 1, textLen) == text then
self:SetText(prevSearch)
self:HighlightText(textLen, -1)
break
end
end
end
end