aboutsummaryrefslogtreecommitdiff
path: root/src/pomo/ui.rs
diff options
context:
space:
mode:
authorSaiyed Shizain <saiyedshizain@gmail.com>2026-01-19 01:23:29 +0530
committerSaiyed Shizain <saiyedshizain@gmail.com>2026-01-19 01:23:29 +0530
commit2e1032f34c3180720289d264869655206a3548a8 (patch)
tree8a245e121695ef738f47efb8dd30d5ba078e7ec0 /src/pomo/ui.rs
parenta77a5fccd060c608f3539bcb0eee6fd008e4d1f1 (diff)
downloadpomoru-2e1032f34c3180720289d264869655206a3548a8.tar.xz
pomoru-2e1032f34c3180720289d264869655206a3548a8.zip
add timer editing and smart quitting using q
q now doesn't close the app, instead it closes the current screen opened and only closes the app when on main timer screen
Diffstat (limited to 'src/pomo/ui.rs')
-rw-r--r--src/pomo/ui.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pomo/ui.rs b/src/pomo/ui.rs
index 642c3b7..327f031 100644
--- a/src/pomo/ui.rs
+++ b/src/pomo/ui.rs
@@ -25,7 +25,7 @@ pub fn render(f: &mut Frame, app: &mut Pomo) {
AppScreen::Tasks => render_task_screen(f, app),
}
- if let InputMode::Insert | InputMode::Edit = app.input_mode {
+ if let InputMode::Insert | InputMode::Edit | InputMode::TimerEdit = app.input_mode {
render_input_modal(f, app);
}
}
@@ -65,7 +65,7 @@ fn render_timer_screen(f: &mut Frame, app: &Pomo, area: Rect) {
render_session_dots(f, app, chunks[4]);
- let footer = "↑ +1 min • space pause • r reset • s skip • t tasks";
+ let footer = "tab session • e edit time • space pause • r reset • q quit";
f.render_widget(
Paragraph::new(footer).alignment(Alignment::Center).style(Style::default().fg(MOCHA_OVERLAY0)),
chunks[6]
@@ -158,8 +158,9 @@ pub fn render_input_modal(f: &mut Frame, app: &Pomo) {
f.render_widget(Clear, area);
let title = match app.input_mode {
- InputMode::Insert => " New Task ",
- InputMode::Edit => " Edit Task ",
+ InputMode::Insert => " New Task ",
+ InputMode::Edit => " Edit Task ",
+ InputMode::TimerEdit => " Set Minutes ",
_ => " Input "
};