factor input handling into modes

This commit is contained in:
🪞👃🪞 2025-04-03 23:29:35 +03:00
parent 648c37e9d4
commit 48f651fc0f
5 changed files with 115 additions and 74 deletions

View file

@ -25,11 +25,11 @@ pub enum Mode {
value: Arc<str>,
index: usize,
},
Apply {
Save {
value: bool,
},
Unsaved {
value: u8
Quit {
value: bool,
},
}