senchabot-interface icon indicating copy to clipboard operation
senchabot-interface copied to clipboard

Get previous command(s) when interacting with the arrow up key

Open rasitds opened this issue 2 years ago • 1 comments

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

rasitds avatar Mar 11 '23 15:03 rasitds

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.

emredevsalot avatar Mar 22 '23 10:03 emredevsalot