|
1 | 1 | use std::{borrow::Cow, collections::HashMap}; |
2 | 2 |
|
3 | | -use but_rebase::graph_rebase::mutate::InsertSide; |
4 | 3 | use crossterm::event::{KeyCode, KeyEvent, KeyEventKind, KeyModifiers}; |
5 | 4 | use strum::IntoEnumIterator; |
6 | 5 |
|
@@ -568,22 +567,6 @@ fn register_commit_mode_key_binds(key_binds: &mut KeyBinds) { |
568 | 567 | hide_from_hotbar: false, |
569 | 568 | }); |
570 | 569 |
|
571 | | - key_binds.register(KeyBindDef { |
572 | | - short_description: "above", |
573 | | - key_matcher: press().code(KeyCode::Char('a')), |
574 | | - modes: Vec::from([ModeDiscriminant::Commit]), |
575 | | - message: Message::Commit(CommitMessage::SetInsertSide(InsertSide::Above)), |
576 | | - hide_from_hotbar: false, |
577 | | - }); |
578 | | - |
579 | | - key_binds.register(KeyBindDef { |
580 | | - short_description: "below", |
581 | | - key_matcher: press().code(KeyCode::Char('b')), |
582 | | - modes: Vec::from([ModeDiscriminant::Commit]), |
583 | | - message: Message::Commit(CommitMessage::SetInsertSide(InsertSide::Below)), |
584 | | - hide_from_hotbar: false, |
585 | | - }); |
586 | | - |
587 | 570 | key_binds.register(KeyBindDef { |
588 | 571 | short_description: "empty message", |
589 | 572 | key_matcher: press().code(KeyCode::Char('e')), |
@@ -618,22 +601,6 @@ fn register_move_mode_key_binds(key_binds: &mut KeyBinds) { |
618 | 601 | hide_from_hotbar: false, |
619 | 602 | }); |
620 | 603 |
|
621 | | - key_binds.register(KeyBindDef { |
622 | | - short_description: "above", |
623 | | - key_matcher: press().code(KeyCode::Char('a')), |
624 | | - modes: Vec::from([ModeDiscriminant::Move]), |
625 | | - message: Message::Move(MoveMessage::SetInsertSide(InsertSide::Above)), |
626 | | - hide_from_hotbar: false, |
627 | | - }); |
628 | | - |
629 | | - key_binds.register(KeyBindDef { |
630 | | - short_description: "below", |
631 | | - key_matcher: press().code(KeyCode::Char('b')), |
632 | | - modes: Vec::from([ModeDiscriminant::Move]), |
633 | | - message: Message::Move(MoveMessage::SetInsertSide(InsertSide::Below)), |
634 | | - hide_from_hotbar: false, |
635 | | - }); |
636 | | - |
637 | 604 | key_binds.register(KeyBindDef { |
638 | 605 | short_description: "back", |
639 | 606 | key_matcher: press().code(KeyCode::Char('m')), |
|
0 commit comments