clr-boot-manager icon indicating copy to clipboard operation
clr-boot-manager copied to clipboard

Suggestion: CBM - Give each kernel a unique number/code so it's easier to select instead of typing out full name

Open bktan8 opened this issue 4 years ago • 6 comments

It would be nice to put a unique number/code in front of each kernel when I do a "list". And then when I do a "set", I can just use the number/code instead of having to type up the full name. Less chance for mistakes that way.

bktan8 avatar Mar 23 '20 18:03 bktan8

The list could change, making the numbers invalid. But yes, in a console, where you can't copy and paste, this would be a problem.

tab completion may be a good solution here.

ahkok avatar Mar 23 '20 19:03 ahkok

set having tab completion would be reasonable.

bryteise avatar Mar 23 '20 19:03 bryteise

we could hash the kernel name and support a short hash.

dorileo avatar Mar 23 '20 21:03 dorileo

The output of efibootmgr comes to mind. Maybe that style?

puneetse avatar Mar 23 '20 21:03 puneetse

@puneetse that's exactly what @ahkok is trying to avoid. I agree with him, the list may change between calling list and set kernel.

dorileo avatar Mar 23 '20 22:03 dorileo

Tab completion works for me in zsh btw. @lebensterben submitted a PR so I think this is fine as is.

bryteise avatar Mar 23 '20 22:03 bryteise