When I am using zsh (default installation of oh-my-zsh) and press Tab it auto-completes the path which is very useful.
If there is only one candidate the auto-completion system just add the candidate to the path you're currently typing, as expected!
But if there are more than one candidate it displays a list below the PS for you to see, from here you have two choices:
You see one item in the list that matches your intention, you start typing the first letters and tab again to autocomplete the full word.
You tab directly after the list appears and then you can use the navigation keybindings to select an item in the list and then press enter to append the selected item in the current path you're typing.
In the second case you've pressed Tab two times in a row, the second Tab to enter the navigation mode.
Is there a way to tell zsh
to directly enter the navigation list, in other words to highlight the first item if there is a list of choices?
set -o menucomplete
. Seeinfo zsh menucomplete
for details.