-
Notifications
You must be signed in to change notification settings - Fork 708
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
feat: C键计算器 #904
Merged
Merged
feat: C键计算器 #904
+245
−14
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
看起来不错。 update:
|
默认大写C触发,*.schema.yaml里面可以改键,我抽空改一下默认触发键吧 |
@mirtlecn 已经将触发按键改为 'cC' |
Closed
这个会做官方合并么? |
这么好的功能为什么不合并? |
期待合并 |
- 修复了函数(英文)未输入完整时造成的 result 为 nil 的错误 - 修复了未写参数时,result 类型错误 - 修复了算式(express)为空时(以及用户错误设置了正则表达式时),意外进入生成候选的逻辑 - 添加:随机数函数添加 random 表达 - 添加:候选默认隐藏插件前缀(via cand.prefix),设置 calculator/show_prefix 可以显示 - 功能:该插件所有候选置顶(via cand.quality) - 功能:从 calculator/prefix 设定项获取前缀,而非自动获取,默认 `cC`
谢谢 PR,修了一点错误。 |
献丑了,感谢帮忙修bug |
符合预期,浮点数计算精度问题,很多计算机语言都这样。@LuiHbar |
按键盘home尝试在算式最前端加上左括号时,会变成中文全角括号。 |
linq
pushed a commit
to linq/rime-config
that referenced
this pull request
Dec 12, 2024
* feat(lua): calculator * fix(calc_translator): 修复若干逻辑错误和添加部分功能 - 修复了函数(英文)未输入完整时造成的 result 为 nil 的错误 - 修复了未写参数时,result 类型错误 - 修复了算式(express)为空时(以及用户错误设置了正则表达式时),意外进入生成候选的逻辑 - 添加:随机数函数添加 random 表达 - 添加:候选默认隐藏插件前缀(via cand.prefix),设置 calculator/show_prefix 可以显示 - 功能:该插件所有候选置顶(via cand.quality) - 功能:从 calculator/prefix 设定项获取前缀,而非自动获取,默认 `cC` * style(calc_translator.lua):format style, rename calc_translator --------- Co-authored-by: mirtlecn <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
类似搜狗输入法的V模式,
这里用的C键触发已改成 'cC' 触发在方案对应的
.schema.yaml
文件里面可以改触发键支持
+ - * / % ^
运算符支持正弦、反正弦、余弦、反余弦、正切、反正切、平方根、弧度转度、度转弧度、对数、平均值、方差等函数
log(y, x) =$\log_{y}(x)$
额外支持生成随机数