反向智能搜索(反向我搜索),如何让previous结果呢? [英] Reverse intelligent search (reverse-i-search), how to get previous result?
问题描述
在终端上做反向智能搜索(<大骨节病>控制骨节病> + <大骨节病>研究骨节病>),我可以让pressing <大骨节病>控制骨节病> + <大骨节病> - [R 骨节病>回去历史,并得到包含我的搜索字符串较早的命令。
When doing reverse intelligent search on a terminal (Ctrl+R), I can keep pressing Ctrl+R to go back in "history" and get older commands containing my search string.
我怎样才能搬回来,我已经显示的结果(previous搜索结果)?
How can I move back to a result which I have already displayed (a previous search result)?
推荐答案
我要离开的人参考谁可能会发现这一点,作为<一个href=\"http://stackoverflow.com/questions/549810/control-r-reverse-i-search-in-cygwin-bash-how-do-you-reset-the-search\">linked问题其实要求别的东西(即使其中一个答案包含了解决这个问题)。
I want to leave a reference for people who may find this, as the linked question actually asks for something else (even if one of the answers contains the solution to this problem).
键绑定向前推进是<大骨节病> CTRL 骨节病> <大骨节病>取值骨节病>。
问题是,这种结合,在众多的终端,默认情况下使用发送暂停传输code( XOF
)。
The problem is that this binding, in many terminals, is used by default to send the pause transmission code (XOF
).
作为男人的stty
:
[-]ixon
enable XON/XOFF flow control
所以,如果你有你的终端上启用这个选项(输出的stty -a
包含 IXON
withouth的在 -
在前面的标志),则不能使用<大骨节病> CTRL 骨节病> <大骨节病>取值骨节病>在反向我搜索的情况下
So, if you have this option enabled on your terminal (the output of stty -a
contains ixon
withouth the -
sign in front), you cannot use CTRLS in the context of reverse-i-search.
要禁用它,使用下面的命令:
To disable it, use the following command:
stty -ixon
和<大骨节病> CTRL 骨节病> <大骨节病>取值骨节病>会给你一个(I-搜索)
(非反转)。
And CTRLS will give you a (i-search)
(non reverse).
这篇关于反向智能搜索(反向我搜索),如何让previous结果呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!