diff --git a/README.md b/README.md index 13964d2..d824187 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/src/main.rs b/src/main.rs index d63f74f..ec023c1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 {