diff --git a/src/caelestia/subcommands/install.py b/src/caelestia/subcommands/install.py index e13ebec..0042d15 100644 --- a/src/caelestia/subcommands/install.py +++ b/src/caelestia/subcommands/install.py @@ -124,8 +124,9 @@ class Command: return print(format_msg(PROMPT_COLOUR, "Components to enable?")) + max_idx_w = len(str(len(comp_arr))) for i, comp in enumerate(comp_arr): - print(format_msg(PROMPT_COLOUR, f" [{i + 1}] {comp}")) + print(format_msg(PROMPT_COLOUR, f" {i + 1:<{max_idx_w}}\t{comp}")) print(format_msg(PROMPT_COLOUR, "[A]ll or (1 2 3, 1-3, ^4)")) ans = prompt("", end="").lower().strip()