Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: _brace_parameter: add (-)
On 4/3/22, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> ---
> I looked at adding fc -s which is probably not that hard, but I noticed
> that fc -e<tab> and fc -e <tab> both don't complete commands which it
> looks like they should.
>
> (the completer has -e+ which means it only expects -ecommand but in
> practice -e - also works, as well as the manpage listing it with the
> space when talking about -s.
This was just triple pebkac, I had this in .zhsrc to avoid getting my
entire history listed back to me by the fc tab completion:
zstyle ':completion:*:*:(history|fc):*' tag-order options -
Changed it to this, and all is well:
zstyle ':completion:*:*:(history|fc):*' tag-order '! events' -
zstyle ':completion:*:*:(history|fc):*' prefix-needed false
(and the second part was me misremembering which is which between -e-
and -e+ in _arguments specifications).
And finally I also missed the fact that dana already added -s.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author