-
Notifications
You must be signed in to change notification settings - Fork 18
feat: command history #110
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
Conversation
|
This works great, thanks. Will make an issue to add ghost text in the future and I'm wondering if we should store it at |
|
Ghost text would be neat! Regarding the location of the history file, maybe we could base it on a flexible XDG approach for config and state files:
|
|
Sounds good. You want to add that to this PR or as a future issue? |
|
Perfect. I can add it to this PR in a little while. |
|
I’ve included the logic for both the config and history file locations in this PR, as mentioned above. |
This PR introduces command history.
Navigation: Pressing the up and down arrow keys (customizable) in command mode cycles through previous commands.
Persistence: History is automatically saved across sessions.
Filtering: Typing the initial characters of a command filters the history for faster recall.
With filtering, this update also appears to resolve issue #63.