-
Notifications
You must be signed in to change notification settings - Fork 80
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
Added 'History' support, along with default SimpleHistory implementation and tests #229
base: main
Are you sure you want to change the base?
Conversation
I think this is pretty great, thanks a lot for the contributions!
This made me think of an approach that I believe would work really well, let me know your thoughts: On a fundamental level, this is another approach on giving suggestions to the user. Think about normal bash "up and down" vs Also, the current suggestion approach (a selection list) obviously conflicts with this in terms of keybindings, which leads me to think they are exclusive to each other. I feel that inquire is reaching a stage where it's bloated with a ton of different pieces to use but it's missing a better UX story. I think there is a path here for a unified approach to suggestions/auto-completion/history |
Thanks!
Yes, agreed.
Yeah, while building this feature, and largely pairing it with autocomplete side-by-side, it seemed like supporting a generalized "navigation" framework, which can hook into suggestions, history, or whatever else, would be the right way to go. I'd love to be able to define some kind of callback or handler for specific keystrokes within my application, and feed outputs back into the prompt |
I've been pondering over something like a "Query" prompt similar to what you're both describing.
|
This is a suggested implementation of prompt history for
Text
proposed in #224The diff hooks into the key bindings for up and down arrows, currently used for suggestion navigation, to also potentially navigate upwards and downwards through prompt history.
A user can set a prompt history when creating their new
Text
via something liek