{"id":29129750,"url":"https://github.com/louis-thevenet/open-editor","last_synced_at":"2025-06-30T03:37:50.881Z","repository":{"id":301033560,"uuid":"1007517237","full_name":"louis-thevenet/open-editor","owner":"louis-thevenet","description":"Open files or strings in default editor","archived":false,"fork":false,"pushed_at":"2025-06-24T20:27:07.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-24T20:51:20.808Z","etag":null,"topics":["edit","editor","open-editor","rust-edit"],"latest_commit_sha":null,"homepage":"https://docs.rs/open-editor/0.1.0/open_editor/","language":"Rust","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/louis-thevenet.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}},"created_at":"2025-06-24T05:59:42.000Z","updated_at":"2025-06-24T20:27:10.000Z","dependencies_parsed_at":"2025-06-24T20:51:23.563Z","dependency_job_id":"12bfd399-4aba-4746-8bd4-403f3328d2ce","html_url":"https://github.com/louis-thevenet/open-editor","commit_stats":null,"previous_names":["louis-thevenet/open-editor"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/louis-thevenet/open-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis-thevenet%2Fopen-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis-thevenet%2Fopen-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis-thevenet%2Fopen-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis-thevenet%2Fopen-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/louis-thevenet","download_url":"https://codeload.github.com/louis-thevenet/open-editor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/louis-thevenet%2Fopen-editor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262705851,"owners_count":23351318,"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","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":["edit","editor","open-editor","rust-edit"],"created_at":"2025-06-30T03:37:48.834Z","updated_at":"2025-06-30T03:37:50.858Z","avatar_url":"https://github.com/louis-thevenet.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![crates.io](https://img.shields.io/crates/v/open-editor.svg)](https://crates.io/crates/open-editor) [![docs.rs](https://docs.rs/open-editor/badge.svg)](https://docs.rs/open-editor/) ![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/louis-thevenet/open-editor/ci.yml)\n\n# `open-editor`\n\n## About\n\n`open-editor` allows you to open the system default editor to edit files or simply get the result as a String.\n\nIt supports calling the editor with specific line and column numbers.\n\n## Quick Start\n\nSee the examples for more details.\n\n### Writing in a file\n\n```rust\nuse open_editor::editor_call_builder::EditorCallBuilder;\n\nlet filename =  \"./file.txt\";\n\nEditorCallBuilder::new(filename)?\n    .at_line(5)\n    .at_column(42)\n    .call_editor()?;\n```\n\n### Getting the result as a String\n\n```rust\nuse open_editor::open_editor;\n\nlet content = open_editor()?;\nassert!(!content.is_empty(), \"Editor returned empty content\");\n```\n\n### Editing Strings\n\n```rust\nlet template = \"Hello, {name}!\\nWelcome to {place}.\";\nlet filled_template = edit_in_editor(template)?;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouis-thevenet%2Fopen-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flouis-thevenet%2Fopen-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flouis-thevenet%2Fopen-editor/lists"}