Closed HanabishiRecca closed 1 year ago
Kinda achieved it by using zsh builtin function, like:
builtin fc -R "${ZDOTDIR:-${HOME}}/.favcmds"
Then in .favcmds
file add the favourite commands.
Autosuggest config:
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
Is your feature request related to a problem? Please describe.
With lots of commands in the system you should type more symbols to narrow the autocompletion results. Sometimes suggestion can't help at all.
Describe the solution you'd like
Perfect: rank most used commands automatically and suggest em in the first place. OK: add an option, where you can list your preferred commands.
Describe alternatives you've considered
history
mode can work this way, but also pollutes with a junk quickly.Additional context
I think it may be good to get your favourite commands in the first place straight from the first symbol typed. For example, I always want to see
sudo
immediately after typings
,pacman
after typingp
,flatpak
after typingf
etc. Because there are so many similar commands, you end up typing almost the whole command before actually get the right suggestion.