反向搜索


【Reverse-i-search】

REPL 支持类似于 ZSH 的双向反向-i-搜索。可以通过 Ctrl+R 向后搜索, Ctrl+S 向前搜索。

重复的历史条目将被跳过。

【Duplicated history entries will be skipped.】

只要按下的任意键与反向搜索不对应,就会接受输入。按 EscCtrl+C即可取消。

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

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