editor/lib.rs
1//! A Notion-style block editor for gpui, over the `markdown` document model.
2//!
3//! ```ignore
4//! editor::init(cx); // once, at startup
5//! let editor = cx.new(|cx| editor::Editor::new("# Title", cx));
6//! ```
7//!
8//! `markdown` holds the document, its markdown wire form, and the painting —
9//! all of it testable without a window. What lives here is the half that needs
10//! one: focus, keys, the platform input handler, the mouse, undo, and the menus.
11
12mod editor;
13mod history;
14mod link;
15mod slash;
16
17pub use editor::image::{ImageStore, Source, set_image_store};
18#[doc(hidden)]
19pub use editor::menu::SLASH_MENU;
20pub use editor::{Editor, init};
21pub use history::{DEFAULT_UNDO_LIMIT, EditKind, History};