-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
cli/sql: trigger history search by typing a prefix + up arrow #21825
Comments
cc @knz |
You can customize bindings with libedit in your Offhand remark: we've made the choice to rely on a 3rd party moderately standard library precisely because we don't want to be baking custom code around an area of unix which is extremely hard to get right. I am not keen to go and tweak that code to address every need under the sun. In my opinion: if libedit supports this with a custom inputrc, then use that. If it doesn't, tough luck. If it works in bash and not in libedit, that's just a sign that GNU readline is better. But we knew that already. If it was not for licensing, we'd use GNU readline too. |
We have marked this issue as stale because it has been inactive for |
We have marked this issue as stale because it has been inactive for |
I want the history search to be activated when I press the up arrow after typing a statement prefix. The search should be initialized with that prefix. So, if I type "alt" then up arrow, I want to search for the last statement that started with "alt". And then up arrow and down arrow would cycle through commands with that prefix.
You get that in bash with this:
I think it's inspired by Matlab's console, and it's so good! I never want to use a terminal without it again.
Jira issue: CRDB-5874
The text was updated successfully, but these errors were encountered: