Open GijsTimmers opened 9 years ago
This is possible, but we should first fix cd
autocompletion in the current directory instead. This is now still very primitive. See also issues #16 and #35
It's probably best to group all feature requests for cd autocompletion in a separate issue #51 so we don't drown in cd feature requests :p
I think this one is for the long run, since there is still a lot of 'basic' cd work...
I'll lock this one, so discussion happens at a central place: issue #51 Feel free to open an issue for "future cd work" that discusses more advanced cd work. This way issue #51 won't overflow now, I think.
Take, for example, this directory structure:
Note that the current working directory is still
/tmp
. Typingcd Bloem
Tab should yield:cd Groenten/Bloemkool/
.In other words, when we
cd
to a directory,jsh
should make a list of subdirectory's subdirectories (got it?). We should also look into the possibility of autocompleting parent directories:Now, pressing
cd Drui
Tab should yield:cd ../Druiven
We should test whether this is feasible. We should make sure that
jsh
stays snappy. We could limit the number of subdirectories / levels if necessary.