zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fish like suggestion for files/directory

kohnish opened this issue · comments

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

Commands that accepts a file or directory shouldn't be suggested when the argument is invalid

Describe the solution you'd like

Just like fish, only suggest the command the works.
For example, cd ~/.vim can be suggested from anywhere but not cd .vim if the .vim directory doesn't exist in the pwd.

I think the following is enough.

ZSH_AUTOSUGGEST_STRATEGY=(history completion)
ZSH_AUTOSUGGEST_HISTORY_IGNORE='(cd|ls|vim) *'