Cmder – Use to cycle through the auto completes candidates

cmder

In the original cmd.exe in Windows, can be used to cycle through the auto completes candidates. But in cmder, this feature seems to be removed. Is there anyway to enable it?

Best Answer

As mentioned above, 'cmder' is an amalgamation of other open source software. The software which controls the tab completion behaviour is 'clink'. To change this behaviour, navigate to your 'cmder' directory and then find:

\cmder\vendor\clink\clink_inputrc_base

Open 'clink_inputrc_base', save a backup original, and then replace both lines that read:

"\t": clink-completion-shim

with:

"\t": menu-complete

for shift+tab cycle backward behaviour, also add a line below each of the above lines that reads:

"\e`Z": menu-complete-backward

This worked for me. Credit to this link for the info on modifying clink behaviour:

https://github.com/mridgers/clink/issues/190

EDIT: Please see my comment below, or additional answer from 'tides'. In newer versions of cmder the process is slightly simpler. You just have to uncomment the lines as described in the file, see my comment or other answer for more detail.

Related Question