collect hashes and file types

This commit is contained in:
🪞👃🪞 2025-03-03 21:05:18 +02:00
parent 01bc1b7b47
commit 747abab922
5 changed files with 183 additions and 31 deletions

View file

@ -53,6 +53,30 @@ impl Handle<TuiIn> for Taggart {
}) => {
self.column = self.column + 1;
},
Event::Key(KeyEvent {
code: KeyCode::Enter,
kind: KeyEventKind::Press,
modifiers: KeyModifiers::NONE,
state: KeyEventState::NONE
}) => {
self.editing = Some((self.cursor, self.column));
},
Event::Key(KeyEvent {
code: KeyCode::Esc,
kind: KeyEventKind::Press,
modifiers: KeyModifiers::NONE,
state: KeyEventState::NONE
}) => {
self.editing = None;
},
Event::Key(KeyEvent {
code: KeyCode::Tab,
kind: KeyEventKind::Press,
modifiers: KeyModifiers::NONE,
state: KeyEventState::NONE
}) => {
self.show_hash = !self.show_hash;
},
_ => {}
}
if self.cursor < x_min {