forked from janek/mostr
1
0
Fork 0

feat(main): improve prompt symbol

This commit is contained in:
xeruf 2024-11-09 19:20:12 +01:00
parent e9bee3c114
commit b9307b7b5d
1 changed files with 2 additions and 1 deletions

View File

@ -346,10 +346,11 @@ async fn main() -> Result<()> {
println!();
let tasks = relays.get(&selected_relay).unwrap();
let prompt = format!(
"{} {}{}) ",
"{} {}{}{}",
selected_relay.as_ref().map_or(LOCAL_RELAY_NAME.to_string(), |url| url.to_string()).dimmed(),
tasks.get_task_path(tasks.get_position()).bold(),
tasks.get_prompt_suffix().italic(),
" ".dimmed()
);
match rl.readline(&prompt) {
Ok(input) => {