mirror of
https://github.com/helix-editor/helix
synced 2026-03-20 01:05:10 +01:00
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.
|
||
|---|---|---|
| .. | ||
| src | ||
| tests | ||
| .gitignore | ||
| Cargo.toml | ||