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

How to search history using PgUp and PgDown #103

Closed
hyperknot opened this issue Dec 29, 2013 · 5 comments
Closed

How to search history using PgUp and PgDown #103

hyperknot opened this issue Dec 29, 2013 · 5 comments

Comments

@hyperknot
Copy link

I used to use bash / msysgit before cmder. One feature missing from cmder is that in bash I could easily configure PgUp and PgDown to make an automatic history search based on the already typed command in prompt.

This was what I had to add to inputrc:

"\e[5~": history-search-backward
"\e[6~": history-search-forward

Now I've seen the Ctrl + R "reverse-i-search" functionality, but honestly this can not be compared to the automatic and efficient method of bash's history-search-...

Can you tell me how can I bind PgUp and PgDown to provide a similar history lookup function like bash?

@hyperknot
Copy link
Author

Opened a ticket for it in clink, I guess that's the part of cmder where it's implemented.
https://code.google.com/p/clink/issues/detail?id=177

@hyperknot
Copy link
Author

Clink developer has solved this issue, the required keys are different in Linux and Windows. The correct ones are:

"\e`I": history-search-backward # page-up
"\e`Q": history-search-forward  # page-down

and it'll be in the next clink release: https://code.google.com/p/clink/issues/detail?id=177

@hyperknot hyperknot reopened this Jan 21, 2014
@hyperknot
Copy link
Author

I'll leave it open till it's implemented either by an updated clink release or a manual addition to clink_inputrc

@MartiUK
Copy link
Member

MartiUK commented Jan 21, 2014

Perfect, thanks!

@Jackbennett
Copy link
Contributor

page-up / down is scrolling up/down through my commands history just like up/down arrows do.

I think that's right from the descriptions provided. Re-open if this is incorrect please.

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

No branches or pull requests

3 participants