Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
}
Expand Down