85b5d7df75397af820e5146ff44edf82311e2475
tte
tte (tiny text editor) is a terminal based text editor written in C from scratch, trying to be very minimalistic and dependency independent.
This project was mainly created for educational purposes, so is very commented!
Thanks to antirez for inspiring me with his project kilo.
Installation
Compiling
git clone https://github.com/GrenderG/tte.git
cd tte/
make
sudo cp tte /usr/local/bin/
Download executable
Download it from here, then
sudo mv tte /usr/local/bin/
sudo chmod +x /usr/local/bin/tte
Usage
tte [file_name]
tte -h | --help
tte -v | --version
If you are planning to use special characters like (á, é, í, ó, ú, ¡, ¿, ...) you must use ISO 8859-1 encoding in your terminal. See this issue for more info.
Keybindings
Ctrl-Q : Exit
Ctrl-F : Search text (ESC, arrows and enter to interact once searching)
Ctrl-S : Save
Current supported languages
- C (
*.c,*.h) - C++ (
*.cpp,*.hpp,*.cc) - Java (
*.java) - Bash (
*.sh) - Python (
*.py) - PHP (
*.php) - JavaScript (
*.js,*.jsx) - JSON (
*.json,*.jsonp) - XML (partially) (
*.xml) - SQL (
*.sql)
