https://github.com/ad-sho-loko/mille
Toy text editor in less than 1K lines of code.
https://github.com/ad-sho-loko/mille
go
Last synced: 5 months ago
JSON representation
Toy text editor in less than 1K lines of code.
- Host: GitHub
- URL: https://github.com/ad-sho-loko/mille
- Owner: ad-sho-loko
- License: mit
- Created: 2020-05-16T16:08:22.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-29T15:44:11.000Z (almost 6 years ago)
- Last Synced: 2024-06-20T03:29:15.482Z (about 2 years ago)
- Topics: go
- Language: Go
- Homepage:
- Size: 521 KB
- Stars: 47
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## mille
mille is a toy text editor in less than 1K lines of code (not including test codes).
It aims to be simple, readable codes, but works great.
This project is inspired by [https://github.com/antirez/kilo](kilo).
Moreover, mille doesn't depend on any external library.

## Features
- Less 1K code bases
- No External Libraries.
- Implement Gap Buffer
## Editor Features
- Open file
- Create file
- Save file
- Edit file
- Go syntax highlighting
## Install
If you already installed go, Please type below in your terminal.
```
go get -u github.com/ad-sho-loko/mille
```
## Usage
### Run
```
mille
```
### Keys
| Key | Description |
| ---- | ---- |
| `Ctrl-H` | Backspace |
| `Ctrl-A` | Move Caret to Line Start |
| `Ctrl-E` | Move Caret to Line End |
| `Ctrl-P` | Up |
| `Ctrl-F` | Right |
| `Ctrl-N` | Down |
| `Ctrl-B` | Left |
| `Ctrl-S` | Save |
| `Ctrl-C` | Close |
## Feature works
- UTF8
- Search/Replace
- Copy/Paste
- Undo/Redo
## Author
Shogo Arakawa (ad.sho.loko@gmail.com)
## LICENSE
MIT