diff --git a/bin/commands/patch/select.rs b/bin/commands/patch/select.rs index b905f0eb..fe186876 100644 --- a/bin/commands/patch/select.rs +++ b/bin/commands/patch/select.rs @@ -66,7 +66,6 @@ pub enum Subject { #[derive(Clone, Debug, Eq, PartialEq, Serialize)] pub enum PatchOperation { Show, - Update, Checkout, Review, Delete, @@ -80,9 +79,6 @@ impl Display for PatchOperation { PatchOperation::Show => { write!(f, "show") } - PatchOperation::Update => { - write!(f, "update") - } PatchOperation::Checkout => { write!(f, "checkout") } diff --git a/bin/commands/patch/select/event.rs b/bin/commands/patch/select/event.rs index a96f8dd5..2fe20b7a 100644 --- a/bin/commands/patch/select/event.rs +++ b/bin/commands/patch/select/event.rs @@ -111,13 +111,6 @@ impl tuirealm::Component for Widget { let output = Output::new(Some(PatchOperation::Show), PatchId::from(id)); Message::Quit(Some(output)) }), - Event::Keyboard(KeyEvent { - code: Key::Char('u'), - .. - }) => submit().map(|id| { - let output = Output::new(Some(PatchOperation::Update), PatchId::from(id)); - Message::Quit(Some(output)) - }), Event::Keyboard(KeyEvent { code: Key::Char('c'), .. @@ -125,6 +118,13 @@ impl tuirealm::Component for Widget { let output = Output::new(Some(PatchOperation::Checkout), PatchId::from(id)); Message::Quit(Some(output)) }), + Event::Keyboard(KeyEvent { + code: Key::Char('r'), + .. + }) => submit().map(|id| { + let output = Output::new(Some(PatchOperation::Review), PatchId::from(id)); + Message::Quit(Some(output)) + }), Event::Keyboard(KeyEvent { code: Key::Char('d'), .. diff --git a/bin/commands/patch/select/ui.rs b/bin/commands/patch/select/ui.rs index 0c718c0d..23aa2c4e 100644 --- a/bin/commands/patch/select/ui.rs +++ b/bin/commands/patch/select/ui.rs @@ -92,7 +92,6 @@ impl OperationSelect { vec![ tui::ui::shortcut(&self.theme, "↑/↓", "navigate"), tui::ui::shortcut(&self.theme, "enter", "show"), - tui::ui::shortcut(&self.theme, "u", "update"), tui::ui::shortcut(&self.theme, "c", "checkout"), tui::ui::shortcut(&self.theme, "r", "review"), tui::ui::shortcut(&self.theme, "d", "delete"),