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

Allow menu lines to be customized beyond the index #97

Open
dantman opened this issue Nov 1, 2013 · 2 comments
Open

Allow menu lines to be customized beyond the index #97

dantman opened this issue Nov 1, 2013 · 2 comments

Comments

@dantman
Copy link

dantman commented Nov 1, 2013

HighLine::Menu feels relatively restricted. Besides the index, the output of each line can only contain the item.

This means that where you have simple items and more descriptive textual forms you end up stuck only outputting the cryptic short item leaving you with a not so intuitive user interface.

For example take a list of countries. With (item, text) pairs like (:us, "United States"), (:ca, "Canada"), ... the interface is stuck looking like this:

1. us
2. ca
Country: us

Since we have textual forms a much more intuitive way to output this menu would be:

1. us - United States
2. ca - Canada
Country: us

However this is currently impossible without reimplementing the layout in a really mess and hacky way. Menu has help text however all this does when used is add an additional help item which isn't very useful or intuitive for this.

@JEG2
Copy link
Owner

JEG2 commented Nov 1, 2013

Feel free to cook up a patch.

@JEG2
Copy link
Owner

JEG2 commented Feb 5, 2015

We are currently planning the next major version of HighLine. We will include a discussion of this issue in the plans we make for that release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants