This plugin defines a strategy called abbr_history
for zsh-autosuggestions
that works similar to the standard history strategy but takes zsh-abbr
into
account.
Lets say you have the following abbr setup:
abbr dc="docker compose"
And you typed dc ps
which expanded to docker compose ps
. If you now type
type dc
again this will not match the docker compose ps
entry in your
history and thus the standard history strategy will not suggest anything.
With the strategy of this plugin instead it will suggest dc ps
and on
suggestion accept expand that to docker compose ps
for you.
At the moment zsh-autosuggestions only supports appending a suggestion. Since this plugin has to expand the abbreviation this is not enough. So at the moment this plugin only works with my fork of zsh-autosuggestions.