zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.95k stars 1.86k forks source link

Is this zsh-autosuggestions plugin support detecting pwd folders? #561

Closed StageGuard closed 4 years ago

StageGuard commented 4 years ago

Is this zsh-autosuggestions plugin support detecting pwd folders?

In fish, when I type first few characters of the folder name, fish shell will show the complete folder name. But it seems that the plugin doesn't support this feature.

Shall I search for configurations or it actually doesn't support this feature?

Screenshots

This is fish shell fish shell This is zsh with 
zsh-autosuggestions plugin zsh with zsh-autosuggestions plugin

ericfreese commented 4 years ago

The default behavior is to only make suggestions based on your shell history, so with no config modifications you should get the suggestion you want after you’ve run it once.

You can also enable the completion suggestion strategy (see the readme) to get suggestions not based on history but based on tab completion.

Also somewhat related, there is an open ticket to make history suggestions (the default) behave more like Fish here: #426