mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-06 09:36:42 +01:00
collect hashes and file types
This commit is contained in:
parent
01bc1b7b47
commit
747abab922
5 changed files with 183 additions and 31 deletions
24
src/keys.rs
24
src/keys.rs
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue