Skip to main content

PyEnchant wrapper for Kakoune

Project description

kak-spell

PyEnchant wrapper for Kakoune.

Installation

  1. Install the Enchant library, and the required dictionaries. See PyEnchant documentation for details.

  2. Install the kak-spell script, for instance with pipx:

pipx install kak-spell
  1. Install plug.kak and add the following lines in your kakrc:
plug "dmerejkowsky/kak-spell"

define-command lint-on-save "hook buffer BufWritePre .* lint"```
  1. (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.1.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

kak_spell-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file kak-spell-0.1.1.tar.gz.

File metadata

  • Download URL: kak-spell-0.1.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.7.1 Linux/5.4.0-4-amd64

File hashes

Hashes for kak-spell-0.1.1.tar.gz
Algorithm Hash digest
SHA256 68c1e164a3c7d2451f83bfdb5cc89122cb0ce7dd3431875b7588c4274ad4930f
MD5 799646bc9219021092c9a1827ef27e4c
BLAKE2b-256 fb3a7fd21ea223d71e2dcac5788e809e096844b062bf562c4a6c8d9661842977

See more details on using hashes here.

File details

Details for the file kak_spell-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kak_spell-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.3 CPython/3.7.1 Linux/5.4.0-4-amd64

File hashes

Hashes for kak_spell-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d9a6a07c0b3bb6dfc740cffe6abffe37d6e1bbaa77aeb567bdfcd05703da5cf
MD5 dcdfc730b6dddde9138e0bab8c0be9f5
BLAKE2b-256 7765aa97ee3793d7a7adb568c17db9c63b9fcc054a63fd9af5aa147c18bda83e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page