{"id":16724290,"url":"https://github.com/badboy/red","last_synced_at":"2025-04-10T10:22:07.230Z","repository":{"id":57658985,"uuid":"147947501","full_name":"badboy/red","owner":"badboy","description":"A Rust Editor ","archived":false,"fork":false,"pushed_at":"2018-09-13T13:28:11.000Z","size":73,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T06:22:43.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/badboy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-08T15:51:28.000Z","updated_at":"2021-11-17T16:20:33.000Z","dependencies_parsed_at":"2022-08-29T11:31:42.426Z","dependency_job_id":null,"html_url":"https://github.com/badboy/red","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fred","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fred/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fred/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badboy%2Fred/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badboy","download_url":"https://codeload.github.com/badboy/red/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199080,"owners_count":21063641,"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":[],"created_at":"2024-10-12T22:44:41.838Z","updated_at":"2025-04-10T10:22:07.206Z","avatar_url":"https://github.com/badboy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# red - A Rust Editor\n\n*red* is a line-oriented text editor, based on the popular [*ed* utility](http://pubs.opengroup.org/onlinepubs/009604599/utilities/ed.html).\nIt has two modes: *command mode* and *input mode*. In command mode the input characters are interpreted as commands, and in input mode they are interpreted as text.\n\n\nSome of the history of *ed* is discussed in the article [\"Where Vim Came From\"](https://twobithistory.org/2018/08/05/where-vim-came-from.html).\n\n\n## Installation\n\n```\ncargo install red-editor\n```\n\n## Usage\n\n```\n$ red file.txt\na\nHello World!\n.\nw\n13\n1,$p\nHello World!\nq\n```\n\n## Available commands\n\n* `q` - Quit the editor. If the buffer has changed since the last time it was written, a warning is saved and the editor is not quit. A successive `q` command will exit.\n* `Q` - Quit the editor without checking whether changes are unsaved.\n* `(.,.)p` - Print the addressed lines to standard output.\n* `(.,.)n` - Print the addressed lines to standard output, preceding each line by its line number and a \u0026lt;tab\u0026gt;.\n* `(.,.)d` - Delete the addressed lines from the buffer.\n* `(.,.)w [file]` - Write the addressed lines to the named file. The pathname is remembered for following writes.\n* `(.)a` - Append text after the addressed line. End text input with a single `.` in a line.\n* `(.)i` - Insert text before the addressed line. End text input with a single `.` in a line.\n* `h` - Write a short message to standard output that explains the reason for the most recent `?`.\n* `e [file]` - Delete the entire contents of the buffer and read the specified file into the buffer.\n* `(.,.)c` - Delete the addressed line, then accept input text to replace these lines.\n* `(.)r [file]` - Read contents of another file and insert into the buffer.\n* `(.,.)maddress` - Move the addressed lines after the line addressed by `address`.\n* `(.,.)s/RE/replacement/flags` - Search the addressed lines for an occurence of `RE` and substitute either the first or all matched strings with `replacement`. Supported flags: **g** to globally substitute instances of `RE`.\n\n## Not (yet) implemented\n\n* `/` - Addressing lines by search.\n* `(.,.)g/RE/command` - Global regular expression search.\n* `'x` - Marking lines with a name.\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n\n---\nThis file was written with *red*.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadboy%2Fred","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadboy%2Fred","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadboy%2Fred/lists"}