Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.36 KB

README.md

File metadata and controls

43 lines (33 loc) · 1.36 KB

tin - Tin Isn't Nano

Tin is a decently portable text editor written in C and based on antirez's kilo.

Development

In no particular order:

  • Read/create files, make changes, and write to disk
  • Store file contents in memory using rows containing appendable string buffers
  • Write to temporary file first before overwriting target file
  • Mash exit command several times to throw out unsaved buffer
  • Line numbers
  • Find
  • Adjust editor size when window is resized
  • Status bar with filename, cursor information, and status messages
  • Take nonexistent filename argument as new file
  • Unicode (UTF8) support
  • Keep track of changes per-line to avoid unnecessary updates
  • Copy/cut/paste
  • Auto-indent if previous line began with tabs
  • Search highlighting
  • Replace
  • Undo/redo
  • .tinrc configuration file
  • Mouse scroll support
  • Mouse cursor click/select support

Usage

Clone the repository and run make all to build tin. If the tin executable is not located somewhere in your $PATH, you'll need to call it with ./tin.

Open a new file by starting the editor with no arguments: tin.

Open a file with tin path/to/file.

Within the editor, use the following commands:

ctrl-x                  exit
ctrl-s                  save
ctrl-f <string>         find