{"id":33926976,"url":"https://github.com/spenserblack/find-editor.rs","last_synced_at":"2026-01-13T22:56:45.417Z","repository":{"id":327666451,"uuid":"1109366647","full_name":"spenserblack/find-editor.rs","owner":"spenserblack","description":"Finds and opens an editor to edit a file. Useful if you want to make it easy for your users to edit config files.","archived":false,"fork":false,"pushed_at":"2025-12-05T01:14:56.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-08T08:43:10.554Z","etag":null,"topics":["cli","cross-platform","editor","notepad","open-editor","rust","vim"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spenserblack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2025-12-03T17:50:40.000Z","updated_at":"2025-12-05T01:13:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/spenserblack/find-editor.rs","commit_stats":null,"previous_names":["spenserblack/find-editor.rs"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/spenserblack/find-editor.rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Ffind-editor.rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Ffind-editor.rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Ffind-editor.rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Ffind-editor.rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spenserblack","download_url":"https://codeload.github.com/spenserblack/find-editor.rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spenserblack%2Ffind-editor.rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28287005,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T04:44:51.577Z","status":"ssl_error","status_checked_at":"2026-01-11T04:44:44.232Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","cross-platform","editor","notepad","open-editor","rust","vim"],"created_at":"2025-12-12T10:38:53.108Z","updated_at":"2026-01-11T05:02:28.312Z","avatar_url":"https://github.com/spenserblack.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# find-editor.rs\n\n[![Crates.io Version](https://img.shields.io/crates/v/find-editor)](https://crates.io/crates/find-editor)\n\nFinds and opens an editor to edit a file. Useful if you want to make it easy for your\nusers to edit config files.\n\n## Usage\n\nYou can find runnable examples in [`examples/`](./examples).\n\n```rust\nuse find_editor::Finder;\n\nlet finder = Finder::with_extra_environment_variables([\"MY_TOOL_EDITOR\"]);\n\n// Get an editor value\nlet editor = finder.editor_name();\nprintln!(\"The raw editor command is: {editor}\");\n\n// Parse the editor string and assert it's on $PATH\nlet (editor_command, editor_args) = finder.which_editor().unwrap();\nprintln!(\"The editor command is {editor_command:?} with the arguments {editor_args:?}\");\n\n// Open an editor on a file\nfinder.open_editor(\"config.toml\", true).unwrap();\n```\n\n### Optional features\n\n- `split`: Sometimes editors are not only a command name, but also a list of arguments\n  to pass to the command. `code --wait` is a common example. This feature provides\n  `split_editor_name`, which helps split an editor's text into the command and any\n  arguments.\n- `which`: This provides `which_editor`, which will split the editor (see feature\n  `split`), and then find the command on `$PATH`. This helps assert that the command\n  is callable. Also, Windows will run executables in the current directory when running\n  a command. `which_editor` helps prevent that possible security issue by *only* finding\n  executables on `$PATH`.\n- `open`: This provides the `open_editor` function. `which_editor` (see feature `which`)\n  and `split_editor_name` are both used to ensure that the editor is safely executed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspenserblack%2Ffind-editor.rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspenserblack%2Ffind-editor.rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspenserblack%2Ffind-editor.rs/lists"}