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

Re: PATCH: Move _history_modifiers call to _parameter



On Thu, Sep 14, 2023 at 2:04 PM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> I created a mew function with [Mikael's] patch applied. Advice on changing from _pa…terrs to the new function, when at: $ ::<TAB>?

Actually you should be able to do this with zstyle without needing the
new function.

zstyle -e ':completion:*:complete:-command-:*:*' tag-order \
              'if [[ $words[CURRENT] = :* ]]; then \
              reply=("commands builtins functions suffix-aliases
reserved-words jobs aliases") \
              else
              reply=("commands builtins functions suffix-aliases
reserved-words jobs parameters aliases modifiers") \
             fi'

Rearrange the order as you see fit, I preserved the default.




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