Add some todos

This commit is contained in:
Joscha 2022-08-03 00:12:07 +02:00
parent f8ac8a22e4
commit cbe2b2e10e
2 changed files with 4 additions and 0 deletions

View file

@ -68,6 +68,7 @@ impl<M: Msg, S: MsgStore<M>> InnerTreeViewState<M, S> {
) -> Reaction<M> { ) -> Reaction<M> {
let harmless_char = (event.modifiers - KeyModifiers::SHIFT).is_empty(); let harmless_char = (event.modifiers - KeyModifiers::SHIFT).is_empty();
// TODO Tab-completion
match event.code { match event.code {
KeyCode::Esc => { KeyCode::Esc => {
self.cursor = coming_from.map(Cursor::Msg).unwrap_or(Cursor::Bottom); self.cursor = coming_from.map(Cursor::Msg).unwrap_or(Cursor::Bottom);

View file

@ -199,6 +199,9 @@ impl EditorState {
guard.set_text(text); guard.set_text(text);
} }
} }
// TODO Share key binding code
// TODO Support more of the emacs-y bindings, see bash as example
} }
//////////// ////////////