Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display /HELP command list more compactly #440

Open
DanielOaks opened this issue Mar 3, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@DanielOaks
Copy link
Member

commented Mar 3, 2019

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:

  1. Splits the line into X columns.
  2. Go through sequentially adding the items, separated by the spaces.
  3. If it overruns the column, overflow onto the next column.
  4. 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.

Suggested by @bogdomania :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.