Add tabs to select #483

Closed
opened 2026-05-06 05:04:37 +00:00 by LunarTides · 0 comments
Owner

Add tabs the user can switch between in select. This can be used in e.g the gameloop prompt with one tab for cards and another for commands.

Switch between tabs using the left and right arrow keys. Use tab and shift+tab as an alternative.

This will require reimplementing select from Inquirer.js like I did for input. Make escape key select the back button automatically while you’re at it.

Change parameter in createUILoop from () => [] to { type: "tab" | …, generator: () => [] }[]

Add tabs the user can switch between in select. This can be used in e.g the gameloop prompt with one tab for cards and another for commands. Switch between tabs using the left and right arrow keys. Use tab and shift+tab as an alternative. This will require reimplementing select from Inquirer.js like I did for input. Make escape key select the back button automatically while you’re at it. Change parameter in `createUILoop` from `() => []` to `{ type: "tab" | …, generator: () => [] }[]`
LunarTides added this to the 4.0 milestone 2026-05-06 05:04:37 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LunarTides/Hearthstone.js#483
No description provided.