Skip to main content

continuity_engine/
lib.rs

1#![warn(missing_docs)]
2//! Synchronous, storage-neutral Continuity editor engine.
3//!
4//! The caller selects the thread that owns [`EngineState`]. This crate never
5//! creates threads, windows, databases, filesystem state, or host callbacks.
6
7mod change;
8mod delta_history;
9mod edit_block_scope;
10mod edit_indent_shift;
11pub mod edit_indent_subtree;
12mod edit_inline;
13mod edit_line_text;
14mod edit_line_text_helpers;
15mod edit_lines;
16mod edit_lines_movement;
17mod edit_list;
18mod edit_markdown;
19mod edit_markdown_blocks;
20mod edit_markdown_strip;
21mod edit_normalize;
22pub mod edit_pairs;
23mod edit_planning;
24mod edit_words;
25mod engine;
26pub mod error;
27pub mod reconcile_diff;
28mod replay;
29pub mod rope_edit_delta_points;
30pub mod selection_coalesce;
31pub mod selection_edit;
32pub mod state;
33mod undo;
34
35pub use change::{AppliedChange, ChangeBatch, EngineEvent, MutationKind, UndoGroupMeta};
36pub use delta_history::DeltaHistory;
37pub use edit_indent_subtree::{
38    all_top_level_subtrees, indent_subtree, line_indent, next_sibling_subtree,
39    previous_sibling_subtree, IndentRange,
40};
41pub use edit_pairs::AutoPairConfig;
42pub use engine::{Engine, EngineSnapshot, IdGenerator, SystemIdGenerator};
43pub use error::Error;
44pub use replay::{replay_change_batches, ReplayedState};
45pub use rope_edit_delta_points::{EditPoint, RopeEditDeltaWithPoints};
46pub use selection_edit::{
47    CaseKind, EmphasisKind, IndentUnit, LineEnding, SelectionEdit, SelectionEditPlan, SortKind,
48};
49pub use state::EngineState;
50pub use undo::{CoalesceKind, COALESCE_WINDOW_MS};