反向i搜索


REPL 支持类似于 ZSH 的双向反向搜索。

改变方向立即从当前位置开始搜索预期方向的下一个条目。

The REPL supports bi-directional reverse-i-search similar to ZSH. It is triggered with <ctrl> + R to search backward and <ctrl> + S to search forward.

Duplicated history entires will be skipped.

Entries are accepted as soon as any button is pressed that doesn't correspond with the reverse search. Cancelling is possible by pressing escape or <ctrl> + C.

Changing the direction immediately searches for the next entry in the expected direction from the current position on.