Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
History search bindings in bash break up/down arrow completely #51
From JRUBY-6787: http://jira.codehaus.org/browse/JRUBY-6787
When a bash .inputrc contains the following lines, it appears to break up/down arrow behavior in a console using jline:
I'm not really familiar with bash, but the readline equivalent to history-search-backward is Ctrl-r, which does work properly in jline.
Expected behavior would be that up and down get bound to (and cause to happen) the appropriate readline equivalents of forward and backward history searching.
added a commit
Jul 25, 2012
OK, this gets
Forward history searching is currently not implemented (via Ctrl-s or by any other means). I'd love to have it too, so I'll leave this issue open for that to get in place.
So you can type something like
If it's possible, it'd be really nice to have this feature.
@jszakmeister Are you on jline 2.11? I think the behavior you're describing that you want is the same as what I'm seeing on 2.11, via
Have you mapped your arrow keys to the command you want,
@trptcolin How can I tell from reply? Leiningen is saying that reply 0.1.10 is in use. But I did take a look at the source code before actually writing the comment.
I don't want the same behavior as
Yes, I've mapped the keys and they are working correctly (I mapped them to other things just to check).
Correct, the 3 options do slightly different things. I'll see if I can put something together that does the right thing--for at least