2024-05-02 23:47:47 +02:00
|
|
|
#[derive(Debug)]
|
|
|
|
pub enum Msg {
|
|
|
|
MoveRight,
|
|
|
|
MoveLeft,
|
|
|
|
MoveDown,
|
|
|
|
MoveUp,
|
2024-05-07 23:21:13 +02:00
|
|
|
OpenCreateItemDialog,
|
|
|
|
|
|
|
|
EnterInsertMode,
|
|
|
|
EnterCommandMode,
|
|
|
|
Edit(EditMsg),
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug)]
|
|
|
|
pub enum EditMsg {
|
|
|
|
Delete,
|
|
|
|
InsertNewLine,
|
|
|
|
InsertTab,
|
|
|
|
DeleteNext,
|
|
|
|
InsertChar(char),
|
|
|
|
MoveLeft,
|
|
|
|
MoveRight,
|
2024-05-02 23:47:47 +02:00
|
|
|
}
|