Skip to main content

Crate hjkl_editor

Crate hjkl_editor 

Source
Expand description

§hjkl-editor

Front door for the hjkl modal editor stack. Re-exports the working parts of hjkl_engine and hjkl_buffer under a curated namespace so downstream consumers (sqeel, buffr, hjkl binary) add one dependency instead of three and don’t need to know the crate-split.

Two layers ride alongside each other during the 0.0.x churn:

§Usage

use hjkl_editor::buffer;
use hjkl_editor::runtime::{DefaultHost, Editor, Options};

let mut editor = Editor::new(buffer::Buffer::new(), DefaultHost::new(), Options::default());
editor.set_content("hello world");

Buffer and rope helpers are re-exported at the buffer module, mirroring the hjkl_buffer surface.

Modules§

buffer
Re-export of hjkl_buffer’s public surface.
runtime
Legacy runtime surface — the working sqeel-vim port.
spec
Engine trait surface re-exported for consumers.