mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2025-12-08 15:32:31 +01:00
Merge 0d07421b42 into f8907cf32b
This commit is contained in:
commit
6f2c0b8d4b
4 changed files with 74 additions and 20 deletions
|
|
@ -57,6 +57,10 @@ For more info, read the Character Highlighting section of the zsh manual: `man z
|
|||
|
||||
For example, setting `ZSH_AUTOSUGGEST_STRATEGY=(history completion)` will first try to find a suggestion from your history, but, if it can't find a match, will find a suggestion from the completion engine.
|
||||
|
||||
#### When `ZSH_AUTOSUGGEST_STRATEGY` contains `match_prev_cmd`:
|
||||
|
||||
- `ZSH_AUTOSUGGEST_MATCH_PREV_MAX_CMDS`: The previous commands are only looked at of a number of the most recent commands that match the current prefix. This sets the maximum number of commands to consider. Set it to -1 to always use all matches.
|
||||
- `ZSH_AUTOSUGGEST_MATCH_NUM_PREV_CMDS`: Number of previous commands that should match. Setting this to a value below 1 results in the strategy `history` to be simulated (with extra steps).
|
||||
|
||||
### Widget Mapping
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue