aboutsummaryrefslogtreecommitdiff
path: root/src/pomo/mod.rs
diff options
context:
space:
mode:
authorRanXom <saiyedshizain@gmail.com>2026-06-12 23:15:51 +0530
committerRanXom <saiyedshizain@gmail.com>2026-06-12 23:15:51 +0530
commitbb9688d43051c19cc2dc697389547470d8c18f62 (patch)
treedcd10f61a0be093e5d4c1753618b37b93170c35e /src/pomo/mod.rs
parentc2cd16b5993526d95d91326683f0f8338f63a9eb (diff)
downloadpomoru-bb9688d43051c19cc2dc697389547470d8c18f62.tar.xz
pomoru-bb9688d43051c19cc2dc697389547470d8c18f62.zip
Handle session switch manage on timer expiration
Diffstat (limited to 'src/pomo/mod.rs')
-rw-r--r--src/pomo/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pomo/mod.rs b/src/pomo/mod.rs
index 42ce627..cd7a663 100644
--- a/src/pomo/mod.rs
+++ b/src/pomo/mod.rs
@@ -110,6 +110,9 @@ impl Pomo {
}
}
+ (AppScreen::Timer, KeyCode::Char('a')) => {
+ self.auto_switch_sessions = !self.auto_switch_sessions
+ }
(AppScreen::Timer, KeyCode::Char('t')) => self.screen = AppScreen::Tasks,
(AppScreen::Timer, KeyCode::Char(' ')) => self.is_running = !self.is_running,
(AppScreen::Timer, KeyCode::Char('r')) => self.time_remaining = self.work_time,