diff --git a/extension.js b/extension.js index a12e8f1..892d58d 100644 --- a/extension.js +++ b/extension.js @@ -155,11 +155,16 @@ function activate(context) { // Step 3c: Move to custom directory if user has configured one let finalPath = await handleCustomSaveDirectory(convertedTempPath); - // Step 3d: Give user opportunity to rename the file - finalPath = await promptForFileRename(finalPath); + // Step 3d: Give user opportunity to rename the file (if not skipped) + const config = vscode.workspace.getConfiguration(CONFIG_SECTION); + const skipRenamePrompt = config.get('skipRenamePrompt', false); - // Step 3e: Insert the file path into the active terminal - activeTerminal.sendText(finalPath, false); + if (!skipRenamePrompt) { + finalPath = await promptForFileRename(finalPath); + } + + // Step 3e: Insert the file path into the active terminal with @ prefix for Claude Code + activeTerminal.sendText(`@${finalPath}`, false); // Step 3f: Show success notification with file details showSuccessMessage(finalPath); diff --git a/package.json b/package.json index 608e5b5..86e5c11 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,11 @@ "type": "string", "default": "", "description": "Custom directory to save pasted images. Leave empty to use system temp directory. Supports ~ for home directory. Relative paths are resolved relative to workspace root." + }, + "claudeImagePaste.skipRenamePrompt": { + "type": "boolean", + "default": false, + "description": "Skip the file rename prompt and automatically use the default filename when pasting images." } } }