Skip to content

Conversation

@rcdailey
Copy link

@rcdailey rcdailey commented Jul 6, 2025

Summary

This enhancement adds automatic @ prefix to pasted image paths, enabling Claude Code's automatic file import feature.

Changes

  • Modified extension.js line 162 to prepend @ symbol to file paths
  • When images are pasted, paths like /mnt/c/tmp/foo.png become @/mnt/c/tmp/foo.png
  • Claude Code automatically reads files when paths start with @

Benefits

  • Seamless integration with Claude Code's import syntax
  • Maintains all existing functionality
  • Aligns with the extension's stated purpose of supporting "Claude Code conversations"
  • No breaking changes - purely additive enhancement

Test Plan

  • Verified extension still pastes image paths correctly
  • Confirmed @ prefix is added to all pasted paths
  • Tested with both clipboard screenshots and copied image files
  • Verified WSL path conversion still works with @ prefix

This change enhances the extension's integration with Claude Code by
automatically prepending the @ symbol to pasted image paths. Claude
Code recognizes paths starting with @ as file imports and will
automatically read their contents when messages are submitted.

- Modified extension.js line 162 to prepend @ to file paths
- Maintains all existing functionality while adding Claude Code integration
- Aligns with the extension's stated purpose of supporting Claude Code conversations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant