Commit Graph

6 Commits

Author SHA1 Message Date
jess 24958d4896 Syntax highlighting bug fix for external.
Also timing for tree-sitter checks
2026-05-28 02:56:36 -07:00
jess 9b5dbbdf2b Extended for easier embedding. 2026-05-27 22:11:59 -07:00
jess 23b7b3784b Fixed bug where external implementations of EditorState with no native front end caused objc2 version mismatch between arboard and trash crates to cause the editor to crash.
For external use cases with pure ICED winit, set default-features=false
2026-05-27 16:05:55 -07:00
jess 1a0508bc06 This is a complete overhaul.
- New decomposer / Compiler pre-processor
- New Decomposer Public API allows custom external extensions of acord-core to provide their own DecomposeHook impl to extend what the compiler knows
- .dot traversal of Stucts, etc.
- Public Externs
- Regex find and replace — capture groups ($1-$9)
- Performance: syntax ident caching — moved scan_user_idents out of the per-frame render loop, cached on EditorState, recomputed on text change only
  - Performance: incremental highlighter rebuild — editor mode skips classify_document and tree-sitter when line count unchanged
  - Performance: minimap caching — classify_text cached, no longer computed every frame
  - Use declaration support in the decomposer — emits mod/use statements, returns a Dependency list for recursive decomposition of referenced notes
- Tons of new operators (below)

  HOFs (closure-like, take a function name):
  - map, filter, reduce, fold, flat_map
  - iter (with callback)
	-peek (custom, allows optional arg1 to specify how far to look-ahead. uses a custom ringbuf function)
  - all, any, find
  - sort (with optional comparator)

  Collection ops:
  - peek (with optional look-ahead)
  - window, zip, chunk
  - take, skip/drop
  - flatten, distinct/unique

  Aggregates:
  - sum, avg, min, max, count, std_devp, std_devs
  - range
2026-05-26 10:46:40 -07:00
jess ba983e3776 - Mini-map initial implements
- Improved editor mode rendering efficiency when editing large files (10k+ locs)
2026-05-10 19:38:58 -07:00
jess 943aa82ec1 Finally split editor.rs into bit sized pieces. Rest in pieces my 3kloc beloved. 2026-05-10 05:56:35 -07:00