File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
packages/cli/src/ui/components Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff 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 ( / i m a g e - ( \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
You can’t perform that action at this time.
0 commit comments