feat: add @-triggered file path autocomplete to TUI input panel - #798
Merged
Conversation
- Add fast-glob dependency for file search - Create autocomplete utility module with debounced glob search - Extend InputPanel with @ trigger detection and keyboard interception - Create AutoCompleteDropdown component with keyboard navigation - Lift autocomplete state to App component - Integrate dropdown rendering between InputPanel and StatusBar - Implement path selection with cyan/green coloring - Add unit tests for autocomplete and dropdown components OpenSpec change: at-filepath-autocomplete-tui
- Add autocomplete.js module for file path matching - Update inputPanel.js with autocomplete mode and keyboard navigation - Update tasks.md with completion status - Add fast-glob dependency
- Add autocomplete.test.js with tests for searchFiles and InputPanel rendering - Fix pre-existing broken InputPanel tests in tui.test.js that were calling InputPanel() directly without render() from ink, causing React hooks errors
- Create AutoCompleteDropdown component with Ink color system - Wire keyboard handling (up/down/Enter/Esc) in InputPanel - Add debounced search (150ms) via useEffect with searchTimerRef - Lift autocomplete state to App component - Render dropdown between InputPanel and StatusBar - Fix pre-existing broken InputPanel tests in tui.test.js - Add autocomplete.test.js with 21 tests for searchFiles and InputPanel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Add @-triggered file path autocomplete to the TUI input panel, allowing users to type @ followed by a filename fragment and select from a ranked list of matching files via glob search, with the selected path rendered in cyan/green.
Type of Change
Testing
Coverage
Checklist
OpenSpec Change
Key Files Changed