mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-16 08:20:39 +08:00
patch-select: Cleanup operations
This commit is contained in:
@@ -118,13 +118,6 @@ impl tuirealm::Component<Message, NoUserEvent> for Widget<OperationSelect> {
|
||||
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'),
|
||||
..
|
||||
|
||||
@@ -39,8 +39,7 @@ impl IdSelect {
|
||||
tui::ui::shortcuts(
|
||||
&self.theme,
|
||||
vec![
|
||||
tui::ui::shortcut(&self.theme, "↑/↓", "navigate"),
|
||||
tui::ui::shortcut(&self.theme, "enter", "show"),
|
||||
tui::ui::shortcut(&self.theme, "enter", "select"),
|
||||
tui::ui::shortcut(&self.theme, "q", "quit"),
|
||||
],
|
||||
),
|
||||
@@ -90,13 +89,11 @@ impl OperationSelect {
|
||||
tui::ui::shortcuts(
|
||||
&self.theme,
|
||||
vec![
|
||||
tui::ui::shortcut(&self.theme, "↑/↓", "navigate"),
|
||||
tui::ui::shortcut(&self.theme, "enter", "show"),
|
||||
tui::ui::shortcut(&self.theme, "c", "checkout"),
|
||||
tui::ui::shortcut(&self.theme, "r", "review"),
|
||||
tui::ui::shortcut(&self.theme, "d", "delete"),
|
||||
tui::ui::shortcut(&self.theme, "e", "edit"),
|
||||
tui::ui::shortcut(&self.theme, "m", "comment"),
|
||||
tui::ui::shortcut(&self.theme, "e", "edit"),
|
||||
tui::ui::shortcut(&self.theme, "d", "delete"),
|
||||
tui::ui::shortcut(&self.theme, "q", "quit"),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user