Repository navigation
Commit 306b74e
feat(snowflake-core): implement core text editing primitives
Add comprehensive text editing foundation with:
- Position: line/column with LSP conversion and ordering
- Range: start/end positions with contains, intersects, is_empty
- Buffer: ropey wrapper for efficient insert/delete/replace
- Selection: anchor/head model with direction tracking
- Edit/EditHistory: undo/redo with 1000 entry stack
- Document: file I/O, language detection, full editing API
Includes 67 tests covering edge cases:
- Multiple undo/redo cycles
- Multiline operations
- Unicode handling
- Out-of-bounds clamping
- Empty operations
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent c80cfee commit 306b74e
10 files changed
Lines changed: 2085 additions & 1 deletion
File tree
- crates/snowflake-core
- src
- text
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
4 | 16 | | |
5 | 17 | | |
| 18 | + | |
6 | 19 | | |
7 | 20 | | |
8 | 21 | | |
| 22 | + | |
9 | 23 | | |
0 commit comments