PyEnchant wrapper for Kakoune
Project description
kak-spell
PyEnchant wrapper for Kakoune.
Installation
-
Install the Enchant library, and the required dictionaries. See PyEnchant documentation for details.
-
Install the
kak-spell
script, for instance with pipx:
pipx install kak-spell
- Install plug.kak and add the following lines in your
kakrc
:
plug "dmerejkowsky/kak-spell"
define-command lint-on-save "hook buffer BufWritePre .* lint"```
- (optional): declare a user mode and some mappings:
declare-user-mode kak-spell
map global user s ': enter-user-mode kak-spell<ret>' -docstring 'enter spell user mode'
map global kak-spell e ': kak-spell %opt{spell_lang}<ret>' -docstring "enable spell checking"
map global kak-spell c ': kak-spell-clear<ret>' -docstring 'clear spelling highlighters'
map global kak-spell n ': kak-spell-next<ret>' -docstring 'go to next spell error'
map global kak-spell r ': kak-spell-replace<ret>' -docstring 'suggest a list of replacements'
map global kak-spell a ': kak-spell-add<ret>' -docstring 'add the selection to the user dict'
map global kak-spell x ': kak-spell-remove<ret>' -docstring 'remove the selection from the user dict'
Discuss
You can discuss features of this plugin on discuss.kakoune.com.
I'd like to thank all the people who contributed code and ideas to make usage of this plugin easier.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kak-spell-0.2.1.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file kak-spell-0.2.1.tar.gz
.
File metadata
- Download URL: kak-spell-0.2.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.3 CPython/3.8.2 Linux/5.6.3-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b4ea194c8151a25fd11910c8f56fc6a10fb6da8915a78224b2e30d8d892d6d2 |
|
MD5 | 8dd84fa8c42284ea28f416d6c43bbad5 |
|
BLAKE2b-256 | 05bce4851b6138dbfff2f99c7a8df389d17e245acad4f39eb3894e29741e5b87 |
File details
Details for the file kak_spell-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: kak_spell-0.2.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.3 CPython/3.8.2 Linux/5.6.3-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ffb71699bab357123a644ef7346d5bc974a7164ec00ac94a6515af245b3cb2f |
|
MD5 | 83702042233123948463e4cf4632be86 |
|
BLAKE2b-256 | 971a9fdcc241f5c1463e966820ed0025a4df76af4f70ebbee08e20c42b6f157c |