forked from https://github.com/divinites/cndict
感谢@divinites
在此基础上, 做了优化和新的功能.
-
https://github.com/divinites/cndict
Ctrl + Shift + P -> Package Control: Install Package -> Chinese-English Bilingual Dictionary -
https://github.com/sublime-china/cndict
Ctrl + Shift + P -> Package Control: Add Repository -> https://github.com/sublime-china
Ctrl + Shift + P -> Package Control: Install Package -> CNDict
- Ctrl+Alt+C: 腾讯文本翻译
- Ctrl+Alt+Y: 有道词典 Youdao
- Ctrl+Alt+J: 金山词典 Jinshan
{
// There are three options here:
// "popup" is the default, the dictionary will show a pop-up when queried.
// "phantom" will show the query result as a phantom
// "pannel" will show the query result in an output pannel
"format": "popup"
}
-
"popup": 弹出框形式展示.
ESC 或 Crtl+Shift+D 取消. -
"phantom": 在当前单词下一行, 以"幽灵方块"的形式展示.
Crtl+Shift+D 清除所有展示. -
"pannel": 以传统的调度框展示在Sublime底部.
-
新增:
- 腾讯智能文本翻译
- 复制翻译内容到剪贴板
-
Bug:
- popup显示格式上的调整
- 金山词霸返回报错
- 选词的Bug(选区长度不为0时, 'find_under_expand'会多选一个单词)
- 单词有大写字母时, 查询不到结果的Bug.