summaryrefslogtreecommitdiff
path: root/packages/cli/src/ui/hooks/useCompletion.ts
AgeCommit message (Collapse)Author
2025-08-03feat: Add reverse search capability for shell commands (#4793)Ayesha Shafique
2025-08-01feat(core): Use completionStart/End for slash command auto-completion (#5374)Sandy Tao
2025-07-31feat(cli): Improve @ autocompletion for mid-sentence edits (#5321)Sandy Tao
2025-07-30feat: Multi-Directory Workspace Support (part1: add `--include-directories` ↵Yuki Okita
option) (#4605) Co-authored-by: Allen Hutchison <[email protected]>
2025-07-25Load and use MCP server prompts as slash commands in the CLI (#4828)christine betts
Co-authored-by: harold <[email protected]> Co-authored-by: N. Taylor Mullen <[email protected]>
2025-07-25Make useCompletion.test.ts windows compatible (#4766)Tommaso Sciortino
2025-07-25[Refactor] Centralizes autocompletion logic within useCompletion (#4740)Sandy Tao
2025-07-20prefactor(commands): Command Service Prefactor for Extensible Commands (#4511)Abhi
2025-07-20feat: full implementation for .geminiignore in settings and respective tool ↵Pyush Sinha
calls (#3727)
2025-07-18feat(cli): allow executing commands on perfect match (#4397)Harold Mciver
Co-authored-by: Jenna Inouye <[email protected]>
2025-07-15Improve altName completion behavior in slash commands (#4227)Lee Won Jun
Co-authored-by: Jacob Richman <[email protected]>
2025-07-14Make @ command sort file without extension name (#4158)Sandy Tao
2025-07-07feature(commands) - Refactor Slash Command + Vision For the Future (#3175)Abhi
2025-07-07@file don't respect config respectGitIgnore=false (#3382) (#3387)zfflxx
Co-authored-by: Ryan Fang <[email protected]>
2025-07-01Improve slashCommand autoCompletion logic (#2776)Seth Troisi
2025-06-25fix: prepublish changes to package names (#1420)Brandon Keiji
2025-06-22Add setting enableRecursiveFileSearch to control @-file completion (#1290)Billy Biggs
2025-06-18fix: regression in completion filtering (#1135)Anas H. Sulaiman
2025-06-15Support completion of checkpoint names in /resume (#1063)Billy Biggs
2025-06-14centralize file filtering in `FileDiscoveryService` (#1039)Anas H. Sulaiman
2025-06-12Ignore dot files on @-completion. (#978)DeWitt Clinton
2025-06-12Improve the performance of filename completion over large repositories. (#938)DeWitt Clinton
2025-06-07refactor: rename gemini-code to gemini-cli (#822)cperry-goog
2025-06-04Ignore folders files (#651)Keith Ballinger
# Add .gitignore-Aware File Filtering to gemini-cli This pull request introduces .gitignore-based file filtering to the gemini-cli, ensuring that git-ignored files are automatically excluded from file-related operations and suggestions throughout the CLI. The update enhances usability, reduces noise from build artifacts and dependencies, and provides new configuration options for fine-tuning file discovery. Key Improvements .gitignore File Filtering All @ (at) commands, file completions, and core discovery tools now honor .gitignore patterns by default. Git-ignored files (such as node_modules/, dist/, .env, and .git) are excluded from results unless explicitly overridden. The behavior can be customized via a new fileFiltering section in settings.json, including options for: Turning .gitignore respect on/off. Adding custom ignore patterns. Allowing or excluding build artifacts. Configuration & Documentation Updates settings.json schema extended with fileFiltering options. Documentation updated to explain new filtering controls and usage patterns. Testing New and updated integration/unit tests for file filtering logic, configuration merging, and edge cases. Test coverage ensures .gitignore filtering works as intended across different workflows. Internal Refactoring Core file discovery logic refactored for maintainability and extensibility. Underlying tools (ls, glob, read-many-files) now support git-aware filtering out of the box. Co-authored-by: N. Taylor Mullen <[email protected]>
2025-05-31Fix: Make file path case-insensitive in @-command (#659)Scott Densmore
2025-05-30Rename server->core (#638)Tommaso Sciortino
2025-05-21Add globbing support to @-command file suggestions and resolution. (#462)DeWitt Clinton
Implements recursive glob-based file search for both suggestions and execution of the `@` command. - When typing `@filename`, suggestions will now include files matching `filename` in nested directories. - Suggestions are sorted by path depth (shallowest first), then directories before files, then alphabetically. - The maximum recursion depth for suggestions is set to 10. - When executing an `@filename` command, if the file is not found directly, a recursive search (using the glob tool) is performed to locate the file. This addresses the first request in issue #461 by allowing users to quickly reference deeply nested files without typing the full path. Also addresses b/416292478.
2025-05-17Introduce a small easter egg. Woof. (#412)DeWitt Clinton
Also changes auto-completion and /help to skip over slash commands that don't contain a description to avoid spoiling the surprise.
2025-05-16fix: Ensure filename is available for diff rendering in write-fileTaylor Mullen
This commit resolves a bug where the `write-file` operation could fail to render content due to a missing filename. The fix involves: - Ensuring `fileName` is consistently passed to `DiffRenderer.tsx` through `ToolConfirmationMessage.tsx`, `ToolMessage.tsx`, and `useGeminiStream.ts`. - Modifying `edit.ts` and `write-file.ts` to include `fileName` in the `FileDiff` object. - Expanding the `FileDiff` interface in `tools.ts` to include `fileName`. Additionally, this commit enhances the diff rendering by: - Adding syntax highlighting based on file extension in `DiffRenderer.tsx`. - Adding more language mappings to `getLanguageFromExtension` in `DiffRenderer.tsx`. - Added lots of tests for all the above. Fixes https://b.corp.google.com/issues/418125982
2025-05-14Improvements to suggestions & slash commands (#344)Miguel Solorio
Co-authored-by: N. Taylor Mullen <[email protected]>
2025-05-09fix for b/414940078 (#306)Allen Hutchison
2025-05-06Refactor: Memoize hook callbacks, update dependencies, and fix lint errors ↵Allen Hutchison
(#268) Co-authored-by: N. Taylor Mullen <[email protected]>
2025-05-05slash command altnames and support for ?Seth Troisi
2025-05-02Add autocomplete for slash commandsSeth Troisi
2025-05-01Support escaping spaces in file paths. (#241)Jacob Richman
2025-04-30Add @ command suggestions in the UI. (#219)Allen Hutchison
2025-04-29First four independent files for @ commands. (#205)Allen Hutchison