Commit 7fa1d8c
Add slash command and agent mention autocomplete system
Implement intelligent autocomplete for slash commands and agent mentions:
- SuggestionMenu component displays up to 5 filtered suggestions
- Slash commands (/) trigger command palette with fuzzy matching
- Agent mentions (@) scan local .agents directory and suggest by display name
- Arrow keys, Tab/Shift+Tab navigate; Enter inserts selection
- MultilineInput accepts onKeyIntercept callback for menu key handling
- Parsing functions detect trigger contexts and track cursor position
- Filtering prioritizes prefix matches, then includes substring matches
🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>1 parent 15c5c31 commit 7fa1d8c
File tree
5 files changed
+806
-1
lines changed- cli/src
- components
- data
- utils
5 files changed
+806
-1
lines changed
0 commit comments