diff options
| author | Sandy Tao <[email protected]> | 2025-08-04 13:35:26 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-04 20:35:26 +0000 |
| commit | 8da6d23688646dde2011fc3577faea1093077a3e (patch) | |
| tree | c37ebbd0c96bdf146a8dd9b35a4c46386d7cf09e /packages/cli/src/ui/components/InputPrompt.tsx | |
| parent | 37b83e05a71690d4d8f72f6bddb63435c31a5a01 (diff) | |
refactor(core): Rename useSlashCompletion to useCommandCompletion (#5532)
Diffstat (limited to 'packages/cli/src/ui/components/InputPrompt.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/InputPrompt.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx index db4eec1b..b405b684 100644 --- a/packages/cli/src/ui/components/InputPrompt.tsx +++ b/packages/cli/src/ui/components/InputPrompt.tsx @@ -15,7 +15,7 @@ import chalk from 'chalk'; import stringWidth from 'string-width'; import { useShellHistory } from '../hooks/useShellHistory.js'; import { useReverseSearchCompletion } from '../hooks/useReverseSearchCompletion.js'; -import { useSlashCompletion } from '../hooks/useSlashCompletion.js'; +import { useCommandCompletion } from '../hooks/useCommandCompletion.js'; import { useKeypress, Key } from '../hooks/useKeypress.js'; import { CommandContext, SlashCommand } from '../commands/types.js'; import { Config } from '@google/gemini-cli-core'; @@ -78,7 +78,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({ const shellHistory = useShellHistory(config.getProjectRoot()); const historyData = shellHistory.history; - const completion = useSlashCompletion( + const completion = useCommandCompletion( buffer, dirs, config.getTargetDir(), |
