This is a terminal-based text editor implemented in Node.js. It allows users to perform various text editing operations such as inserting text, deleting text, finding and replacing text, saving files, opening files, and more.
- Insert text at a specified position in the content
- Delete text from a specified position with a given length
- Find and replace text within the content
- Save the content to a file
- Open an existing file
- Edit the content of an opened file
- Close the opened file
- Delete a file
- Clone the repository:
git clone https://github.com/adityaprasad03cvcmsd/text-editor.git
- Install:
node index.js
Once the editor is running, you can use the following commands:
new_file <text>
: Delete text from the specified position with the given lengthfindreplace <find> <replace>
: Find and replace text within the contentfind <find>
: Find the text within the contentsave
: Save the content to a fileopen <filename>
: Open an existing fileedit
: Edit the content of the opened fileclose
: Close the opened filedelete
: Delete a fileexit
: Exit the editor
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.