vbextreme / TextEd

A simple ed-like CLI text editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

INTRODUCTION

What is TextEd?

TextEd is a simple text editor written in C, it has the basic functions and it's inspired by linux ed editor

TextEd 1.4

Install

To compile the program follow these instructions:

  1. Git the repository with git clone command:

    $ git clone https://github.com/Leonia-Tech/TextEd
  2. Change directory and compile it

    $ make DEBUG=0
  3. Install the program

    $ make install
  4. 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

Remove

To remove the app keep the Makefile and run: bash $ make remove

BASIC FUNCTIONALITY

In the editor

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:

Editor commands

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

Print commands

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.

Save commands

List of command releated to save functionality

w:		save
x:		save and exit
b:		create backup file
q:		exit 

Word modify commands

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.

About

A simple ed-like CLI text editor


Languages

Language:C 88.2%Language:Python 10.1%Language:Makefile 1.7%