-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
CTRL-P/CTRL-N unexpected behavior #78
Comments
The problem with this new behaviour is that it conflicts with the defacto standard for how CTRL-P and CTRL-N work in all other apps that I've tested: eg, the bash shell, the python shell, etc. I guess what I want is readline compatibility with no surprises for my users. If you type CTRL-P on an empty line, instead of getting the previous history item, as expected, you get the last identifier in the completion list, which isn't useful in this context. I found the following code:
I guess the new behaviour is deliberate. The above code conflicts with the comments in this code:
|
Hi @doug-moen Yes. In fact CTRL-P and CTRL-N mappings were deliberately changed from bind_key_internal( Replxx::KEY::control( 'N' ), "history_next" );
bind_key_internal( Replxx::KEY::control( 'P' ), "history_previous" ); lines. The discussion wether changing the default was a good decision in the long term would be interesting I hope that new API that |
Sorry, for closing this issue, that was a miss-click. |
You may have changed other key bindings to be different from readline, or you may decide to make additional changes in the future. What would help me is a standard function to reset the key bindings to be readine compatible:
Would you consider adding this function? |
Personally I will work on adding support for 256 color palette to |
CTRL-P and CTRL-N do not work as expected in the head revision.
What they should do is move up and down the history list, just like up-arrow and down-arrow.
They used to work this way, but the behaviour has changed.
Can reproduce using the example application.
The text was updated successfully, but these errors were encountered: