-
Notifications
You must be signed in to change notification settings - Fork 337
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
exploring multiselect possibilities #163
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And better use readline.Char*
instead of hardcode.
@@ -235,3 +237,20 @@ func (l *List) Items() ([]interface{}, int) { | |||
|
|||
return result, active | |||
} | |||
|
|||
func (l *List) Select() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://travis-ci.org/github/manifoldco/promptui/jobs/745229020#L234
list/list.go:241:1: exported method `List.Select` should have comment or be unexported (golint)
} | ||
} | ||
|
||
func (l *List) Selected() []int { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://travis-ci.org/github/manifoldco/promptui/jobs/745229020#L237
list/list.go:249:1: exported method `List.Selected` should have comment or be unexported (golint)
HideHelp bool | ||
} | ||
|
||
func (ms *MultiSelect) Run() ([]int, []string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://travis-ci.org/github/manifoldco/promptui/jobs/745229020#L240
select.go:690:1: exported method `MultiSelect.Run` should have comment or be unexported (golint)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- make a Select prompt
- do up/down step util new page of size
- Enter to select
- cause
out of range
error
Seems new innerRun
logic broken old Select
behaviour.
No description provided.