mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 18:28:41 +02:00
feat: try to fix fcitx5
This commit is contained in:
17
modules/fcitx5/rime-data-flypy/share/rime-data/rime.lua
Normal file
17
modules/fcitx5/rime-data-flypy/share/rime-data/rime.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
function date_translator(input, seg)
|
||||
if (input == "orq") then
|
||||
--- Candidate(type, start, end, text, comment)
|
||||
yield(Candidate("date", seg.start, seg._end, os.date("%Y年%m月%d日"), ""))
|
||||
yield(Candidate("date", seg.start, seg._end, os.date("%Y-%m-%d"), " "))
|
||||
end
|
||||
end
|
||||
|
||||
function time_translator(input, seg)
|
||||
if (input == "ouj") then
|
||||
local cand = Candidate("time", seg.start, seg._end, os.date("%H:%M"), " ")
|
||||
cand.quality = 1
|
||||
yield(cand)
|
||||
end
|
||||
end
|
||||
|
||||
calculator_translator = require("calculator_translator")
|
||||
Reference in New Issue
Block a user