Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
kyu08 committed Nov 22, 2023
1 parent ef50606 commit d209df6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/usecases/fzf_make_ratatui/ratatui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,17 @@ fn run_app<B: Backend>(terminal: &mut Terminal<B>, app: &mut App) -> io::Result<
match app.current_screen {
CurrentScreen::Main => match key.code {
KeyCode::Char('e') => {
// TODO: https://ratatui.rs/concepts/application-patterns/the-elm-architecture.html
// を参考にTEAっぽく実装してみる
app.currently_editing = Some(CurrentlyEditing::Key);
}
KeyCode::Char('q') => {
return Ok(());
}
KeyCode::Tab => {
// TODO: Tabでフォーカスエリアを変えられるようにする
return Ok(());
}
_ => {}
},
}
Expand Down

0 comments on commit d209df6

Please sign in to comment.