fix(lua): cold_word_drop 修复路径分割符设置和增大候选迭代个数 (#1046)

This commit is contained in:
Shingo 2024-10-09 11:09:04 +08:00 committed by GitHub
parent ea74e40bec
commit 06074ecb7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ function filter.func(input, env)
end
end
if #cands >= 80 then
if #cands >= 180 then
break
end
end

View File

@ -6,7 +6,7 @@ local function get_record_filername(record_type)
local path_sep = "/"
local user_data_dir = rime_api:get_user_data_dir()
local user_distribute_name = rime_api:get_distribution_code_name()
if user_distribute_name:lower():match("weasel") then path_sep = "\\" end
if user_distribute_name:lower():match("weasel") then path_sep = [[\]] end
if user_distribute_name:lower():match("ibus") then
return string.format("%s/rime/lua/cold_word_records/%s_words.lua",
os.getenv("HOME") .. "/.config/ibus",