Comments (5)
感谢反馈!我看看能否优化下触发规则
from vscode-rainbow-fart.
Keywords like $time_before... will trigger the same.
from vscode-rainbow-fart.
可以用stack试一下,比如在读键盘buffer的时候,遇到空格,圆括号,方括号,等号,引号。欸不行,如果用户在单词中间编辑单词就失效了。
那要不要考虑一下vscode关于获取用户正在编辑的行的api什么的?就是每次输入一个字符就查询当前行是否有关键字?
from vscode-rainbow-fart.
@woaibiancheng01214 经过几天的考虑,我的观点是:更精确的触发规则最好是通过 AST 库进行解析,但这样对于一个娱乐性插件来说,技术投入与用户体验回报不太成正比(请参阅:https://saekiraku.github.io/vscode-rainbow-fart/#/zh/qa.md#%E8%83%BD%E5%90%A6%E6%9B%B4%E7%B2%BE%E7%A1%AE%E7%9A%84%E6%A3%80%E6%B5%8B%E5%85%B3%E9%94%AE%E5%AD%97%EF%BC%9F )。目前我这边认为相对简单的处理方式是对关键字进行语言限制,来尽可能的规避误触发。
from vscode-rainbow-fart.
@SaekiRaku 有道理,哈哈,我如果有时间看看这种技术实践就来试一试
from vscode-rainbow-fart.
Related Issues (20)
- 求东京热语音包 HOT 1
- [Feature] 配合swimming插件简直完美,有没有可能出一个于谦语音包
- [Feature] 确定是安慰人? HOT 1
- [Feature] 求马保国语音包 HOT 3
- [Feature] Could keywords using regex? | 关键词可否考虑加入正则表达式? HOT 1
- [Feature] 希望支持自定义时间播放特定语音 HOT 1
- [BUG] Can't work on remote SSH
- [Feature] 求 一个小团团的 语音包
- [Question] Trying to get new skins for model
- [Question] How can I contribute to English speaking for this project? HOT 1
- [语音包] 李云龙的语音包 HOT 2
- [Question] 中科天齐Wukong(悟空)声称 rainbow fart 具有漏洞,请问这会影响用户吗? HOT 1
- 求山泥若炫狗电棍语音包
- [BUG] Mac vscode cannot find resource
- [语音包]李云龙语音包
- 感谢小姐姐的插件,很好用... 就是 突然那么一下子吓得忘记想写啥了... HOT 2
- [Question] 请问idea应该怎样导入语言包 HOT 2
- 关于语音包独立仓库管理和使用CC协议的建议
- [Question] 导入后一直转圈圈 HOT 1
- pycharm里面下载的插件能改语音包吗,怎么改呢
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-rainbow-fart.