Properly pad mod indices
This commit is contained in:
parent
d60ae8aac7
commit
10d6710232
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue