Giter VIP home page Giter VIP logo

tte's Introduction

ko-fi

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
tte -e | --extension <file_extension> <file_name>
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 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

tte's People

Contributors

grenderg avatar adabadadudu avatar anephtali avatar codepr avatar sathwikmatsa avatar oyagci avatar emekoi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.