Add autosuggest-next and autosuggest-previous widgets; enhance async suggestion handling

This commit is contained in:
David Abutbul 2025-10-27 22:03:48 +02:00
commit bf5d77a65f
11 changed files with 629 additions and 87 deletions

View file

@ -109,9 +109,11 @@ This plugin provides a few widgets that you can use with `bindkey`:
2. `autosuggest-execute`: Accepts and executes the current suggestion.
3. `autosuggest-clear`: Clears the current suggestion.
4. `autosuggest-fetch`: Fetches a suggestion (works even when suggestions are disabled).
5. `autosuggest-disable`: Disables suggestions.
6. `autosuggest-enable`: Re-enables suggestions.
7. `autosuggest-toggle`: Toggles between enabled/disabled suggestions.
5. `autosuggest-next`: Cycles to the next available suggestion for the current buffer (wraps around).
6. `autosuggest-previous`: Cycles backward through the available suggestions (wraps around).
7. `autosuggest-disable`: Disables suggestions.
8. `autosuggest-enable`: Re-enables suggestions.
9. `autosuggest-toggle`: Toggles between enabled/disabled suggestions.
For example, this would bind <kbd>ctrl</kbd> + <kbd>space</kbd> to accept the current suggestion.