feat: enable creating items on the same level
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-05-16 10:10:11 +02:00
parent 832587b51d
commit 65c2466f97
5 changed files with 46 additions and 0 deletions

View File

@@ -125,6 +125,11 @@ async fn update<'a>(
app.update(Msg::OpenCreateItemDialog)?;
app.update(Msg::EnterInsertMode)?
}
KeyCode::Char('o') => {
// TODO: batch commands
app.update(Msg::OpenCreateItemDialogBelow)?;
app.update(Msg::EnterInsertMode)?
}
KeyCode::Char('i') => app.update(Msg::EnterInsertMode)?,
KeyCode::Char(':') => app.update(Msg::EnterCommandMode)?,
_ => return Ok(UpdateConclusion(false)),