cd autosuggestion should descend "unique" hierarchies #2531

ridiculousfish opened this Issue Nov 7, 2015 · 3 comments


None yet

2 participants


If I intend to cd into a directory, and the directory has only one non-hidden child which is itself another directory, then it's a safe bet I want to descend into that child. And so on recursively. The cd autosuggestion should reflect that.

This is especially useful for e.g. Java source trees that have lots of empty directories.

@ridiculousfish ridiculousfish added this to the next-2.x milestone Nov 7, 2015
@ridiculousfish ridiculousfish added a commit that closed this issue Nov 7, 2015
@ridiculousfish ridiculousfish Teach the cd autosuggestion how to descend "unique" hierarchies
If we are cd'ing into a directory, and the directory has only one
child which is itself a directory, the autosuggestion should
descend as far as it can.

Fixes #2531

We should relnote this

@faho faho added the releasenotes label Nov 8, 2015
faho commented Nov 8, 2015

@ridiculousfish: We now have a label for just that!


Why didn't I think of that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment