Radish alpha
r
Radicle terminal user interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Streamline open wording for issues
Erik Kundt committed 2 years ago
commit 391d439e26b560868ec2d101134ea3b42a2221ba
parent 39cbd159195d47b962ffde7e9a319e63ad0c6545
3 files changed +5 -5
modified src/app/event.rs
@@ -88,7 +88,7 @@ impl tuirealm::Component<Message, NoUserEvent> for Widget<issue::LargeList> {
                code: Key::Enter, ..
            }) => Some(Message::Issue(IssueMessage::Focus(IssueCid::Details))),
            Event::Keyboard(KeyEvent {
-
                code: Key::Char('n'),
+
                code: Key::Char('o'),
                ..
            }) => Some(Message::Issue(IssueMessage::OpenForm)),
            _ => None,
@@ -307,7 +307,7 @@ impl tuirealm::Component<Message, NoUserEvent> for Widget<IssueBrowser> {
                Some(Message::Tick)
            }
            Event::Keyboard(KeyEvent {
-
                code: Key::Char('n'),
+
                code: Key::Char('o'),
                ..
            }) => {
                let id = submit();
modified src/app/page.rs
@@ -109,7 +109,7 @@ impl HomeView {
                        widget::common::shortcut(theme, "tab", "section"),
                        widget::common::shortcut(theme, "↑/↓", "navigate"),
                        widget::common::shortcut(theme, "enter", "show"),
-
                        widget::common::shortcut(theme, "n", "new issue"),
+
                        widget::common::shortcut(theme, "o", "open"),
                        widget::common::shortcut(theme, "q", "quit"),
                    ],
                ),
@@ -346,7 +346,7 @@ impl IssuePage {
                        widget::common::shortcut(theme, "esc", "back"),
                        widget::common::shortcut(theme, "↑/↓", "navigate"),
                        widget::common::shortcut(theme, "enter", "show"),
-
                        widget::common::shortcut(theme, "n", "new issue"),
+
                        widget::common::shortcut(theme, "o", "open"),
                        widget::common::shortcut(theme, "q", "quit"),
                    ],
                ),
modified src/ui/widget/issue.rs
@@ -408,6 +408,6 @@ pub fn description_context(
}

pub fn form_context(_context: &Context, theme: &Theme, progress: Progress) -> Widget<ContextBar> {
-
    common::context::bar(theme, "Edit", "", "", "", &progress.to_string())
+
    common::context::bar(theme, "Open", "", "", "", &progress.to_string())
        .custom(ContextBar::PROP_EDIT_MODE, AttrValue::Flag(true))
}