jshusko
jshusko

Reputation: 35

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

In OCaml's utop, I can use alt+left or alt+right to move through autocomplete sections, but when I click tab to autocomplete the first selection is used. What do I do?

Upvotes: 1

Views: 196

Answers (1)

Splingush
Splingush

Reputation: 246

You can complete with the current selection with alt+down.

If you type in #utop_bindings;;, you can see all keybindings.

You may also customize your bindings by creating a ~/.lambda-term-inputrc-file, for example:

[read-line]
tab: complete-bar

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

Upvotes: 5

Related Questions