Full source code ⋅ Previous chapter ⋅ Next chapter
Task statuses have been successfully introduced - then user should be able to switch them.
Before we used Shifter for List as a command, we should add options for task status switchers as well:
In addition we add patterns for commands:
Let's distinguish keys for navigation and state transitions with case:
Challenge: use other group of ASCII symbols for commands.
The last step is updating the state. If we get Status command, to get access to an element under the current cursor we need to narrow Scope from Scrolling List to Alone:
Challenge: update focused item of Scrolling List without Scope.