zsh-autosuggestions/spec
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
..
integrations Fix deleting last character in vi mode (#302) 2019-06-22 16:34:42 -06:00
options Enable async mode by default in newer versions of zsh 2020-01-26 21:18:49 -07:00
strategies feat(ai): add empty buffer context suggestions 2026-02-05 10:58:19 +08:00
widgets Enabling suggestions should not fetch a suggestion if buffer is empty 2017-03-05 12:53:13 -05:00
async_spec.rb Don't fetch suggestions after copy-earlier-word 2019-06-14 13:19:07 -06:00
kill_ring_spec.rb Don't break kill ring rotation 2018-05-15 12:54:09 -06:00
line_init_spec.rb Remove hard-coded ignore of zle-* widgets and add to default config 2019-06-14 16:38:28 -06:00
multi_line_spec.rb Rewrite with_history test helper to be more robust 2020-05-06 07:31:37 -06:00
spec_helper.rb Rewrite with_history test helper to be more robust 2020-05-06 07:31:37 -06:00
terminal_session.rb Revert async process substitution & completion strategy 2018-12-16 20:49:06 -07:00