mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2026-02-02 15:45:11 +01:00
chore: change multi suggest to unordered list
This commit is contained in:
parent
5193d6c17d
commit
e9cf81cc42
1 changed files with 2 additions and 3 deletions
|
|
@ -100,7 +100,7 @@ pub fn select_candidate(data: &mut Data) {
|
||||||
|
|
||||||
if highlight_candidates.iter().any(|x| x.contains('\n')) {
|
if highlight_candidates.iter().any(|x| x.contains('\n')) {
|
||||||
for candidate in highlight_candidates.iter_mut() {
|
for candidate in highlight_candidates.iter_mut() {
|
||||||
*candidate = format!("\t{}", candidate.replace("\n", "\n\t"));
|
*candidate = format!("* {}", candidate.replace("\n", "\n "));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -109,8 +109,7 @@ pub fn select_candidate(data: &mut Data) {
|
||||||
.with_prompt_prefix(style)
|
.with_prompt_prefix(style)
|
||||||
.with_highlighted_option_prefix(ui::Styled::new(">").with_fg(Color::LightBlue))
|
.with_highlighted_option_prefix(ui::Styled::new(">").with_fg(Color::LightBlue))
|
||||||
.with_scroll_up_prefix(ui::Styled::new("^").with_fg(Color::LightBlue))
|
.with_scroll_up_prefix(ui::Styled::new("^").with_fg(Color::LightBlue))
|
||||||
.with_scroll_down_prefix(ui::Styled::new("v").with_fg(Color::LightBlue))
|
.with_scroll_down_prefix(ui::Styled::new("v").with_fg(Color::LightBlue));
|
||||||
.with_option_index_prefix(ui::IndexPrefix::SpacePadded);
|
|
||||||
|
|
||||||
let msg = format!("{}", t!("multi-suggest", num = candidates.len()))
|
let msg = format!("{}", t!("multi-suggest", num = candidates.len()))
|
||||||
.bold()
|
.bold()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue