GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — [FEATURE]: Drag-and-drop external files should offer Insert Path mode — reference files by path instead of inlining content · Issue #31939 · anomalyco/opencode Closed as not planned Closed as not planned Copy link DescriptionFeature hasn't been suggested before.
I'm aware of related issues and PRs:
This request is different from all of the above. The existing issues treat path preservation as a bug (it was lost accidentally). This request treats it as a first-class feature: for non-image files especially, inserting the path is often more useful than attaching the content, because the agent can read the file on demand via its tools. ProblemWhen I drag a file from my desktop (Finder / Explorer / Nautilus) into the OpenCode prompt, the current behavior depends on the file type:
In all cases, the file path — which is the most compact and useful reference — is either lost or never inserted in the first place. This is a workflow problem, not just a bug. OpenCode agents have Example scenario: I'm working with a 500-line config file on my desktop. I drag it into OpenCode. Instead of pasting the path
What I actually want is the path, so I can say "check this config file" and the agent reads it with its tools. Proposed SolutionAdd a "path reference" mode to drag-and-drop, toggled by a modifier key:
In "path mode", the dropped file would be inserted as a path reference (similar to
The path should be inserted in a format the agent understands, e.g.:
Alternative Considered: Always insert path alongside attachmentAn alternative approach: when a file is dropped, also insert a comment or metadata with the source path:
This preserves the path for reference even when the content is embedded. However, this still bloats context unnecessarily for large files. The modifier-key approach is cleaner because it gives the user control. Why this matters
Related Issues
Reacted by emagon, erixpo, suoliangao and silvano Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | |||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |