Add support for gg

This commit is contained in:
Dheepak Krishnamurthy 2020-11-03 12:59:24 -07:00
parent 9bce46442b
commit b5c04aafdc

View file

@ -1261,8 +1261,12 @@ impl TTApp {
AppMode::TaskReport => match input { AppMode::TaskReport => match input {
Key::Ctrl('c') | Key::Char('q') => self.should_quit = true, Key::Ctrl('c') | Key::Char('q') => self.should_quit = true,
Key::Char('r') => self.update()?, Key::Char('r') => self.update()?,
Key::Home | Key::Char('g') => self.task_report_top(),
Key::End | Key::Char('G') => self.task_report_bottom(), Key::End | Key::Char('G') => self.task_report_bottom(),
Key::Home => self.task_report_top(),
Key::Char('g') => match events.next()? {
Event::Input(Key::Char('g')) => self.task_report_top(),
_ => (),
},
Key::Down | Key::Char('j') => self.task_report_next(), Key::Down | Key::Char('j') => self.task_report_next(),
Key::Up | Key::Char('k') => self.task_report_previous(), Key::Up | Key::Char('k') => self.task_report_previous(),
Key::PageDown | Key::Char('J') => self.task_report_next_page(), Key::PageDown | Key::Char('J') => self.task_report_next_page(),