Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rasitds opened this issue Mar 11, 2023 · 1 comment
Open

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

rasitds opened this issue Mar 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@rasitds
Copy link
Owner

rasitds commented Mar 11, 2023

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 rasitds added the enhancement New feature or request label Mar 11, 2023
@emredevsalot
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants