1 Star 0 Fork 0

HXXH/coc-translator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT
# coc-translator Translation extension for [coc.nvim](https://github.com/neoclide/coc.nvim). ![publish](https://github.com/voldikss/coc-translator/workflows/publish/badge.svg) [![npm version](https://badge.fury.io/js/coc-translator.svg)](https://badge.fury.io/js/coc-translator) ![](https://user-images.githubusercontent.com/20282795/103474126-b8e31b00-4ddb-11eb-916b-2e2d7b2b29e0.png) ## Install ``` :CocInstall coc-translator ``` ## Features - Multiple translator engines - Translation history(CocList) - Proxy support(see [coc.nvim doc](https://github.com/neoclide/coc.nvim/blob/master/doc/coc.txt#L113-L119)) ## Configuration <!-- Generated by 'yarn run bulid:doc', please don't edit it directly --> <!-- prettier-ignore-start --> <strong>Properties</strong> <details> <summary><code>translator.toLang</code>: Target language type, input it if it's not fould in the candidates.</summary> Type: <pre><code>(('zh_CN' | 'zh_TW' | 'en' | 'fr' | 'de' | 'ja' | 'ko' | 'ru') | string) & string</code></pre>Default: <pre><code>"zh_CN"</code></pre> </details> <details> <summary><code>translator.engines</code>: .</summary> Type: <pre><code>string[]</code></pre>Default: <pre><code>[ "bing", "google", "youdao", "haici" ]</code></pre> </details> <details> <summary><code>translator.proxy</code>: Address of proxy, i.e., `socks://127.0.0.1:1081`.</summary> Type: <pre><code>string</code></pre> </details> <details> <summary><code>translator.enableHover</code>: Translate when mouse hover.</summary> Type: <pre><code>boolean</code></pre>Default: <pre><code>false</code></pre> </details> <details> <summary><code>translator.window.enableBorder</code>: .</summary> Type: <pre><code>boolean</code></pre>Default: <pre><code>true</code></pre> </details> <details> <summary><code>translator.window.maxWidth</code>: .</summary> Type: <pre><code>number</code></pre>Default: <pre><code>80</code></pre> </details> <details> <summary><code>translator.window.maxHeight</code>: .</summary> Type: <pre><code>number</code></pre>Default: <pre><code>20</code></pre> </details> <!-- prettier-ignore-end --> ## Keymaps Example ```vim " NOTE: do NOT use `nore` mappings " popup nmap <Leader>t <Plug>(coc-translator-p) vmap <Leader>t <Plug>(coc-translator-pv) " echo nmap <Leader>e <Plug>(coc-translator-e) vmap <Leader>e <Plug>(coc-translator-ev) " replace nmap <Leader>r <Plug>(coc-translator-r) vmap <Leader>r <Plug>(coc-translator-rv) ``` ## Commands ! Commands were not supported yet ## Work with translation lists run `:CocList translation` to open the translation list. - Filter your translation items and perform operations via `<Tab>` - Use operation `delete` to delete the translation item under the cursor - Use operation `yank` to yank ... - Use operation `jumpto` to jump to the location where you've performed translating - Use operation `append` to append the word to the end of cursor position - Use operation `pretend` to pretend ... [1]: https://github.com/voldikss/vim-translator/wiki/bing-api [2]: https://github.com/voldikss/vim-translator/wiki/Ciba-api [3]: https://github.com/voldikss/vim-translator/wiki/Google-api [4]: https://github.com/voldikss/vim-translator/wiki/Youdao-api ## License MIT

简介

暂无描述 展开 收起
TypeScript 等 4 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/HXXH2022/coc-translator.git
git@gitee.com:HXXH2022/coc-translator.git
HXXH2022
coc-translator
coc-translator
master

搜索帮助