zsh-autosuggestions/src
Frad LEE d89bf4ec0d feat(ai): add empty buffer context suggestions
Enable AI suggestions on empty prompts with enhanced
environmental context.

- Update AI_MIN_INPUT default from 3 to 0
- Add ALLOW_EMPTY_BUFFER opt-in config variable
- Remove empty-buffer guards in modify, suggest, enable
- Add zle-line-init hook for prompt-time suggestions
- Enhance history gathering with PWD-aware priority
- Add env context for dir listing, git branch, status
- Implement dual prompts: predict vs complete modes
- Add prompt artifact stripping for $ and > prefixes
- Update README with empty buffer configuration
- Add tests for empty buffer and artifact stripping

Empty buffer suggestions require zsh 5.3+ and work best with
AI strategy, leveraging directory context, git state, and
command history to predict likely next actions.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-05 10:58:19 +08:00
..
strategies feat(ai): add empty buffer context suggestions 2026-02-05 10:58:19 +08:00
async.zsh Merge pull request #630 from codicodi/reset-fd 2023-09-07 09:39:17 -06:00
bind.zsh Be more specific about the built-in widgets we want to avoid wrapping 2020-01-25 08:01:37 -07:00
config.zsh feat(ai): add empty buffer context suggestions 2026-02-05 10:58:19 +08:00
fetch.zsh Implement completion suggestion strategy (#111) 2019-04-11 09:53:55 -06:00
highlight.zsh Fix conditionals to use [[ and (( rather than [ 2017-11-27 08:31:41 -07:00
start.zsh feat(ai): add empty buffer context suggestions 2026-02-05 10:58:19 +08:00
util.zsh Revert "Simplify escaping of pattern and fix match_prev_cmd strategy" 2017-12-06 08:08:53 -07:00
widgets.zsh feat(ai): add empty buffer context suggestions 2026-02-05 10:58:19 +08:00