{"id":19390170,"url":"https://github.com/pot-app/selection","last_synced_at":"2025-09-23T18:35:29.782Z","repository":{"id":172481867,"uuid":"649346304","full_name":"pot-app/Selection","owner":"pot-app","description":"Get the text selected by the cursor","archived":false,"fork":false,"pushed_at":"2024-05-05T04:13:12.000Z","size":34,"stargazers_count":61,"open_issues_count":1,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-12T06:49:02.861Z","etag":null,"topics":["gui","rust","selection"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/selection","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pot-app.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}},"created_at":"2023-06-04T15:07:12.000Z","updated_at":"2025-08-28T07:54:18.000Z","dependencies_parsed_at":"2023-11-10T16:28:03.355Z","dependency_job_id":"f8e2de73-2454-4b94-951d-ab4f83a97482","html_url":"https://github.com/pot-app/Selection","commit_stats":null,"previous_names":["pot-app/selection"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pot-app/Selection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pot-app%2FSelection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pot-app%2FSelection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pot-app%2FSelection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pot-app%2FSelection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pot-app","download_url":"https://codeload.github.com/pot-app/Selection/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pot-app%2FSelection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276630010,"owners_count":25676631,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-23T02:00:09.130Z","response_time":73,"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":["gui","rust","selection"],"created_at":"2024-11-10T10:19:16.488Z","updated_at":"2025-09-23T18:35:29.737Z","avatar_url":"https://github.com/pot-app.png","language":"Rust","readme":"# Selection\n\nGet the text selected by the cursor\n\n## Example\n\n```toml\nselection = \"1.2.0\"\n```\n\n```rust\nuse selection::get_text;\n\nfn main() {\n    // Return the selected text on success\n    // Otherwise return the empty string\n    let text = get_text();\n    println!(\"{}\", text);\n}\n```\n\n## Support Platform\n\n- [x] Windows\n- [x] MacOS\n- [x] Linux\n  - [x] X11\n  - [x] Wayland\n\n## Implementation details\n\n### Windows\n\n- Automation API\n- Clipboard\n\n### MacOS\n\n- Accessibility API\n- Clipboard\n\n### Linux\n\n- Primary Clipboard\n  - X11: `x11-clipboard`\n  - Wayland: `wl-clipboard`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpot-app%2Fselection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpot-app%2Fselection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpot-app%2Fselection/lists"}