-
Notifications
You must be signed in to change notification settings - Fork 157
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
Binding a key sequence to a macro #50
Comments
There has been some discussion on bug-readline, about doing this for readine itself, where the conclusion was that this is not so simple. Problem: in A possible solution would be to send as much information as possible in a
This would subsume the current If sending the complete history for every hotkey keystroke is a bit too much, I could also implement a |
I worked this out in branch hash_history, and this looks quite promising. History edit is now done in a few lines of One little twist should/will be added to the hotkey handler: if the returned input line ends with a newline, immediately accept the result, otherwise keep editing. So, if (and only if) we e.g. put two empty lines before a history line (or e.g. end a multi-line edit with a '!') accept the result |
Thanks a lot for the great work! That is what I really want! I added |
All merged and done. Closing. |
This is relevant with the issue #47.
I have used peco for history expansion on bash for the last years. Adding the following code in my
.bashrc
, myctrl-r
invokes peco:If the
rlwrap
has the feature like thebind
command ofbash
to bind a key sequence to a macro, it augments therlwrap
's history expansion feature and gives therlwrap
more flexibility.The text was updated successfully, but these errors were encountered: