Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

# Re: Matching anywhere in a full path

On 14/04/15 08:06, Jesper Nygårds wrote:
> Here's what I don't know how to solve: I would like to type some string on
> the command line, and I want to have that string working as a filter for
> the suggestions, matching anywhere in the path. Say I have "/etc/foo",
> "/etc/bar" and /etc/baz/foo.txt", and I type "ls foo <\ee>", I only want
> "/etc/foo" and "/etc/baz/foo.txt" to be suggested. In other words, I want
> the completion to match against the string anywhere in the full path.

I'm not sure completion is the best way to handle this. I would recommend