kolibrios/programs/other/tte
maxcodehack 4bdf135569 Update TinyTextEditor: remove unused scrollbar in console.
git-svn-id: svn://kolibrios.org@8121 a494cfbc-eb01-0410-851d-a64ba20cac60
2020-10-30 08:38:44 +00:00
..
images tiny text editor, original 2018-09-24 12:55:07 +00:00
getline.c kolibri port, compliles and run, but buggy 2018-09-24 12:57:56 +00:00
LICENSE tiny text editor, original 2018-09-24 12:55:07 +00:00
Makefile tiny text editor, original 2018-09-24 12:55:07 +00:00
makefile.bat kolibri port, compliles and run, but buggy 2018-09-24 12:57:56 +00:00
README.md tiny text editor, original 2018-09-24 12:55:07 +00:00
tte.c Update TinyTextEditor: remove unused scrollbar in console. 2020-10-30 08:38:44 +00:00

tte

tte (tiny text editor) is a terminal based text editor written in C from scratch, trying to be very minimalistic and dependency independent (it's not even using curses).

This project was mainly created for educational purposes, so is very commented!

Thanks to antirez for inspiring me with his project kilo and Jeremy Ruten for his tutorials.

Installation

Compiling

git clone https://github.com/GrenderG/tte.git
cd tte/
make install

Downloading 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

The key combinations chosen here are the ones that fit the best for me.

Ctrl-Q : Exit
Ctrl-F : Search text (ESC, arrows and enter to interact once searching)
Ctrl-S : Save
Ctrl-E : Flip line upwards
Ctrl-D : Flip line downwards
Ctrl-C : Copy line
Ctrl-X : Cut line
Ctrl-V : Paste line
Ctrl-P : Pause tte (type "fg" to resume)

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)
  • Ruby (*.rb)

Images

First screenshot