vietc/engine/src
Khoa Vo 3858aa955c feat: implement Backspace-Replay pattern for perfect engine sync
- Add Engine::replay_keystrokes() — creates fresh engine and replays
  all keystrokes to compute correct screen output from scratch
- Add Daemon::replay_and_inject() — tracks keystroke history and
  screen output, computes diff (backspaces + new text) on each keypress
- Add Daemon::replay_backspace() — pops from history, replays, diffs
- Handle flush chars (space, period, etc.) separately — commit word,
  type char, clear history
- Add FocusIn/FocusOut detection for engine reset on focus loss
- Add CPU pinning (P-cores 0-3) + nice(-10) priority boost
- Clean up 9 dead code warnings (unused fields, constants, types)
- Add replay_keystrokes tests for Telex, VNI, and backspace
- 255 tests pass (was 252)
2026-06-26 08:40:38 +07:00
..
engine.rs feat: implement Backspace-Replay pattern for perfect engine sync 2026-06-26 08:40:38 +07:00
english.rs Optimize typing performance and preserve casing on replaced syllables 2026-06-25 19:59:46 +07:00
lib.rs Optimize typing performance and preserve casing on replaced syllables 2026-06-25 19:59:46 +07:00
spelling.rs Optimize typing performance and preserve casing on replaced syllables 2026-06-25 19:59:46 +07:00
telex.rs Optimize typing performance and preserve casing on replaced syllables 2026-06-25 19:59:46 +07:00
tests.rs Optimize typing performance and preserve casing on replaced syllables 2026-06-25 19:59:46 +07:00
vni.rs Optimize typing performance and preserve casing on replaced syllables 2026-06-25 19:59:46 +07:00