diff options
| author | Seth Troisi <[email protected]> | 2025-05-01 00:52:01 +0000 |
|---|---|---|
| committer | Seth Troisi <[email protected]> | 2025-05-02 20:58:53 +0000 |
| commit | cc838fad44057a42561215fe3daed2834e6e0442 (patch) | |
| tree | 584251fd75d2d039d3e811fdab3c9d69a2ab0e0f /packages/cli/src/ui/App.tsx | |
| parent | f237082c37a10db1bf9d7daddf039bf4e002ec61 (diff) | |
Add autocomplete for slash commands
Diffstat (limited to 'packages/cli/src/ui/App.tsx')
| -rw-r--r-- | packages/cli/src/ui/App.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/cli/src/ui/App.tsx b/packages/cli/src/ui/App.tsx index 5ddf13db..194a18cf 100644 --- a/packages/cli/src/ui/App.tsx +++ b/packages/cli/src/ui/App.tsx @@ -26,7 +26,7 @@ import { ConsoleOutput } from './components/ConsolePatcher.js'; import { HistoryItemDisplay } from './components/HistoryItemDisplay.js'; import { useCompletion } from './hooks/useCompletion.js'; import { SuggestionsDisplay } from './components/SuggestionsDisplay.js'; -import { isAtCommand } from './utils/commandUtils.js'; +import { isAtCommand, isSlashCommand } from './utils/commandUtils.js'; interface AppProps { config: Config; @@ -96,7 +96,8 @@ export const App = ({ config, settings, cliVersion }: AppProps) => { const completion = useCompletion( query, config.getTargetDir(), - isInputActive && isAtCommand(query), + isInputActive && (isAtCommand(query) || isSlashCommand(query)), + slashCommands, ); // --- Render Logic --- |
