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

Re: completion for {foo,ba/baz



On Nov 1,  1:03pm, Dave Yost wrote:
}
} It seems to me that zsh completion should work on an argument that has
} a { without a closing }.

Well, it tries, but what it tries is to complete things that could be
added to the list inside the braces; it does not attempt to figure out
where you meant the closing brace to be, because:

} So, tab on
}   {foo,ba/baz
} should produce
}   {foo,bar}/baz

Why?  Brace expansions don't care about slashes the way ordinary globs
do.  This could just as easily be {foo,ba/baz,etc}.



Messages sorted by: Reverse Date, Date, Thread, Author