{"id":16986930,"url":"https://github.com/amrdeveloper/lineeditor","last_synced_at":"2025-04-06T22:08:10.566Z","repository":{"id":213567566,"uuid":"734464824","full_name":"AmrDeveloper/Lineeditor","owner":"AmrDeveloper","description":"A new cross platform general prupose Line editor implementation designed with the goal to be flexible and customizable","archived":false,"fork":false,"pushed_at":"2024-10-30T21:33:10.000Z","size":816,"stargazers_count":44,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T22:28:31.848Z","etag":null,"topics":["code-editor","hinter","keybindings","line-editor","prompt","rust","syntax-highlighting","visual-selections"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/lineeditor","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/AmrDeveloper.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":"amrdeveloper"}},"created_at":"2023-12-21T18:46:47.000Z","updated_at":"2024-12-04T01:37:12.000Z","dependencies_parsed_at":"2023-12-31T20:31:17.226Z","dependency_job_id":"cc12eda9-9536-4ef9-8c58-55b3b5a227fa","html_url":"https://github.com/AmrDeveloper/Lineeditor","commit_stats":null,"previous_names":["amrdeveloper/lineeditor"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FLineeditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FLineeditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FLineeditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FLineeditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmrDeveloper","download_url":"https://codeload.github.com/AmrDeveloper/Lineeditor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557767,"owners_count":20958047,"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":["code-editor","hinter","keybindings","line-editor","prompt","rust","syntax-highlighting","visual-selections"],"created_at":"2024-10-14T02:47:23.723Z","updated_at":"2025-04-06T22:08:10.536Z","avatar_url":"https://github.com/AmrDeveloper.png","language":"Rust","readme":"\u003ch1 align=\"center\"\u003eLineEditor\u003c/h1\u003e\u003c/br\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Crates.io\" src=\"https://img.shields.io/crates/v/lineeditor?style=flat-square\"\u003e\n  \u003cimg alt=\"Deps\" src=\"https://deps.rs/repo/github/amrdeveloper/lineeditor/status.svg\"\u003e\n  \u003cimg alt=\"GitHub release\" src=\"https://img.shields.io/github/v/release/amrdeveloper/Lineeditor\"\u003e\n  \u003cimg alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/amrdeveloper/Lineeditor\"\u003e\n  \u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/amrdeveloper/lineeditor\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\nA new cross platform Line editor implementation inspired by reedline, rustyline and other cool line editors, designed with the goal to provides the core components that allows you to build your custom line editor with as mush as customization options.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"media/line_editor_demo.gif\" alt=\"animated\" width=\"100%\"/\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"media/auto_complete_demo.gif\" alt=\"animated\" width=\"100%\"/\u003e\n\u003c/p\u003e\n\n\u003e [!IMPORTANT]\n\u003e LineEditor API is still experimental and may be changed from version to version until finishing the design and implementations of the basics features\n\n### Basic example\n\n```rs\nlet prompt = StringPrompt::new(\"prompt\u003e \".to_string());\nlet line_editor = LineEditor::new(Box::new(prompt));\nmatch line_editor.read_line() {\n    Ok(LineEditorResult::Success(buffer)) =\u003e {\n        \n    }\n    _ =\u003e {}\n}\n```\n\n### Customization examples\n- [Text Prompt](/examples/text_prompt.rs)\n- [Custom Prompt](/examples/custom_prompt.rs)\n- [Cursor style](/examples/cursor_style.rs)\n- [Input Filter](/examples/input_filter.rs)\n- [Key bindings](/examples/key_bindings.rs)\n- [DropDown AutoComplete](/examples/drop_down_auto_complete.rs)\n- [Keywords Highlighter](/examples/keyword_highlighter.rs)\n- [Matching Brackets Highlighter](/examples/matching_brackets_highlighter.rs)\n- [Hex Color Highlighter](/examples/hex_color_highlighter.rs)\n- [Keywords Hinter](/examples/keyword_hinter.rs)\n- [Auto Pair complete](/examples/auto_pair.rs)\n- [Visual Selection](/examples/visual_selection.rs)\n- [Auto Surround Selection](/examples/surround_selection.rs)\n\n### License\n```\nMIT License\n\nCopyright (c) 2023 Amr Hesham\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```","funding_links":["https://github.com/sponsors/amrdeveloper"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famrdeveloper%2Flineeditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famrdeveloper%2Flineeditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famrdeveloper%2Flineeditor/lists"}