zsh-autosuggestions/spec/strategies
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
..
ai_spec.rb feat(ai): add empty buffer context suggestions 2026-02-05 10:58:19 +08:00
completion_spec.rb Allow skipping completion suggestions when buffer matches a pattern 2019-12-15 08:13:54 -07:00
history_spec.rb Allow configuring to ignore history entries matching a pattern 2019-07-02 21:46:17 -06:00
match_prev_cmd_spec.rb Allow configuring to ignore history entries matching a pattern 2019-07-02 21:46:17 -06:00
special_characters_helper.rb Fix flaky special char specs by not using with_history twice per test 2020-05-06 23:43:26 -06:00