[NPMCLI-200] Allow up/down arrow keys to select an option in the mgnl jumpstart list Created: 14/Jan/19 Updated: 01/Sep/21 |
|
| Status: | Open |
| Project: | Magnolia CLI |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Martin Drápela | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Description |
|
After executing the mgnl jumpstart command, a list of options is displayed, one of them ( 2) magnolia-community-webapp ) highlighted by default.
Now, the UI expects the user to enter a number 1-8. However, seeing the highlighted option 2), I first instinctively press the arrow-down key to select e.g. option 3), only to find out that the CLI actually moved me to option 1) when I pressed the key. Allow using the up and down arrow keys to select an option in the list. |
| Comments |
| Comment by Martin Drápela [ 01/Sep/21 ] |
|
Update of 2021-09-01: The npm-cli `inquirer` package allows using the cursor keys (or J K) to move across the options in the `list` prompt type, but probably not in the `rawlist` type that is implemented in the jumpstart command. The CLI inquirer package itself would have to be probably updated with that functionality. Could you mmichel confirm quickly this and close the present improvement ticket as Won't do if true? Thanx a lot. |