Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion of prefix redirections is -command- instead of -redirect-
On Aug 27, 8:22am, Mikael Magnusson wrote:
} Subject: Re: Completion of prefix redirections is -command- instead of -re
}
} When I try this patch, I get all my previous cases right except the
} one you mentioned, but also
} ; < : <tab>
} completes files instead of commands now (before, it completed commands
} both with and without the : there, so not more correct in total).
It thinks ":" IS the command.
torch% ; < ls
tags in context :completion::complete:ls::
argument-rest options (_arguments _ls)
tags in context :completion::complete:ls:argument-rest:
globbed-files (_files _arguments _ls)
(The context for the ":" command is not ideal either since ":" is the
field separator ...)
} PS
} If anyone can get
} for (a b) {<tab>
} to complete commands, that would be nice too :). (this never worked)
I presume you mean without the parens around "a b"? Otherwise it's not
valid syntax.
As PWS said, this is really a job for a state machine ... and not for a
hack this close to a release if it's something that hasn't ever worked.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author