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

Re: completion after //



Alexandre Duret-Lutz wrote:

> >>> "Sven" == Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:
> 
> [...]
> 
>  Sven> I fear it will mess up completion inside braces (only if both multiple 
>  Sven> slashes and braces are used at the same time), but: try it. Using a
>  Sven> style for it, of course ;-)
> 
> [...]
> 
> Here is the patch that add a squeeze-slashes style for that.
> I couldn't find any problem with braces completion, but maybe I wasn't
> looking the right direction.

This:

  > zstyle '*' squeeze-slashes yes
  > mkdir foo{,/bar{,/baz{,/plop}}}
  > ls ./////f{o/b/b/p<TAB>

gives:

  > ls ./foo/bar/{baz/plop/

I don't see a solution. But maybe it's seldom enough. Maybe we should
add a comment about this in the docs.

> +  file-patterns		 c:

Uh, oh. Thanks :-}

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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