{"id":25171362,"url":"https://github.com/basemax/simpletextceditor","last_synced_at":"2025-07-24T19:06:51.973Z","repository":{"id":196450977,"uuid":"631451306","full_name":"BaseMax/SimpleTextCEditor","owner":"BaseMax","description":"This is a simple text editor implemented in C using the ncurses library. The editor allows users to create, edit, and save text files, as well as customize the editor's appearance and behavior using keyboard shortcuts.","archived":false,"fork":false,"pushed_at":"2023-09-25T05:52:49.000Z","size":26,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-04T21:45:52.874Z","etag":null,"topics":["c","c-editor","c-text-editor","code-editor","editor","editor-code","text-editor","text-editor-c","text-editor-cli"],"latest_commit_sha":null,"homepage":"","language":"C","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/BaseMax.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}},"created_at":"2023-04-23T04:03:04.000Z","updated_at":"2025-03-09T10:04:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"df1eee74-1943-497a-9947-bc703b0e917d","html_url":"https://github.com/BaseMax/SimpleTextCEditor","commit_stats":null,"previous_names":["basemax/simpletextceditor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FSimpleTextCEditor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FSimpleTextCEditor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FSimpleTextCEditor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaseMax%2FSimpleTextCEditor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaseMax","download_url":"https://codeload.github.com/BaseMax/SimpleTextCEditor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252573237,"owners_count":21770186,"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":["c","c-editor","c-text-editor","code-editor","editor","editor-code","text-editor","text-editor-c","text-editor-cli"],"created_at":"2025-02-09T09:19:58.939Z","updated_at":"2025-05-05T20:42:28.374Z","avatar_url":"https://github.com/BaseMax.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Text Editor in C\n\nThis is a simple text editor implemented in C using the ncurses library. The editor allows users to create, edit, and save text files, as well as customize the editor's appearance and behavior using keyboard shortcuts.\n\n## Implement a simple text editor in C.\n\n## Features\n\n- Create, edit, and save text files\n- Implement basic editing functions, such as inserting and deleting characters, moving the cursor, and undoing changes\n- Support multiple views (or windows) of the same file\n- Allow users to customize the editor's appearance and behavior (e.g., font size, line spacing, keyboard shortcuts)\n- Use proper error handling and memory management techniques\n\n## Requirements\n\n- C compiler (GCC or Clang recommended)\n- Make utility (to build the program)\n\n## Usage\n\nTo build the program, run the following command:\n\n```bash\nmake\n```\n\nTo run the program, use the following command:\n\n```bash\n./text_editor [filename]\n```\n\nReplace [filename] with the name of the file you want to edit. If the file does not exist, a new file will be created. For example, to create or edit a file called test.txt, use the following command:\n\n```bash\n./text_editor test.txt\n```\n\nThe editor's main window will open, displaying the contents of the file. You can use the keyboard to edit the text and navigate the file.\n\n## Keyboard Shortcuts\n\nThe editor supports the following keyboard shortcuts:\n\n- `Ctrl+S`: Save the current file\n- `Ctrl+O`: Open a new file\n- `Ctrl+X`: Cut the selected text\n- `Ctrl+C`: Copy the selected text\n- `Ctrl+V`: Paste the copied or cut text\n- `Ctrl+Z`: Undo the last change\n- `Ctrl+Shift+Z`: Redo the last change\n- `Ctrl+Q`: Quit the editor\n\n## Notes\n\n- The code is well-organized and commented for readability.\n- The editor uses a simple data structure to represent text (e.g., a linked list of lines).\n- The editor uses the ncurses library to create a text-based user interface.\n\n## Example\n\nHere is an example of how to use the editor:\n\n- Start the editor and open a file:\n\n```bash\n./text_editor test.txt\n```\n\n- Type some text into the editor:\n```bash\nThis is a test file.\n```\n\n- Use the arrow keys to move the cursor around the text.\n\n- Use the Ctrl+S shortcut to save the file.\n\n- Use the Ctrl+O shortcut to open a new file.\n\n- Edit the new file and save it.\n\n- Use the Ctrl+Q shortcut to quit the editor.\n\n## Authors\n\n- Ahmadi\n- Max Base\n\nCopyright 2023, Max Base\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fsimpletextceditor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasemax%2Fsimpletextceditor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasemax%2Fsimpletextceditor/lists"}