Properly pad mod indices

This commit is contained in:
marceline-cramer 2021-12-10 20:40:26 -07:00
parent d60ae8aac7
commit 10d6710232
2 changed files with 2 additions and 2 deletions

View File

@ -19,6 +19,7 @@ A Minecraft mod manager for the terminal.
- nushell autocomplete
- manpage
- configurable mod search result display like [Starship](https://starship.rs)
- `display` command or something that displays (cached?) mod info
Long-term/host-dependent:
- conflict resolution

View File

@ -153,7 +153,7 @@ impl ModResult {
let index = style(index).magenta();
let info = self.format_info();
let description = self.format_description();
println!("{} {}\n {}", index, info, description);
println!("{:>2} {}\n {}", index, info, description);
}
}
@ -231,7 +231,6 @@ async fn search_mods(ctx: &AppContext, search_args: &SearchArgs) -> anyhow::Resu
Ok(response)
}
// TODO pad mod indices based on largest number
fn display_search_results(ctx: &AppContext, response: &SearchResponse) {
let iter = response.hits.iter().enumerate();
if ctx.config.options.reverse_search {