zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.81k stars 1.85k forks source link

Missing manual? ie. what is the key binding for autosuggest-clear? #610

Open Trikenstein opened 3 years ago

Trikenstein commented 3 years ago

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

I am looking for deleting an suggestion which is no longer relevant. For example I a tem file has been deleted. A suggestion on a command using that deleted file is no longer necessary.

The Configuration section pf the README mentions

You may want to override the default global config variables. Default values of these variables can be found here

However it is unclear how to activate this function. What is ZSH_AUTOSUGGEST_CLEAR_WIDGETS ? And how to run it?

Describe the solution you'd like

Add a user manual to show more details to the README.

Describe alternatives you've considered

Add documentation directly in the config.zsh to give more info on how to use the widgets.

Additional context

zsh --version
zsh 5.8 (x86_64-ubuntu-linux-gnu)
ericfreese commented 3 years ago

I am looking for deleting an suggestion which is no longer relevant. For example I a tem file has been deleted. A suggestion on a command using that deleted file is no longer necessary.

It sounds like you're looking to modify your zsh history. This plugin gives suggestions from history by default. You can modify your history by editing the file printed by echo $HISTFILE