fish like suggestion for files/directory
kohnish opened this issue · comments
kohnish commented
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.
kohnish commented
I think the following is enough.
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
ZSH_AUTOSUGGEST_HISTORY_IGNORE='(cd|ls|vim) *'