1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-25 03:16:01 +00:00

fix: update continuation prompt to be more minimal (#3374)

Co-authored-by: Kevin Song <chips@ksong.dev>
This commit is contained in:
Matan Kushner 2022-01-01 22:39:08 +03:00 committed by GitHub
parent 4deaa02d6f
commit 800fbec0cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -145,7 +145,7 @@ Produces a prompt like the following:
Some shells support a continuation prompt along with the normal prompt. This prompt is rendered instead of the normal prompt when the user has entered an incomplete statement (such as a single left parenthesis or quote).
Starship can set the continuation prompt using the `continuation_prompt` option. The default prompt is `"[](bold yellow)"`.
Starship can set the continuation prompt using the `continuation_prompt` option. The default prompt is `"[∙](bright-black) "`.
Note: `continuation_prompt` should be set to a literal string without any variables.

View File

@ -524,7 +524,7 @@ mod tests {
let config = toml::toml! {
untracked.value = "x"
modified = { value = "", style = "red" }
modified = { value = "", style = "red" }
};
let mut git_status_config = TestConfig {
@ -549,7 +549,7 @@ mod tests {
assert_eq!(
git_status_config.modified,
SegmentDisplayConfig {
value: "",
value: "",
style: Color::Red.normal(),
}
);

View File

@ -159,7 +159,7 @@ impl<'a> Default for FullConfig<'a> {
Self {
format: "$all".to_string(),
right_format: "".to_string(),
continuation_prompt: "[](bold yellow)".to_string(),
continuation_prompt: "[∙](bright-black) ".to_string(),
scan_timeout: 30,
command_timeout: 500,
add_newline: true,

View File

@ -96,7 +96,7 @@ impl<'a> Default for StarshipRootConfig {
StarshipRootConfig {
format: "$all".to_string(),
right_format: "".to_string(),
continuation_prompt: "[](bold yellow)".to_string(),
continuation_prompt: "[∙](bright-black) ".to_string(),
scan_timeout: 30,
command_timeout: 500,
add_newline: true,