senchabot-interface
senchabot-interface copied to clipboard
Get previous command(s) when interacting with the arrow up key
Is your feature request related to a problem? Please describe. I have to retype the command as there is no way to fetch the previous command(s) in the input field.
Describe the solution you'd like The previous command(s) can be printed in the input field when interacted with the arrow up key
Maybe we can push the last used command to an array, and put it in a state. Then we can move through elements of the array with the arrow keys.