Skip to content
/ tin Public

A small, portable text editor written in C and based on kilo.

License

Notifications You must be signed in to change notification settings

sebseager/tin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A small, portable text editor written in C and based on kilo.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published