Results 255 comments of Shewer Lu

> 或使用librime-lua lua_processor 不要使用 candidate 只要match keyword 直接commit_text > > ```lua > -- filename: snippet_proc.lua > local function load_snippets() > return { > ['/abc'] = ('abc'):rep(10000), > } > end...

我已經更新說明,你可以看一下 #安裝 建議一個一個模組 enable 測試

你的librime-lua 版本是?? 請確認是否安裝librime-lua 的plug-in 如果有 安裝此套件 可以用 "/ver " commit 會輸出 librime-lua 版本 要>#127 ex : Version: Lua 5.4 librime-lua Version: 147 安裝 應該不難 有plum 用plum 手動設定yaml 也只要把 在方案 custom.yaml...

檔案己拷背完整? yaml 縮排 ```yaml patch: __include: processor_plugin:/patch ``` 在中文模式下 輸入 /ver 空白鍵 會輸出 版本字串 查看 log 方法 https://github.com/hchunhui/librime-lua/issues/129

https://github.com/shewer/librime-lua-script/blob/bdfcb0790ae42a3d07095de324ca00adcbe724fd/lua/init_processor.lua#L143 看起來像是 module1 找不到 ```yaml # processor_plugin module1: modules: .... ``` 沒有引入 可以檢查 build/.schema.yaml 有沒有把 processor_plugin:/module1 加截入方案中

檢查 build/ 方案.schema.yaml 是否有 ```yaml module1: modules: .... ```

lua/ 檔案清單 我試着在win10 新裝 librime-lua-script ( 移開 lua/ 以librime-lua-script/lua 取代) > tree lua: > > ``` > lua > ├── command > │   ├── command_str.lua > │   └── init.lua >...

我晚上在win10 重裝( 移開 lua 把 librime-lua-script/lua copy to lua) 也就 兩改兩個檔 各 加入一行 rime.lua : require i'nit_processor' < 方案>.custom.yaml __include: .... 放入 patch 下

env.engine:process_key(Return) -- Return = KeyEvent("Return")

> 按照大佬们的零星经验,自己试着写了一段lua,但好像没用,不知道是哪里出了问题 ```lua function processor(key, env) local Rejected,Accepted,Noop = 0,1,2 local engine = env.engine local context = engine.context -- local input_text = context.input if context.input:match("^zl") then -- (input_text:find"zl")== 1 then...