use std::default::Default; use std::sync::mpsc::Receiver; use notify::{DebouncedEvent, RecommendedWatcher}; use crate::habit::HabitWrapper; mod cursor; mod impl_self; mod impl_view; mod message; pub struct StatusLine(String, String); pub use cursor::Cursor; pub use message::{Message, MessageKind}; pub struct App { // holds app data habits: Vec>, _file_watcher: RecommendedWatcher, file_event_recv: Receiver, focus: usize, view_month_offset: u32, cursor: Cursor, message: Message, } impl Default for App { fn default() -> Self { App::new() } }