Skip to content
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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

ChaosAlphard
Copy link

@ChaosAlphard ChaosAlphard commented Jun 5, 2024

类似搜狗输入法的V模式,这里用的C键触发 已改成 'cC' 触发

在方案对应的 .schema.yaml 文件里面可以改触发键

recognizer:
  patterns:
    calculator: "^cC.+" # 在这里更改触发键。两个字符,大小写不限

支持 + - * / % ^ 运算符

图片

图片

支持正弦、反正弦、余弦、反余弦、正切、反正切、平方根、弧度转度、度转弧度、对数、平均值、方差等函数

图片

图片

图片

log(y, x) = $\log_{y}(x)$

图片

额外支持生成随机数

gif

@mirtlecn
Copy link
Collaborator

mirtlecn commented Jun 23, 2024

看起来不错。

update:

  • C键可能需要改其他的快捷键,大小C开头的英文单词挺多的。(例如 cC)

@ChaosAlphard
Copy link
Author

ChaosAlphard commented Jun 28, 2024

看起来不错。

update:

* C键可能需要改其他的快捷键,大小C开头的英文单词挺多的。(例如 cC)

默认大写C触发,*.schema.yaml里面可以改键,我抽空改一下默认触发键吧

@ChaosAlphard
Copy link
Author

看起来不错。

update:

* C键可能需要改其他的快捷键,大小C开头的英文单词挺多的。(例如 cC)

@mirtlecn 已经将触发按键改为 'cC'
图片

@Tback1
Copy link

Tback1 commented Oct 14, 2024

这个会做官方合并么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants