elvish
elvish copied to clipboard
Partial path completion
In zsh, if you type /u/sh Tab, it will be completed to /usr/share. It would be nice to have the same feature in elvish.
Unresolved question: if there're several matching paths, should completion mode be run on parts of the path (like in zsh), or should it show all matching paths? I'd like the later, so you could type //sha Tab and choose /usr/share.
In zsh, if you type /u/sh Tab, it will be completed to /usr/share. It would be nice to have the same feature in elvish.
is this already possible?
I am a strong thumbs down on this proposal. There is way too much magic, and ambiguity, in the Fish behavior. I vote for requiring using tab completion on each individual element (the current Elvish behavior) rather than implicitly expanding prefixes. I say that as someone who used, and contributed changes to, the Fish shell for several years. I just did some adhoc tests using Fish and failed to see a compelling reason for the behavior requested in this issue. It saved me almost zero keystrokes and the results were semi-surprising now that I haven't used Fish for several years.