Closed KillTheMule closed 5 years ago
I think I can find ways to provide those extension points so that the API can take those or fallback to the actual behavior if not provided.
A quick feedback: Columnizing per option level requires a major rework on how I deal with options. I feel like I'd better resort to giving you the option of deciding how to columnize based on the session object + current set of options. The same thing should be with the sorting.
So, in short. Items 2 and 3 will be done, item 1 will be solved by 2.
Some thoughts about how we can influence how the menus look:
columns
option. Imho it should not be an option toask_args
, but a part of theoptions
table, so different menus can have a different number of columns.ask_args
or something like that? For example, I'd personally like to compute the number of columns dynamically, depending on the width of the window and the length of the menu entries, and I'd also like them to be "left aligned".