反向搜索
¥Reverse-i-search
REPL 支持类似于 ZSH 的双向反向搜索。向后搜索由 Ctrl+R 触发,向前搜索由 Ctrl+S 触发。
¥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 forwards.
重复的历史条目将被跳过。
¥Duplicated history entries will be skipped.
只要按下与反向搜索不对应的任何键,条目就会被接受。按 Esc 或 Ctrl+C 可以取消。
¥Entries are accepted as soon as any key is pressed that doesn't correspond with the reverse search. Cancelling is possible by pressing Esc or Ctrl+C.
改变方向立即从当前位置开始搜索预期方向的下一个条目。
¥Changing the direction immediately searches for the next entry in the expected direction from the current position on.