aboutsummaryrefslogtreecommitdiff
path: root/src/app/impl_view.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-07-22 16:30:38 +0100
committerAkshay <[email protected]>2020-07-22 16:30:38 +0100
commit3f64deb152c31f2a04612d9c525537a72605d678 (patch)
treeddab742cce4422f8f3da43d4ebd0535b1d7814f1 /src/app/impl_view.rs
parent9102dc72be19f87ec9e2893a35f5020957135c1c (diff)
remove `d` keybind, add tab completion
Diffstat (limited to 'src/app/impl_view.rs')
-rw-r--r--src/app/impl_view.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/app/impl_view.rs b/src/app/impl_view.rs
index 892b00c..b8c4589 100644
--- a/src/app/impl_view.rs
+++ b/src/app/impl_view.rs
@@ -102,14 +102,6 @@ impl View for App {
102 self.set_focus(Absolute::Down); 102 self.set_focus(Absolute::Down);
103 return EventResult::Consumed(None); 103 return EventResult::Consumed(None);
104 } 104 }
105 Event::Char('d') => {
106 if self.habits.is_empty() {
107 return EventResult::Consumed(None);
108 }
109 self.habits.remove(self.focus);
110 self.focus = self.focus.checked_sub(1).unwrap_or(0);
111 return EventResult::Consumed(None);
112 }
113 Event::Char('w') => { 105 Event::Char('w') => {
114 // helper bind to test write to file 106 // helper bind to test write to file
115 let j = serde_json::to_string_pretty(&self.habits).unwrap(); 107 let j = serde_json::to_string_pretty(&self.habits).unwrap();