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

Re: completion after //



>>> "Sven" == Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:

[...]

 Sven>> ls ./////f{o/b/b/p<TAB>

 Sven> gives:

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

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

[...]

I will try later not to rewrite PREFIX and SUFFIX but only the copies
of these used by _path_files.  Then,_path_files should complete
as if there no sequence of slashes, but since the line won't be modified,
I suppose the braces won't move.

Index: Doc/Zsh/compsys.yo
--- Doc/Zsh/compsys.yo Thu, 20 Jan 2000 10:18:01 +0100 Alexandre
+++ Doc/Zsh/compsys.yo Thu, 20 Jan 2000 11:10:30 +0100 Alexandre
@@ -1167,9 +1167,10 @@
 if it is set to tt(..), only `tt(..)' will be added.
 )
 item(tt(squeeze-slashes))(
-If set to `true', sequences of slashes (such as tt(foo//bar)) will 
-be rewritten with a single slash (tt(foo/bar)) when completing
-directory names.
+If set to `true', sequences of slashes (like in `tt(foo//bar)') will be
+rewritten with a single slash (`tt(foo/bar)') when completing directory
+names.  Using this style can confuse tt(zsh) if slashes get squeezed 
+before braces completion (e.g. when trying to complete `tt(//{etc)').
 )
 item(tt(stop))(
 If set to `true', the tt(_history_complete_word) bindable

-- 
Alexandre Duret-Lutz



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