Commit a5dcce6
authored
refactor(scenarios): add syntax highlighting and realistic Rust code (#118)
* refactor(scenarios): use realistic code content for basic/ and movement/ scenarios (WIP)
Updated scenarios to use multi-line Rust code instead of simple strings:
- basic/delete.toml, insert.toml, replace.toml
- movement/basic-movement.toml, word.toml, word-basics.toml
- movement/line.toml, line-navigation.toml
Work in progress - more files to update.
* feat(ui): add syntax highlighting and simplify scenarios
- Add syntect 5.3 for Rust syntax highlighting in editor view
- Create highlight.rs module with LazyLock for static initialization
- Use base16-eighties.dark theme for terminal display
Simplify scenarios to minimize text input (focus on commands):
- insert.toml: reduce typing to 0-2 characters per scenario
- repeat/basic-repeat.toml: simplify repeat_insert_001
- Fix cursor positions to match simulator behavior
All 141 scenarios pass execution tests.
* refactor(scenarios): update remaining scenarios with realistic Rust code
- Update clipboard/ scenarios (undo-redo, yank-paste)
- Update editing/ scenarios (delete-selection, indentation, join)
- Update movement/ scenarios (combined, document, find-till, goto-commands, match-brackets, precision)
- Update search/ scenarios (basic-search)
- Update selection/ scenarios (line-selection)
- Fix cursor rendering for end-of-line positions in highlight.rs
All 136 scenarios now use realistic Rust code snippets for proper
syntax highlighting.
* refactor(scenarios): complete realistic Rust code for remaining scenarios
- Update editing/advanced-editing.toml with Rust code
- Update editing/surround.toml with Rust code
- Update selection/advanced-selection.toml with Rust code
- Update repeat/basic-repeat.toml with Rust code
- Fix test expectations for repeat_insert_001 scenario
All 136 scenarios now use realistic Rust code snippets.
* fix(scenarios): update paragraph scenarios with realistic Rust code and selection
- Replace generic paragraph text with realistic Rust functions
- Add selection field to target state for ]p and [p commands
- These commands create a selection from original position to new position
This fixes the visual mismatch where target state didn't show the
selection that ]p/[p commands actually produce.
* release: prepare v0.5.3
- Bump version to 0.5.3
- Update README: 136 scenarios, Phase 2.2 status, remove Vim references
- Update CHANGELOG with v0.5.3 changes and fix version links
- Update HELIX_KEYBINDINGS.md: mark 90+ implemented commands1 parent 18b58ef commit a5dcce6
File tree
35 files changed
+1899
-1037
lines changed- docs
- scenarios/en
- basic
- clipboard
- editing
- movement
- repeat
- search
- selection
- src
- config/scenarios
- ui/render
35 files changed
+1899
-1037
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
10 | 33 | | |
11 | 34 | | |
12 | 35 | | |
| |||
1037 | 1060 | | |
1038 | 1061 | | |
1039 | 1062 | | |
1040 | | - | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
1041 | 1067 | | |
1042 | 1068 | | |
1043 | 1069 | | |
| |||
0 commit comments