diff --git a/README.md b/README.md index 10a1fd7..18befdf 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Add the plugin to your `opencode.json`: ``` The following command files are automatically copied to -`~/.config/opencode/command/` when the plugin initializes: +`~/.config/opencode/commands/` when the plugin initializes: - `mode-performance.md` - `mode-economy.md` @@ -135,7 +135,7 @@ To add a custom preset (e.g., "premium"): } ``` -2. Create a command file at `~/.config/opencode/command/mode-premium.md`: +2. Create a command file at `~/.config/opencode/commands/mode-premium.md`: ```md --- diff --git a/src/config/command-installer.ts b/src/config/command-installer.ts index ceb9776..e917d7f 100644 --- a/src/config/command-installer.ts +++ b/src/config/command-installer.ts @@ -18,11 +18,11 @@ import { fileURLToPath } from 'node:url' * Target directory for OpenCode command files. * * This is the standard location where OpenCode looks for slash command - * markdown files: `~/.config/opencode/command/` + * markdown files: `~/.config/opencode/commands/` * * @constant */ -const COMMANDS_DEST = join(homedir(), '.config', 'opencode', 'command') +const COMMANDS_DEST = join(homedir(), '.config', 'opencode', 'commands') /** * Finds the commands source directory. diff --git a/src/index.ts b/src/index.ts index 7cab9ae..3249a1e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -41,7 +41,7 @@ const modeSwitcherPlugin: Plugin = async ({ client }) => { // Initialize on startup with error handling try { await modeManager.initialize() - // Copy slash command files to ~/.config/opencode/command/ + // Copy slash command files to ~/.config/opencode/commands/ copyCommandFiles() } catch (error) { // Log error but don't block opencode startup