mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 08:47:18 +02:00
Add history for add, log and modify
This commit is contained in:
parent
d4ac3561aa
commit
a1cd39a863
2 changed files with 108 additions and 28 deletions
|
@ -96,13 +96,13 @@ async fn tui_main(_config: &str) -> Result<()> {
|
|||
// Handle input
|
||||
match events.next().await? {
|
||||
Event::Input(input) => {
|
||||
if input == app.keyconfig.edit {
|
||||
if input == app.keyconfig.edit && app.mode == AppMode::TaskReport {
|
||||
events.leave_tui_mode(&mut terminal);
|
||||
}
|
||||
|
||||
let r = app.handle_input(input);
|
||||
|
||||
if input == app.keyconfig.edit {
|
||||
if input == app.keyconfig.edit && app.mode == AppMode::TaskReport {
|
||||
events.enter_tui_mode(&mut terminal);
|
||||
}
|
||||
if r.is_err() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue