-
Notifications
You must be signed in to change notification settings - Fork 44
请问有没有办法读写编码提示 #117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
用 key_binder 可以少寫 lua_processor function translator_func( input,seg,env) -- lua_translator@date
local context=env.engine.context
local data_fmt= context:get_option( "data_fmt")
if input== "date" then
local type, text, comment
comment= data_fmt and "aaaaaaaa" or "日期“
local cand= Candidate( type, seg.start,seg._end, text , comment )
yield( cand)
end
end |
请问用 key_binder 有没有办法控制是否释放真实按键呢,就像issues/20里的一样 |
看一下 key_binder.cc ProcessKeyEvent |
没太看明白,这个要怎么在luna里控制啊 |
key_binder 是 librime的 processor 有沒有释放真实按键 就 在 source code |
請調用 sample/date.lua 修改 |
这个代码测试了一下,成功运行,就是热键本身被占用了无法释放出来,小白实在不懂啊,该怎么写 |
这个代码, translator 可以用, 但是filter 就没有用, 比如说这个, 很奇怪不知道为什么
|
结构都没搞清楚,搞什么…… |
所以 这个要怎么搞 😂 |
通过快捷键,改变候选的编码提示,而不改变候选本身

提示指的是,像这个候选中的“日期”,希望可以动态读写修改这个提示
The text was updated successfully, but these errors were encountered: