Command Based Text Editor
Edit text files with CLI using a set of commands.
Usage
- Open the file you want to edit:
python
main.py
file.txt
- Use the following set of commands:
insert
"text"
— appends the text to the end of the fileinsert
line_number
"text"
— appends the text to the end of the lineinsert
line_number
column_number
"text"
— inserts the text at given positiondelete
line_number
— deletes the lineswap
line1_number
line2_number
— swaps the linesundo
— undoes the last commandclear
— clears the filesave
— saves the fileclose
— closes the editor
License
This project is licensed under the MIT License.
Credits
Big thanks to:
- JetBrains for Open Source development license