F-Sy-H icon indicating copy to clipboard operation
F-Sy-H copied to clipboard

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

Open Thearas opened this issue 2 years ago • 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

Thearas avatar Feb 21 '23 12:02 Thearas

Hi @Thearas,

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

ss-o avatar Feb 22 '23 03:02 ss-o

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

Thearas avatar Feb 22 '23 04:02 Thearas

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.

ss-o avatar Feb 22 '23 05:02 ss-o