Skip to content
/ Tex Public

Tex is a quickly and aptly named text editor with no dependencies, and implements all the basic features one expects from a minimalist editor. No relation to the typesetting system, TeX.

License

Notifications You must be signed in to change notification settings

jlemanski1/Tex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tex 1.0.2

Travis (.com) GitHub code size in bytes GitHub issues GitHub GitHub last commit

Tex is a minimalist text editor for bash terminals, written in c, with 0 dependencies. The reason for starting this project was to have a fun way to implement all the knowledge I've recently learned in school. Especially since my school projects have been less exciting, a 64Kb Memory allocator for a recent example. Has no relation to the typesetting system, TeX.


Features

  • lightweight minimalist editor with all the basic features you'd expect
  • Robust incremental search with ability to jump between matches
  • Filetype detection
  • Language based syntax highlighting
  • Open source

Installation

# clone project from git into current directory
git clone https://github.com/jlemanski1/Tex.git

# Compile
make all

# Install
make install

Usage

tex            # Create a new file with Tex
tex test.txt   # Open file test.txt in Tex

User Controls

Key Usage
NAVIGATION -------------------------------------------
ARROW_UP Move cursor up
ARROW_DOWN Move curosr down
ARROR_RIGHT Move cursor right
ARROW_LEFT Move cursoor left
PAGE_UP Jump cursor to BOF
PAGE_DOWN Jump cursor to EOF
HOME Jump cursor to start of line
END Jump cursor to end of line
TEXT MANIPULATION -------------------------------------------
DEL Delete character right of curor
BACKSPACE Delete character left of cursor
CTRL-H Delete character left of cursor
ENTER Insert a new line
EDITOR CONTROLS -------------------------------------------
CTRL-S Save the file on disk
CTRL-F Find a string in the file
CTRL-Q Quit the editor

Future Tasks:

  • Implement a search feature
  • Implement syntax highlighting
  • Filetype detection
  • Language based syntax highlighting
  • Add support for additional languages
  • Shift select words
  • Copy & Paste
  • Auto indent newlines to same level as previous one

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.


Versioning

This project uses the Semantic Versioning idealogy, a short summary can be found below, with more information found on the website


License

GPL v3.0


About

Tex is a quickly and aptly named text editor with no dependencies, and implements all the basic features one expects from a minimalist editor. No relation to the typesetting system, TeX.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published