helix/helix-term
Michael Davis 67be15e749
WIP: The proper Spellbook integration patch
Prior integration patches went about it in the most simple and direct
way, which is unfortunately completely different than how it _should_
look. Some bad prior art:

* Checking was done during each render only on the current viewport
* Dictionary loading was hard-coded and done during `Editor::new`
* The UX for suggestions was not hooked into code actions
* Same for "Add {word} to dictionary"

Ultimately this is still very unbaked. Big parts still to do:

* Run a tree-sitter query to discover parts of the document that need to
  be checked. Look at the queries used in Codebook - I believe we want
  to follow that strategy at least partially. It uses different captures
  to control the strategy used to parse the captured content. (For
  example capturing strings)
* Support multiple dictionaries at once. Not totally sure what this
  looks like yet, other than `dictionaries.iter().any(..)`.
* Figure out how many configuration levers we need. Again, Codebook is
  likely to be good inspiration here.
2025-03-24 09:17:43 -04:00
..
src WIP: The proper Spellbook integration patch 2025-03-24 09:17:43 -04:00
tests minor: Fix native line-ending handling in trimming integration tests 2025-03-10 11:09:46 -04:00
.gitignore Initial import. 2020-05-20 18:14:51 +09:00
build.rs chore: clean up clippy lints (#11377) 2024-08-01 06:39:46 +09:00
Cargo.toml WIP: The proper Spellbook integration patch 2025-03-24 09:17:43 -04:00