mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +00:00
129 lines
3.6 KiB
Rust
129 lines
3.6 KiB
Rust
pub static TITLE_STATUS: &str = "Unstaged Changes [1]";
|
|
pub static TITLE_DIFF: &str = "Diff";
|
|
pub static TITLE_INDEX: &str = "Staged Changes [2]";
|
|
|
|
pub static TAB_STATUS: &str = "Status";
|
|
pub static TAB_DIVIDER: &str = " | ";
|
|
|
|
pub static CMD_SPLITTER: &str = " ";
|
|
|
|
pub static MSG_TITLE: &str = "Info";
|
|
pub static COMMIT_TITLE: &str = "Commit";
|
|
pub static COMMIT_MSG: &str = "type commit message..";
|
|
pub static RESET_TITLE: &str = "Reset";
|
|
pub static RESET_MSG: &str = "confirm file reset?";
|
|
|
|
pub static HELP_TITLE: &str = "Help";
|
|
|
|
pub mod commands {
|
|
use crate::components::CommandText;
|
|
|
|
static CMD_GROUP_GENERAL: &str = "General";
|
|
static CMD_GROUP_DIFF: &str = "Diff";
|
|
static CMD_GROUP_CHANGES: &str = "Changes";
|
|
static CMD_GROUP_COMMIT: &str = "Commit";
|
|
|
|
///
|
|
pub static HELP_OPEN: CommandText = CommandText::new(
|
|
"Help [h]",
|
|
"open this help screen",
|
|
CMD_GROUP_GENERAL,
|
|
);
|
|
///
|
|
pub static SCROLL: CommandText = CommandText::new(
|
|
"Scroll [\u{2191}\u{2193}]",
|
|
"scroll up or down in focused view",
|
|
CMD_GROUP_GENERAL,
|
|
);
|
|
///
|
|
pub static DIFF_HUNK_ADD: CommandText = CommandText::new(
|
|
"Add hunk [enter]",
|
|
"adds selected hunk to stage",
|
|
CMD_GROUP_DIFF,
|
|
);
|
|
///
|
|
pub static DIFF_HUNK_REMOVE: CommandText = CommandText::new(
|
|
"Remove hunk [enter]",
|
|
"removes selected hunk from stage",
|
|
CMD_GROUP_DIFF,
|
|
);
|
|
///
|
|
pub static CLOSE_POPUP: CommandText = CommandText::new(
|
|
"Close [esc]",
|
|
"close overlay (e.g commit, help)",
|
|
CMD_GROUP_GENERAL,
|
|
);
|
|
///
|
|
pub static CLOSE_MSG: CommandText = CommandText::new(
|
|
"Close [enter]",
|
|
"close msg popup (e.g msg)",
|
|
CMD_GROUP_GENERAL,
|
|
)
|
|
.hide_help();
|
|
///
|
|
pub static COMMIT_OPEN: CommandText = CommandText::new(
|
|
"Commit [c]",
|
|
"open commit view (available in non-empty stage)",
|
|
CMD_GROUP_COMMIT,
|
|
);
|
|
///
|
|
pub static COMMIT_ENTER: CommandText = CommandText::new(
|
|
"Commit [enter]",
|
|
"commit (available when commit message is non-empty)",
|
|
CMD_GROUP_COMMIT,
|
|
);
|
|
///
|
|
pub static STAGE_FILE: CommandText = CommandText::new(
|
|
"Stage File [enter]",
|
|
"stage currently selected file",
|
|
CMD_GROUP_CHANGES,
|
|
);
|
|
///
|
|
pub static UNSTAGE_FILE: CommandText = CommandText::new(
|
|
"Unstage File [enter]",
|
|
"remove currently selected file from stage",
|
|
CMD_GROUP_CHANGES,
|
|
);
|
|
///
|
|
pub static RESET_FILE: CommandText = CommandText::new(
|
|
"Reset File [D]",
|
|
"revert changes in selected file",
|
|
CMD_GROUP_CHANGES,
|
|
);
|
|
///
|
|
pub static STATUS_FOCUS_UNSTAGED: CommandText = CommandText::new(
|
|
"Unstaged [1]",
|
|
"view changes in working dir",
|
|
CMD_GROUP_GENERAL,
|
|
);
|
|
///
|
|
pub static STATUS_FOCUS_STAGED: CommandText = CommandText::new(
|
|
"Staged [2]",
|
|
"view staged changes",
|
|
CMD_GROUP_GENERAL,
|
|
);
|
|
///
|
|
pub static STATUS_FOCUS_LEFT: CommandText = CommandText::new(
|
|
"Back [\u{2190}]", //←
|
|
"view staged changes",
|
|
CMD_GROUP_GENERAL,
|
|
);
|
|
///
|
|
pub static STATUS_FOCUS_RIGHT: CommandText = CommandText::new(
|
|
"Diff [\u{2192}]", //→
|
|
"inspect file diff",
|
|
CMD_GROUP_CHANGES,
|
|
);
|
|
///
|
|
pub static QUIT: CommandText = CommandText::new(
|
|
"Quit [esc,q]",
|
|
"quit gitui application",
|
|
CMD_GROUP_GENERAL,
|
|
);
|
|
///
|
|
pub static RESET_CONFIRM: CommandText = CommandText::new(
|
|
"Confirm [enter]",
|
|
"resets the file in question",
|
|
CMD_GROUP_GENERAL,
|
|
);
|
|
}
|