Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
patch-select: Cleanup operations
Erik Kundt committed 2 years ago
commit 86b0d4f0c27a11ecd85a805ca2b40907ecc74f88
parent 162c2138a01ae6e3a86d4b0c40bafbb13893b27e
2 files changed +3 -13
modified bin/commands/patch/select/event.rs
@@ -119,13 +119,6 @@ impl tuirealm::Component<Message, NoUserEvent> for Widget<OperationSelect> {
                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'),
                ..
            }) => submit().map(|id| {
modified bin/commands/patch/select/ui.rs
@@ -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"),
                ],
            ),