Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grenderg/tte
tte (tiny text editor) is a terminal based text editor written in C from scratch.
https://github.com/grenderg/tte
Last synced: 2 months ago
JSON representation
tte (tiny text editor) is a terminal based text editor written in C from scratch.
- Host: GitHub
- URL: https://github.com/grenderg/tte
- Owner: GrenderG
- License: gpl-3.0
- Created: 2017-04-05T23:34:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2021-10-07T15:34:36.000Z (over 3 years ago)
- Last Synced: 2024-10-31T21:35:09.430Z (2 months ago)
- Language: C
- Size: 428 KB
- Stars: 133
- Watchers: 10
- Forks: 22
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/R6R21LO82)
# 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](http://antirez.com) for inspiring me with his project `kilo` and [Jeremy Ruten](https://twitter.com/yjerem) for his tutorials.
## Installation
### Compiling
```
git clone https://github.com/GrenderG/tte.git
cd tte/
make install
```
### Downloading executable
Download it from [here](https://github.com/GrenderG/tte/releases/latest), then
```
sudo mv tte /usr/local/bin/
sudo chmod +x /usr/local/bin/tte
```## Usage
```
tte [file_name]
tte -h | --help
tte -v | --version
tte -e | --extension
tte -t | --use-tabs [file_name]
```
If you are planning to use special characters like (á, é, í, ó, ú, ¡, ¿, ...) you must use `ISO 8859-1` encoding in your terminal. See [this issue](https://github.com/GrenderG/tte/issues/2) 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-Z : Undo
Ctrl-Y : Redo
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](https://raw.githubusercontent.com/GrenderG/tte/master/images/scr_1.png)