z-shell/F-Sy-H

[bug]: `-fast-highlight-xxx` appear in builtin command completion

Thearas opened this issue · 3 comments

Environment

OSTYPE=darwin21.3.0 CPUTYPE=arm64 / MACHINE_TYPE=arm ZSH_VERSION=5.9

Expected behavior

Press <tab> and show nothing:

time -<tab>

Current behavior

>  time -
-                                      -fast-highlight-fill-option-variables  -fast-highlight-process
-fast-highlight-check-path             -fast-highlight-init                   -fast-highlight-string
-fast-highlight-check-path-handler     -fast-highlight-main-type              -fast-highlight-string-process
-fast-highlight-dollar-string          -fast-highlight-math-string            -fsh_sy_h_shappend

Steps to reproduce

time -<tab>

Code snippet

I use oh-my-zsh:

plugins=(... F-Sy-H)

Aditional information

None.

Self-service

  • I'd be willing to address this documentation request myself.

Have you read the Contributing Guidelines?

Are you familiar with Contributor Covenant Code of Conduct?

Contact Details

No response

ss-o commented

Hi @Thearas,

Only -fast* appears and nothing else like: time .TAB or time _TAB ? 💫

Hi @Thearas,

Only -fast* appears and nothing else like: time .TAB or time _TAB ? 💫

time .<TAB>:

image

time _<TAB>, but I think this is normal, some zsh functions like _precommand:
image

ss-o commented

The same applies to F-Sy-H functions, the prefixes different than _ are chosen to describe/filter functions using #standard-function-name-space-prefixes.

However, it might be improved or contain accidentally exposed functions, both cases require investigation.

Is the - prefix causing any unwanted behavior?

Note: it is also possible to adjust the completion system, the suggested command (time) completion allows to time functions, which is why it appears in the completion.