zsh-autosuggestions icon indicating copy to clipboard operation
zsh-autosuggestions copied to clipboard

Disable `ZSH_AUTOSUGGEST_STRATEGY: completion` when on external HDD

Open NightMachinery opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Using the completion strategy makes the shell access the filesystem, which is very slow on external HDDs. It would good to have an option to disable this only on external volumes.

Describe the solution you'd like

An option that accepts a regexp to disable the completion strategy.

Describe alternatives you've considered

I can potentially do this myself with shell hooks, but I don't know if setting ZSH_AUTOSUGGEST_STRATEGY there will take effect.

NightMachinery avatar Dec 26 '22 19:12 NightMachinery

An option that accepts a regexp to disable the completion strategy.

Have you tried ZSH_AUTOSUGGEST_COMPLETION_IGNORE? https://github.com/zsh-users/zsh-autosuggestions#skipping-completion-suggestions-for-certain-cases

ericfreese avatar Feb 17 '23 22:02 ericfreese