diff --git a/src/app.rs b/src/app.rs index 726edd06..3e8098c7 100644 --- a/src/app.rs +++ b/src/app.rs @@ -221,10 +221,6 @@ impl App { }); } - res.push(CommandInfo { - name: strings::CMD_STATUS_NEXT.to_string(), - enabled: true, - }); res.push(CommandInfo { name: strings::CMD_STATUS_QUIT.to_string(), enabled: true, diff --git a/src/components/diff.rs b/src/components/diff.rs index 8729ad46..e4b4e1e9 100644 --- a/src/components/diff.rs +++ b/src/components/diff.rs @@ -86,7 +86,7 @@ impl Component for DiffComponent { Paragraph::new(txt.iter()) .block( Block::default() - .title(strings::DIFF_TITLE) + .title(strings::TITLE_DIFF) .borders(Borders::ALL) .border_style(style_border) .title_style(style_title), diff --git a/src/strings.rs b/src/strings.rs index 233317ae..0b6e5449 100644 --- a/src/strings.rs +++ b/src/strings.rs @@ -1,17 +1,17 @@ pub static TITLE_STATUS: &str = "Status [1]"; +pub static TITLE_DIFF: &str = "Diff [2]"; pub static TITLE_INDEX: &str = "Index [3]"; + pub static TAB_STATUS: &str = "Status"; pub static TAB_DIVIDER: &str = " | "; pub static CMD_STATUS_STAGE: &str = "Stage File [enter]"; pub static CMD_STATUS_UNSTAGE: &str = "Unstage File [enter]"; pub static CMD_STATUS_RESET: &str = "Reset File [D]"; -pub static CMD_STATUS_NEXT: &str = "Next [tab]"; pub static CMD_STATUS_QUIT: &str = "Quit [esc,q]"; pub static CMD_SPLITTER: &str = " "; pub static DIFF_CMD_SCROLL: &str = "Scroll [↑↓]"; -pub static DIFF_TITLE: &str = "Diff [2]"; pub static COMMIT_TITLE: &str = "Commit"; pub static COMMIT_MSG: &str = "type commit message..";