Is your feature request related to a problem? Please describe.
Autosuggestion was the single thing I liked most about fish, so when I considered switching to zsh, I was glad to find there was an implementation. However, upon actually using it, I found it substantially less useful than fish's autosuggestion had been. After considering my experiences carefully, and looking into the implementations, I believe the primary reason is that fish's autosuggestion takes into account the current working directory, while zsh's does not.
However, if we're going to do this, we might as well make it extensible. Other forms of context may be useful for particular people. For example, I have a common pattern of terminals I always keep open and on the same virtual desktops, which I use for somewhat different purposes. If I could add some distinguishing factor to the shell environments on those terminals, such as a value in a shell variable, I could get autosuggestions specific to the tasks I normally do in those terminals. (Even with shared history)
Describe the solution you'd like
I'd like the context of commands, in particular the current working directory, but perhaps also other user configurable context, to be saved and used by zsh-autosuggestions to prefer more relevant history-based suggestions.
Is your feature request related to a problem? Please describe.
Autosuggestion was the single thing I liked most about fish, so when I considered switching to zsh, I was glad to find there was an implementation. However, upon actually using it, I found it substantially less useful than fish's autosuggestion had been. After considering my experiences carefully, and looking into the implementations, I believe the primary reason is that fish's autosuggestion takes into account the current working directory, while zsh's does not.
However, if we're going to do this, we might as well make it extensible. Other forms of context may be useful for particular people. For example, I have a common pattern of terminals I always keep open and on the same virtual desktops, which I use for somewhat different purposes. If I could add some distinguishing factor to the shell environments on those terminals, such as a value in a shell variable, I could get autosuggestions specific to the tasks I normally do in those terminals. (Even with shared history)
Describe the solution you'd like
I'd like the context of commands, in particular the current working directory, but perhaps also other user configurable context, to be saved and used by zsh-autosuggestions to prefer more relevant history-based suggestions.
Describe alternatives you've considered