9 个版本 (4 个稳定版)
| 1.0.3 | 2023年4月25日 | 
|---|---|
| 1.0.1 | 2022年11月12日 | 
| 1.0.0 | 2022年7月17日 | 
| 0.8.2 | 2022年4月16日 | 
| 0.7.1 | 2022年2月12日 | 
#6 in #spell
每月下载42次
150KB
 4K  SLoC
Kakoune 集成 for skyspell
安装
安装 skyspell.
安装 skyspell_kak
$ cargo install skyspell_kak
确保 skyspell-kak 在您的 PATH 中。
在您的 kakrc 文件中调用 skyspell-kak init
evaluate-commands %sh{
  skyspell-kak init
}
使用方法
现在您可以调用各种 :skyspell- 命令
典型工作流程
- 调用 skyspell-enable <LANG>来安装skyspell-check钩子。
- 编辑当前项目的文件。所有打开的缓冲区一旦写入就会进行检查。
- 使用 skyspell-list在特殊的*spelling*缓冲区中列出所有错误
- 对于 *spelling*中的每一行,执行给定的操作(有关详细信息,请参阅skyspell-help)。例如,您可以选择将错误添加到当前项目的异常列表中
- 一旦选择了错误,您还可以使用 :skyspell-replace打开一个包含替换建议的菜单。
请注意,您可以使用 skyspell-list 和 Enter 从一个拼写错误跳转到下一个,也可以使用 skyspell-next 和 skyspell-previous。
自定义
建议创建一个 skyspell 用户模式
例如
map global user s ': enter-user-mode skyspell<ret>' -docstring 'enter spell user mode'
map global skyspell d ': skyspell-disable<ret>' -docstring 'clear spelling highlighters'
map global skyspell e ': skyspell-enable en_US<ret>' -docstring 'enable spell checking in English'
map global skyspell l ': skyspell-list <ret>' -docstring 'list spelling errors in a buffer'
map global skyspell h ': skyspell-help <ret>' -docstring 'show help message'
map global skyspell n ': skyspell-next<ret>' -docstring 'go to next spell error'
map global skyspell p ': skyspell-previous<ret>' -docstring 'go to previous spell error'
map global skyspell r ': skyspell-replace<ret>' -docstring 'suggest a list of replacements'
skyspell 还声明了一个名为 SpellingError 的外观,如果您想以不同的方式显示拼写错误,则可以更改它。
依赖关系
~32–44MB
~727K SLoC