Alt + Left 和 Alt + Right 允许我在 Utop 中的自动完成之间切换,但选项卡将返回到第一个选择

Alt + Left and Alt + Right allows me to switch between autocompletes in Utop, but tab will go back to first selection

在 OCaml 的 utop 中,我可以使用 alt+left 或 alt+right 在自动完成部分之间移动,但是当我单击选项卡自动完成时,会使用第一个选择。我该怎么办?

您可以使用 alt+down 完成当前选择。

如果您输入 #utop_bindings;;,您可以看到所有的键绑定。

您还可以通过创建 ~/.lambda-term-inputrc 文件来自定义绑定,例如:

[read-line]
tab: complete-bar

参见:https://github.com/ocaml-community/utop#key-bindings