I am in shell-mode with bash-completion enabled. When I attempt tab completion, Emacs creates a new window to display completions.
For example, if I am in a directory with subdirectories foo and foobar, and I type cd foo TAB, Emacs will open a new buffer with the following contents:
Click on a completion to select it. In this buffer, type RET to select the completion near point. Possible completions are: foo/ foobar/ If I C-x o into the other window and select a completion, then the window disappears. However, that takes a few keystrokes, so sometimes I end up instinctively completing the path myself. If I do that, the window sticks around.
How can I improve this workflow so that my shell stops generating extra windows? I didn't want to make this an XY problem, but I can think of a few ways. One idea would be to hide the window if I keep typing. Something better would be to hook the completion results into ido.
ido-ubiquitous-modealready active. Deactivating it does not seem to affect the problematic behavior.