{"id":51292324,"url":"https://github.com/fedeya/opencode-paste-as-file","last_synced_at":"2026-06-30T11:30:49.688Z","repository":{"id":364457259,"uuid":"1245164796","full_name":"fedeya/opencode-paste-as-file","owner":"fedeya","description":"Paste large clipboard content into opencode as file references","archived":false,"fork":false,"pushed_at":"2026-05-21T01:50:37.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-13T05:23:56.723Z","etag":null,"topics":["clipboard","opencode","opencode-plugin","plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fedeya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-21T01:16:59.000Z","updated_at":"2026-05-23T17:52:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/fedeya/opencode-paste-as-file","commit_stats":null,"previous_names":["fedeya/opencode-paste-as-file"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/fedeya/opencode-paste-as-file","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedeya%2Fopencode-paste-as-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedeya%2Fopencode-paste-as-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedeya%2Fopencode-paste-as-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedeya%2Fopencode-paste-as-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fedeya","download_url":"https://codeload.github.com/fedeya/opencode-paste-as-file/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fedeya%2Fopencode-paste-as-file/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34965641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clipboard","opencode","opencode-plugin","plugin"],"created_at":"2026-06-30T11:30:48.721Z","updated_at":"2026-06-30T11:30:49.673Z","avatar_url":"https://github.com/fedeya.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opencode-paste-as-file\n\nPaste clipboard text into opencode as a file reference.\n\nThe plugin reads your clipboard, writes it to `.opencode/pasted/`, and appends an `@file` reference to the current prompt.\n\n## Install\n\nAdd the TUI plugin to your `tui.json`:\n\n```json\n{\n  \"$schema\": \"https://opencode.ai/tui.json\",\n  \"plugin\": [\n    [\n      \"opencode-paste-as-file\",\n      {\n        \"keybinds\": [\"\u003cleader\u003ev\"],\n        \"dir\": \".opencode/pasted\"\n      }\n    ]\n  ]\n}\n```\n\nRestart opencode after changing plugin config.\n\n## Usage\n\nRun `Paste as file` from the command palette, or use the configured keybinding.\n\nWith the default opencode leader key, `\u003cleader\u003ev` is:\n\n```text\nctrl+x v\n```\n\nThe inserted prompt text looks like:\n\n```text\n@.opencode/pasted/paste-2026-05-20T12-00-00-000Z.txt\n```\n\n## Options\n\n```ts\ntype Options = {\n  dir?: string\n  keybinds?: string[]\n}\n```\n\n- `dir`: directory where pasted files are written. Defaults to `.opencode/pasted`.\n- `keybinds`: TUI keybindings for the action. Defaults to `[\"\u003cleader\u003ev\"]`.\n\n## Clipboard Support\n\n- macOS: `pbpaste`\n- Windows: PowerShell `Get-Clipboard`\n- Linux: tries `wl-paste`, then `xclip`, then `xsel`\n\n## Git Ignore\n\nAdd this to your project `.gitignore`:\n\n```gitignore\n.opencode/pasted/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedeya%2Fopencode-paste-as-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedeya%2Fopencode-paste-as-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedeya%2Fopencode-paste-as-file/lists"}