elvish icon indicating copy to clipboard operation
elvish copied to clipboard

Partial path completion

Open suhr opened this issue 8 years ago • 2 comments
trafficstars

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.

suhr avatar Mar 04 '17 01:03 suhr

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?

ghost avatar Dec 28 '17 19:12 ghost

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.

krader1961 avatar Aug 11 '22 02:08 krader1961