linked lists
This commit is contained in:
parent
8eab2502c7
commit
430c62c120
12 changed files with 783 additions and 544 deletions
|
|
@ -214,11 +214,16 @@ impl App {
|
|||
match LogfileReader::new(&path) {
|
||||
Ok(i) => {
|
||||
self.current_file = Some(i.clone());
|
||||
self.replace_tab(Tab::LogViewer(LogViewer::new(
|
||||
i.iter(),
|
||||
filters_path,
|
||||
self.last_error.clone(),
|
||||
)));
|
||||
|
||||
if let Some(first) = i.first() {
|
||||
self.replace_tab(Tab::LogViewer(LogViewer::new(
|
||||
first,
|
||||
filters_path,
|
||||
self.last_error.clone(),
|
||||
)));
|
||||
} else {
|
||||
panic!("no log entries");
|
||||
}
|
||||
}
|
||||
Err(_) => {
|
||||
panic!()
|
||||
|
|
@ -319,7 +324,7 @@ impl App {
|
|||
lv.footer_list.select(Some(0));
|
||||
}
|
||||
KeyCode::Esc => lv.input_state.reset(),
|
||||
KeyCode::Char('s') if !lv.stack.is_empty() => {
|
||||
KeyCode::Char('s') if !lv.view.cursor.toplevel() => {
|
||||
lv.input_state.target(InputTarget::Surround);
|
||||
}
|
||||
KeyCode::Char('t') => {
|
||||
|
|
@ -644,6 +649,7 @@ impl Widget for &mut App {
|
|||
|
||||
Items::new(
|
||||
items,
|
||||
&lv.filters,
|
||||
selected_offset,
|
||||
&lv.input_state,
|
||||
lv.footer_list.selected.and_then(|idx| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue