nexedit 0.2.2

A vim-like text editor, with simple shortcuts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use scribe::buffer::Position;

#[derive(Debug, PartialEq)]
pub enum MappedLexeme<'a> {
    Focused(&'a str),
    Blurred(&'a str),
}

pub trait LexemeMapper {
    fn map<'x>(&'x mut self, lexeme: &str, position: Position) -> Vec<MappedLexeme<'x>>;
}