TextEd is a simple text editor written in C, it has the basic functions and it's inspired by linux ed editor
To compile the program follow these instructions:
-
Git the repository with git clone command:
$ git clone https://github.com/Leonia-Tech/TextEd
-
Change directory and compile it
$ make DEBUG=0
-
Install the program
$ make install
-
Execute the program
$ texted [FILE]
Note: If you don't have mpv installed some functionalities may not work as intended. The programm should still be perfectly usable, though.
Note: You must have ncurses development library (ncurses-devel) in order to compile this software
Note: You must have readline development library (readline-devel) in order to compile this software
To remove the app keep the Makefile
and run:
bash $ make remove
After have executed the program with the desired file name you will be into the program
Welcome in Texted - debug-version 1.4.2
your_file_name.txt >
Here you can write commands that you can use for printing, modifying, saving the file and exit the program
Here follows a list of commands grouped by category:
This is a list of available commands in the editor
i: insert mode
i: -w saves after exiting insert mode
esc: exit insert mode
NOTE: to exit the program you have to click on the esc
button on your keyboard
List of commmnads releated to print functionality
p: print
pl: print specified line (default = current line)
pn: print with line numbers
pln: pl + pn
Use the l
command to change the current line.
List of command releated to save functionality
w: save
x: save and exit
b: create backup file
q: exit
List of commands releated to word modyfing functionality
s: replace word (ed syntax)
m: insert word before ... (ed syntax)
a: insert at the end of line
l: set the current line
n: add line before the current line
d: delete the current line
The l
command must be followd by a valid line number. The space between the line number and the l command isn't necessary.