When you do /quote HELP index, all the commands are listed. In a very inefficient way that's difficult to browse. Instead of the single list, it should list 'em in three columns or something along those lines.
Basically: Make a function that takes a list of strings, a desired line length, a number of columns, and then:
Splits the line into X columns.
Go through sequentially adding the items, separated by the spaces.
If it overruns the column, overflow onto the next column.
If it overflows the line, try to put it on a line all by itself?
Something roughly like that, and then display it. ^ can be a function alongside the existing line-splitting function we have for maxlen.
When you do
/quote HELP index
, all the commands are listed. In a very inefficient way that's difficult to browse. Instead of the single list, it should list 'em in three columns or something along those lines.Basically: Make a function that takes a list of strings, a desired line length, a number of columns, and then:
Something roughly like that, and then display it. ^ can be a function alongside the existing line-splitting function we have for maxlen.
Suggested by @bogdomania :)