Skip to content

Commit c55413f

Browse files
committed
Simplify clipboard image paste format to just @path
Changed from "[image #N] @path" to just "@path" for cleaner display. Users will see "@.gemini-clipboard/image-1.png" instead of the verbose format.
1 parent e543acc commit c55413f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

packages/cli/src/ui/components/InputPrompt.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -334,13 +334,8 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
334334
// Get relative path from current directory
335335
const relativePath = path.relative(config.getTargetDir(), imagePath);
336336

337-
// Extract image number from filename (e.g., "image-1.png" -> 1)
338-
const filename = path.basename(imagePath);
339-
const imageNumberMatch = filename.match(/image-(\d+)\./);
340-
const imageNumber = imageNumberMatch ? imageNumberMatch[1] : '?';
341-
342-
// Insert with friendly label: [image #1] @path
343-
const insertText = `[image #${imageNumber}] @${relativePath}`;
337+
// Insert @path reference
338+
const insertText = `@${relativePath}`;
344339
const currentText = buffer.text;
345340
const offset = buffer.getOffset();
346341

0 commit comments

Comments
 (0)