forked from kageru/tracc
Don't render todo list and prevent focusing it
This is a very quick and dirty fix, but I can strip out the entire todo functionality later.
This commit is contained in:
parent
27d19d91d0
commit
93857d0675
|
@ -23,9 +23,9 @@ pub fn layout(r: Rect) -> Vec<Rect> {
|
|||
.direction(Direction::Vertical)
|
||||
.constraints(
|
||||
[
|
||||
Constraint::Percentage(0),
|
||||
Constraint::Percentage(60),
|
||||
Constraint::Percentage(40),
|
||||
Constraint::Percentage(40),
|
||||
Constraint::Percentage(20),
|
||||
]
|
||||
.as_ref(),
|
||||
)
|
||||
|
|
|
@ -39,7 +39,7 @@ impl Tracc {
|
|||
times: TimeSheet::open_or_create(JSON_PATH_TIME),
|
||||
terminal,
|
||||
input_mode: Mode::Normal,
|
||||
focus: Focus::Top,
|
||||
focus: Focus::Bottom,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -87,12 +87,6 @@ impl Tracc {
|
|||
}
|
||||
}
|
||||
Key::Char('p') => with_focused!(ListView::paste),
|
||||
Key::Char('\t') => {
|
||||
self.focus = match self.focus {
|
||||
Focus::Top => Focus::Bottom,
|
||||
Focus::Bottom => Focus::Top,
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
},
|
||||
Mode::Insert => match input {
|
||||
|
|
Loading…
Reference in New Issue
Block a user