I am frequently diving through many layers of directory hierarchies (thanks, Java) to find files named like this…


The main issue that I have is that TAB-completion in find-file only completes one directory at a time, meaning that I may have to press TAB 5 times to get through the first few layers of the hierarchy, where each directory contains only one subdirectory and nothing more (e.g. com/ contains only company/, company/ contains only thing/), etc.

Is there any package that modifies TAB-completion with standard Emacs commands, including find-file, so that multiple directories will be "greedily" autocompleted when they contain only one subdirectory?

I'm aware of Projectile, and know that it has a similar feature, but I'm hoping to find something standalone and minimal that just solves this one issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.